add

Showing posts with label Web Hosting. Show all posts
Showing posts with label Web Hosting. Show all posts

Friday, 8 June 2018

How To Create Project In Asp.net MVC


How To Create Project In Asp.net

 MVC 


1) .First Your Need Go to Start Button and Select Visual studio (Here I am Using VS2017) You Can         select your visual studio version That you install in your syste and support mvc 


2). And There A Visual Studio Window Open Now You Can Goto File Menu And Select  menu
      File->New->Proejct As Show in Diagrame




3).  Now You Need To Select Project Type and Add Project Name , Project Location And Solution Name Etc Project Related Setting From Web Section Of Project type category of visual studio


      Note:- Now You Need to Write Such setting  And select Asp.net Web Application Type(.Net                           Framework) from  Web application Types


4). Next Level Click Ok Button There are Show Other Sub Part of Web Application From There                Chose Asp.net MVC Type by Click on MVC Icon , Then select Change Authenticate Button               There Are show new pop up window There are some option like NO Authentication, Indivisual           Authentication etc (no Authentication mean not default Authentication is Selected and Indivisual         User authentication Means Default provide authentications)

      
 then Click on ok button authentication window disappear and finally click on Project ype window ok button to finally select Project Type "MVC"

5).Now We have Show Over Default Content Of MVC Website with some html css ,controller ,View 
    


6). Next Go To Open Root Web The Config File If you Want to change Default Connection string           Project name and server name id password
    

7). Next is To Modified Connection String Into Web The Config which are located into configuration       element



8). Now Go to SQL Server Management Studion(SSMS) type into start menu Search



9). Now Enter Your Sql Server Credential And Login Into Sql  Then View The Sql Server Fasility           And Project LIst 


10.) Now Refresh Database Check Same Name of Database or Not If Exist Remove DataBase Or 
        Setup New Database Name Into Web.config File Of Visual Studio 

  
       Note : Basically Solution Is Used For One Or More Inter related Project Colletion Like Project                      Of  Web Ecommerce and Other of Api Project Of E commerce





13). Now you Can Run Your Project In Debug mode  there are one more option Release Mode                   (Basically Used For Finally Release Of Product or Project For live or Host For Real World Use
        


14). Now As Per Your Choise A Server Lounch Your Site into Perticular Web Browser
        

   Here Localhost Show You That Your webserver And Browser Both Are on Same Server 

In Next Session We Will Show You How To Create ,Controller, Model ,Action Method ,View Etc 
And Also Define How TO Add Entity Framework , How To Use It 

Tuesday, 20 March 2018

Do you know what's different between localhost and webhost

1). Localhost:-
                 When webserver and web client (browser is known as client) are on same machine and no internet connection  need to run our website.
   Just need web server that to be install locally and deployment website on localhost(deployment website on ii's my previous blog) .that web server is known as localhost
Webserver example:- Apache,tomcat,ii's etc
Note:-  visual studio and xammp and myeclips are ids(integrated development environments)

2). webhost:-
                 When our webserver is placed on other locations (different computer) and client is available on other computer and when we published website on webserver and need to consume it ....first required resources is internet become both are in different locations so that time webserver is known as webhost (when web server and browser are on dirrent location pc)
Note:- for hosting website on web host has several process like
A).register domain name
B).purchase hosting space
C).copy name server of hosting space provider Webster into your website DNS (domain name system) and  replace it if hosting space and domain name provide by different company or provider otherwise no need to change it

What is Doman name


Any website name like Facebook ,google ,yahoo has specific ip. (internet protocol)

And work on ip one computer is connected to other computer

And ip is difficult to remember by human

Human essly remember name instead of number

So every ip has a specific name known as domain

And any domain name registration company like " GoDaddy.com" provide your domain by which  people rich at your website

Just like my website domain name is digitalsupports and my url is Http://www.digitalsupports.in  that is type of .in(India) Reginal domain

Other type domains are
.in (India)
.UK (united Kingdom)
.us (united states America)
.com (commercial)
.org (organisation)
.edu (educational)
.gov (government)
.gov.in(indian government)
Etc

Tuesday, 13 March 2018

How to Deploy a Website On LocalIIS on Local Machine



_____________________________________________________
Step 1:-
_____________________________________________________
1).Open Visual Studio And Run Under Administrator Mode
2).Select Project And Open Project
3).Right Click On Project That To Be deployed
4).Chose The Property Mene From List That To Be Opened a New Window Is Opened
5).Select Web option From Opened New Window
6).Select Web Option
7).With in Web Tabe Under Server Portion , Select check Box That Content Text(Apply server setting To all Users stored In Project     File )
8).select Type Of server(LocalIIS) from Drop Down list OF servers
9).Afer Selecting Drop Down There is Textbox that autometic fill project Localhost Path Like(http://localhost/PowerHMS)
10).and Click On Create Virtual Directory Button

___________________________________________________
Step 2:-
___________________________________________________
The Now Open Local IIS
1)Open Run Window (Press Two Key Together,{Window Key+R}) or start and select search and select (IIS)
2)click Ok button There are IIS Panel Is Opened
3)Under The Server There Are Meneu Ites "Sites" Please Select Is
4).Right Click On Sites Option and Choose Option Add New WebSite
5).There Are A "Add Website" Popup Window Opened
6).Write Site Name And Choose Physical Path
7)And Select Authentication Type and Varify or Test Setting by clicking On Button One By one as Writen Order
8)Under The Bindin Type Write Local System Static IP
8) And Finaly Click On Ok Button

_______________________________________________
Step 3:-
_______________________________________________
Now we Are Going To Publish Website After Basic Setting
For LocalIIS Hosting we Are follows basic  steps are as Follows
1).Right Click On Project and Select Publish Option
2).For Publish LocalIIS We Select Deploy Profile if exists Other Wise Creat New On
3).For Creating New One We Are Going To set Local server Name (There Is Http://LocalHost)
4).Write site Name (There Is PowerHMS)
5).Write Site Path (There Is Http://Localhost/PowerHMS)
6).Setting Deployement Like(delete Existing File Etc)
7).Final Click OK And Publish Button

There are Your Site Is Finally Publish You Can  Check Or Test Using site Url That to be write while Pulishing Website