开发者

how to remove default.aspx as default page from my application

I have changed Home.aspx to the default page but still when I run the app it is still going to default.aspx page. When I delete the defaul开发者_如何学JAVAt.aspx page and then I run it gives an exception that page not find (not 404 page not found). In some other page when I click on Grid row it should fire a grid row command but it calls default.aspx page first and then it fires the row command event. There is a connection between row command and default.aspx page, no response.redirect event from javascript but I don't know why it is calling DEFAULT.ASPX page.

Problem occurs only in IE

I have already set Home.aspx as default page but still it is searching for Default.aspx page at startup (Visual Studio).


If it is only problem in IE and works fine on other browsers, then consider clearing the cache of IE. Then do a hard refresh(CTRL+F5) of your web page.

Please recheck that you have mentioned the default document in web.config file.

If you are in hosting environment,then please select the default file from IIS setting for start pages from the control panel.


*If you have already tried right clicking the page and selecting Set as Startup Page , Did you checked in Visual studio site property pages, in start options list item there is "Start URL" and specific page properties. try changing these values ?

  • Did you checked if you are using built in asp.net URL routing or any other URL routing modules,handlers etc?

PS: if you are using web application project rather than web site project this setting is [yourapp]>properties>web>StartAction>StartURL


If you are using any javascript or jquery, please check that any default redirection (like ~/ or /) is there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜