Wednesday, November 27, 2013

Virtual Paths not working in Response.Redirect ASP.NET

Hello,

Usually when we use Response.Redirect() method to redirect to a webpage or folder this works fine if both webpage i.e. current and the requested one are on the same level/folder

Response.Redirect(/Account/webpage.aspx)

Response.Redirect(~)
the '~' sign means the application's root level

so now from application root level we can define the path

Additionally you can use Response.WriteFile() method

No comments:

Post a Comment