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
解决方案 »
- 这个问题真的很难,多级分类如何排序的问题?
- asp.net 站点内有很多pdf格式的文件,如何让一部分可以直接下载,一部分需要登陆后下载
- 无聊问个问题:关于取客户端ID
- 再问一遍!!!!
- 在自创建的table中,如何把查询结果固定某列中?
- datalist可以把背景设置成透明的吗?
- asp.net 导出word文档,本地测试没问题,发布到win2008服务器上出错。。。求大师解答。。。
- 根据用户登陆与否 ,交换两个div得位置 问题?
- 使用HTML控件传递数据给ASPX,但似乎无法传递中文字符串?请教!急!
- 请教各位大虾:请问如何把一整篇文章段落分明的显示在出来。
- 关于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>