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

解决方案 »

  1.   

    在页面上放一个hiddenfield控件,将用户选择的值保存到这个控件里,在服务端获取这个控件的值就行了。
    另外,VBSCRIPT在网页的应用基本绝种了,而且不能兼容非IE的浏览器,建议放弃VBSCRIPT
      

  2.   

    其实这样的很简单,比如你可以放3个width=0的按钮,然后
    if ConfirmMessage=值 then
       按钮1.click();....
      

  3.   

    放一个隐藏的html控件就可以了
      

  4.   

    html:
            <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>
      

  5.   

    存到 span里 行不行?