请问:在VS.NET中创建的WEB应用程序中使用Window.showModalDialog是否要引入特定的命名空间?
我在webform1.aspx的一个按钮事件中写
window.showModalDialog("SMD_target.htm","Dialog Arguments Value","dialogHeight: 319px; dialogWidth: 588px; dialogTop: 642px; dialogLeft: 772px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;");
运行时提示说“缺少using指令或程序集引用 ”
问题点数:0、回复次数:2Top
1 楼flyinglz(云溪飘叶)回复于 2003-11-03 10:57:38 得分 0
这是一段javascript代码:可以这样实现
this.button1.attribs("onclick",@"window.showModalDialog("SMD_target.htm","Dialog Arguments Value","dialogHeight: 319px; dialogWidth: 588px; dialogTop: 642px; dialogLeft: 772px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;");");
Top
2 楼myzig(知秋一烟)回复于 2003-11-03 11:00:36 得分 0
是javaScript
function doModal(url){
var cSearchValue=showModalDialog(url,0,"dialogWidth:300px;dialogHeight:200px");
if (cSearchValue == -1 || cSearchValue == null)
{
alert('You clicked cancel or the close box');
}
else if (cSearchValue=="")
{
alert('You didn\'t enter a value');
}
else
{
alert('You want to search for ' + cSearchValue);
}
}Top




