VBScript.vbs
------------------------------------------
'VBScript
Function ConfirmMessage ()
ConfirmMessage = MsgBox("你知道我很愤怒吗", vbQuestion + vbYesNo + vbDefaultButton2, "高手帮帮忙啊")
return ConfirmMessage
End Function
MessageBox.cs
--------------------------------------------
//Session["YesNO"]
String YesNO;
BooL BYesNO;现在CS文件里要记录用户点击的选择值,只要能在CS文件里得到选择值就可以,随便用以上那一种类型;
补充:不能用JS代码,因为VBScript提供的对话框里的提示图标不一样,可以有4个系统图片框求高手们帮帮忙啊,项目非常急,想过年在家不加班哦~ 5555
------------------------------------------
'VBScript
Function ConfirmMessage ()
ConfirmMessage = MsgBox("你知道我很愤怒吗", vbQuestion + vbYesNo + vbDefaultButton2, "高手帮帮忙啊")
return ConfirmMessage
End Function
MessageBox.cs
--------------------------------------------
//Session["YesNO"]
String YesNO;
BooL BYesNO;现在CS文件里要记录用户点击的选择值,只要能在CS文件里得到选择值就可以,随便用以上那一种类型;
补充:不能用JS代码,因为VBScript提供的对话框里的提示图标不一样,可以有4个系统图片框求高手们帮帮忙啊,项目非常急,想过年在家不加班哦~ 5555
解决方案 »
- System.InvalidOperationException: ConnectionString 属性尚未初始化
- 用ExecuteNonQuery()执行insert 语句不成功
- 如何用post 上传 文件
- 网址重定向错误如何解决?
- windows 2003 server+iis6.0+asp.net 2.0上传大文件问题
- 提交时页面自动刷新的问题?CheckBox自动选中了
- .net初学者问题
- 新建web程序时总是提示“http/1.1 400 bad request”,什么原因亚,我修复了也是如此
- 在页面中包含"Table","Table"的"TableCell"对象中包含一个Button对象,有没有办法直接找到这个Button(在不知道ID的情况下)
- 召集人马,准备建立商务网站
- 关于web.config的继承问题
- 怎样不将app_code文件复制到网站根目录下,仍能找到其中的类
另外,VBSCRIPT在网页的应用基本绝种了,而且不能兼容非IE的浏览器,建议放弃VBSCRIPT
if ConfirmMessage=值 then
按钮1.click();....
<asp:Button ID="Button3" runat="server" Text="Button" OnClientClick="return showMydiv()"/></div>
<div id="mydiv" style="width:730px;height:900px;margin-top:-150px;margin-left:-300px;left:45%;top:27%;display:none;z-index:50;">
<table width="100%">
<tr>
<td align="right"><input id="Button2" type="button" value="X" onclick="HiddenDiv()"/>
</td>
</tr>
<tr>
<td align="center"> <iframe id="myiframe" width="100%" height="550px" scrolling="no" style="border-top-style: outset; border-right-style: outset; border-left-style: outset; border-bottom-style: outset"></iframe>
</td>
</tr>
</table>
</div>
<div id="id1" style="filter:Alpha(opacity=20);background-color:#000;position:absolute;top:0;left:0;z-index:49;display:none;">
<input id="hda" type="text" style="display:none" name="hda" />
</div>javascript:
<head runat="server">
<title>无标题页</title>
<script type="text/javascript">
function showMydiv()
{
document.body.scroll="no";
if(window.screen.Height>=document.body.scrollHeight)
{
id1.style.height = (window.screen.height - 155) +"px";
}
else
{
id1.style.height = (document.body.scrollHeight) + "px";
}
mydiv.style.position='absolute';
id1.style.width = (window.screen.width - 25) + "px";
id1.style.display = '';
mydiv.style.display = '';
// var frameId='myiframe';
// frameSrc='xxx.aspx';
// frames[frameId].document.write('loading...');
// frames[frameId].document.close();
// frames[frameId].location.href = frameSrc; return false;
}
function HiddenDiv()
{
mydiv.style.display='none';
id1.style.display='none';
}
</script>
</head>