Introduction :-
In this article i will explain how i can set the start up page that means default page of our website when we run.When we Run our website the we always set the index page as a starting page but some time our index page not run when we start the website our other page is run.
Description :-
First a fall create a website like this .Open visual stdio->file->new->website
and select asp.net web site and rename the name of site page and click OK
Image of project creation as shown below
write click on project and add new item and select as web form and rename the page like index.aspx
Different way to show the start up page in asp.net
way [1]->
write click on project explorer and property page and start up project->specific page and write the name[index.aspx ]and click ok.Image as shown below
Run our application and your application always start from index.aspx page.
Way [2]->
write Click on page which you want to set as startup page. And set as a start page->ok
Your starup page create successlly. Image as shown below
your start up page create successfully
way [3]->
Minear change in web.config file and set index .aspx as default page
Write the code in web.config file as shown below
<if you want to set any page as a start up page then change in <add values="your page name">
and save and compile web.config file
In this article i will explain how i can set the start up page that means default page of our website when we run.When we Run our website the we always set the index page as a starting page but some time our index page not run when we start the website our other page is run.
Description :-
First a fall create a website like this .Open visual stdio->file->new->website
and select asp.net web site and rename the name of site page and click OK
Image of project creation as shown below
write click on project and add new item and select as web form and rename the page like index.aspx
Different way to show the start up page in asp.net
way [1]->
write click on project explorer and property page and start up project->specific page and write the name[index.aspx ]and click ok.Image as shown below
Run our application and your application always start from index.aspx page.
Way [2]->
write Click on page which you want to set as startup page. And set as a start page->ok
Your starup page create successlly. Image as shown below
your start up page create successfully
way [3]->
Minear change in web.config file and set index .aspx as default page
Write the code in web.config file as shown below
<system.webServer>
<defaultDocument>
<files>
<clear/>
<add value="default.aspx"/>
</files>
</defaultDocument>
</system.webServer>
<defaultDocument>
<files>
<clear/>
<add value="default.aspx"/>
</files>
</defaultDocument>
</system.webServer>
<if you want to set any page as a start up page then change in <add values="your page name">
and save and compile web.config file
Thanks a lot share with me this nice information. I get a lot of valuable information related my topic. Your blog is very useful for me in my future. Keep it up..
ReplyDelete