Response.Redirect(Context.Request.ApplicationPath & "/Default.aspx");
------------ 
转到你虚拟目录下的Default.aspx 

解决方案 »

  1.   

    HttpRequest.ApplicationPath  表示应用程序虚拟目录的根路径需要动态设置虚拟目录的时候,需要用此属性值,一般可以类似这样使用 - 》<img src='<% =Request.ApplicationPath == "/" ? "" : Request.ApplicationPath %>'/images/some.gif' /> // 假设 images 文件再你的根目录
      

  2.   

    获取服务器上 ASP.NET 应用程序的虚拟应用程序根路径。如http://localhost:4535/enableviewstatedemo/Default2.aspx将得到/enableviewstatedemo