asp.net如何跳转到其他文件夹下的页面!

            Page.ClientScript.RegisterStartupScript(Page.GetType(), "SelectCompany", "window.open('../Enterprise/RelationQuery/CompanySelect.aspx?areaid=null','SelectCompany','width=600,height=450,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0');", true); 我想跳转到CompanySelect.aspx?页面它在其他文件夹下,而我上面的跳转方法竟然跳转到http://localhost:6798/Admin/Enterprise/RelationQuery/CompanySelect.aspx?areaid=null多一个admin

第1个回答  2011-12-07
('../Enterprise/RelationQuery/CompanySelect.aspx? 那就去掉前面的../ 试试看
第2个回答  2011-12-07
使用Response.Redirect();方法。
第3个回答  2012-03-26
~/根目录下某文件夹/文件夹下某页面
第4个回答  推荐于2018-03-23
1、"/xxx.xx" 表示从网站根目录开始,即网站根目录下的xxx.xx文件

2、"./xxx.xx"表示本目录下的xxx.xx

3、"../xxx.xx"表示上一级目录中的xxx.xx,当然,"../../xxx.xx"表上上一级目录中的xxx.xx

4、"xxx/"表示当前目录下的xxx文件夹,也相当与"./xxx/"本回答被网友采纳
相似回答