Response.Redirect gives me 'Cannot display the page' error
This is a VB.Net 2005 Web Application Project.
I start out at my main menu (http://localhost/Default.aspx) I click a link which does a callback to the server. In the code 开发者_运维百科behind I have this:
HttpContext.Current.Response.Redirect(String.Format("{0}/{1}", ApplicationPath, PageName))
Which boils down to a string of this: "//Administration/AdministrativeComparison.aspx"
The address bar of the browser remains at Default.aspx and I get an error. Here's my message:
Internet Explorer cannot display the webpage Most likely causes: You are not connected to the Internet. The website is encountering problems. There might be a typing error in the address. What you can try: Diagnose Connection Problems
Administration is a sub-project.
If I do this: http://localhost//Administration/AdministrativeComparison.aspx
I do get to the page.
What can I do to get this to work?
精彩评论