function Button1_onclick() 
{
 var returnValue = window.showModalDialog("oa_fileshare.aspx","网页弹出对话框","dialogwidth:300px;dialogheight:350px;center:yes;status:no;scroll:yes;help:no;resizable:no;");
}但是oa_fileshare.aspx这个页面里的事件触发不了,怎么解决。附:autopostback属性设为true了。

解决方案 »

  1.   

    <INPUT id="Button1" type="button" value="Button"
      name="Button1" language=javascript onclick="return Button1_onclick()">
      

  2.   

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="test2.aspx.cs" Inherits="test2" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>无标题页</title>
       <script>
       function Button1_onclick() 

    var returnValue = window.showModalDialog("oa_fileshare.aspx","网页弹出对话框","dialogwidth:300px;dialogheight:350px;center:yes;status:no;scroll:yes;help:no;resizable:no;"); 

       </script> 
    </head>
    <body style="padding:0px;margin:0px;">
        <form id="form1" runat="server">
            <input id="Button1" type="button" value="button" onclick="Button1_Click" />
        </form>
    </body>
    </html>
      

  3.   

    我说的是这个oa_fileshare.aspx里面的事件触发不了,是另外的一个页面的checkBoxList的selectindexchanged事件触发不了。
      

  4.   

    function Button1_onclick() 

    window.open("oa_fileshare.aspx","网页弹出对话框","dialogwidth:300px;dialogheight:350px;center:yes;status:no;scroll:yes;help:no;resizable:no;"); 

      

  5.   

    在 oa_fileshare.aspx 的 <head> 中加上:
      <base target="_self" />