Response.Write("<script language=javascript>window.showModelessDialog('WebForm2.aspx','','status:no;center:yes;edge:raised;dialogWidth:250px;dialogHeight:250px');</script>")

解决方案 »

  1.   

    用属性dialogWidth,dialogHeight,把窗口弄大点!
      

  2.   

    将datagrid放到DIV中,将DIV调整到弹出窗口的大小 这样DATAGRID就可以滚动了。
    <div style="BORDER:0px;PADDING:0px;MARGIN:0px;OVERFLOW:auto;WIDTH:736px;HEIGHT:200px">
                  <asp:DataGrid id="DataGrid1" width="720px" CellPadding="2" CellSpacing="1"
                  BorderColor="#cc9966" Font-Size="9pt" AlternatingItemStyle-BackColor="#6699ff"
                  runat="server" ShowHeader="False" AutoGenerateColumns="False">
                    <Columns>
                      <asp:BoundColumn DataField="Title">
                        <ItemStyle Width="360px"></ItemStyle>
                      </asp:BoundColumn>
                      <asp:BoundColumn DataField="CreateDate">
                        <ItemStyle Width="180px" HorizontalAlign="Center"></ItemStyle>
                      </asp:BoundColumn>
                      <asp:BoundColumn DataField="pid">
                        <ItemStyle Width="140px" HorizontalAlign="Center"></ItemStyle>
                      </asp:BoundColumn>
                      <asp:BoundColumn DataField="HitCount">
                        <ItemStyle Width="40px" HorizontalAlign="Center"></ItemStyle>
                      </asp:BoundColumn>
                    </Columns>
                  </asp:DataGrid>
                </div>