情况是这样的,我的一个项目,有两个文件夹,Maintenance和Enquiry。在Maintenance下,我有一个页面SWProvide.aspx,在这个页面中写了一个脚本函数,打开一个页面BrowseSoftware.aspx,代码如下:
<script language="JavaScript" type="text/JavaScript">
function BrowseSoftware() {
var return_Value = window.showModalDialog("BrowseSoftware.aspx", window, "dialogWidth:900px;dialogHeight:450px;center:yes;status:no;scroll:yes;help:no;"); document.getElementById('<%=hfReturnValue.ClientID%>').value = return_Value; document.getElementById("ibBrowseSW").click();
}
</script>SWProvide.aspx和BrowseSoftware.aspx在同一文件夹,这是没有问题的。现在Enquiry文件夹下也有一个页面需要调用BrowseSoftware.aspx,我在写脚本函数时,总报找不到页面,代码如下:
<script language="JavaScript" type="text/JavaScript">
function BrowseSoftware() {
var return_Value = window.showModalDialog("~/Maintenance/BrowseSoftware.aspx", window, "dialogWidth:900px;dialogHeight:450px;center:yes;status:no;scroll:yes;help:no;"); document.getElementById('<%=hfReturnValue.ClientID%>').value = return_Value; document.getElementById("ibBrowseSW").click();
}
</script>
不管我在BrowseSoftware.aspx加什么地址位,总是说找不到Enquiry下的什么什么BrowseSoftware.aspx请问高手,我应该怎么写才能调用到Maintenance下的BrowseSoftware.aspx
<script language="JavaScript" type="text/JavaScript">
function BrowseSoftware() {
var return_Value = window.showModalDialog("BrowseSoftware.aspx", window, "dialogWidth:900px;dialogHeight:450px;center:yes;status:no;scroll:yes;help:no;"); document.getElementById('<%=hfReturnValue.ClientID%>').value = return_Value; document.getElementById("ibBrowseSW").click();
}
</script>SWProvide.aspx和BrowseSoftware.aspx在同一文件夹,这是没有问题的。现在Enquiry文件夹下也有一个页面需要调用BrowseSoftware.aspx,我在写脚本函数时,总报找不到页面,代码如下:
<script language="JavaScript" type="text/JavaScript">
function BrowseSoftware() {
var return_Value = window.showModalDialog("~/Maintenance/BrowseSoftware.aspx", window, "dialogWidth:900px;dialogHeight:450px;center:yes;status:no;scroll:yes;help:no;"); document.getElementById('<%=hfReturnValue.ClientID%>').value = return_Value; document.getElementById("ibBrowseSW").click();
}
</script>
不管我在BrowseSoftware.aspx加什么地址位,总是说找不到Enquiry下的什么什么BrowseSoftware.aspx请问高手,我应该怎么写才能调用到Maintenance下的BrowseSoftware.aspx
解决方案 »
- 网页中图片滚动效果如何实现
- 跨域调用问题
- asp.net 发布 与 开发环境有什么不同
- 关于项目设计,不吐不快!
- 使用远程动态刷新,后台是一个485接口数据通讯得到数据.请大家给点思路
- 复制控件的事件中能传递数据吗
- 请问select count在这样的情况下要怎么用啊?
- 在windows应用程序中,就是form,怎样在DataGrid点击一行,下面的TextBox自动与其绑定,显示该行信息--急求急求!!
- asp.net2.0中当密码类型的input控件和MultiView一起使用的奇怪问题
- HTTP500内部服务器错误,哪位大侠知道是怎么回一事!!急。在线等待。
- asp.net前台调用后台方法
- CMS新闻类别的无限级分类以及该分类下的文章调用和统计
路径有问题 检查下~
实在不行,就先把本机正确的路径写上去,试下看能打开不
如果能的话,而且上面的方法不行,就用后台拼一个URL过来把··
Enquiry/请问该怎么解决?