日期:2014-05-19  浏览次数:20762 次

VS2005 弹出页面问题(特急)
//脚本
function   openModalWindow(url,   arg,   width,   height)
{
var   leftPos   =   (screen.width   -   10   -   width)   /   2;
var   topPos   =   (screen.height   -   60   -   height)   /   2;
var   feast   = " ";

if   (typeof   window.showModalDialog   !=   'undefined ')
{
feast   =   "dialogHeight: "+height+ "px;dialogWidth: "+width+ "px; "+ "status:no; ";
                window.showModalDialog( "../Public/ShowModalPage.aspx?url= "+url,   arg,   feast);
}
else
{
feast   =   "height= "+height+ ",width= "+width+ ",top= "+topPos+ ",left= "+leftPos+ ",fullscreen=0,location=no,menubar=no,resizable=0,scrollbars=no,status=no,toolbar=no,modal=1 ";
                var   w   =   window.open( "../Public/ShowModalPage.aspx?url= "+url,   arg,   feast);
}
}


//ShowModalPage.aspx   页面
<%@   Page   Language= "C# "   AutoEventWireup= "true "   CodeFile= "ShowModalPage.aspx.cs "   Inherits= "Public_ShowModalPage "   %>

<!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   id= "myTitle "   runat= "server "> </title>
</head>
<body   style= "margin:   0px "   id= "fraParent "   runat= "server ">
        <form   id= "Form1 "   method= "post "   runat= "server ">
                <div>
                        <iframe   id= "fraModalPage "   style= "width:   100%;   height:   100%;   position:   absolute; "
                                runat= "server "   scrolling= "auto "> </iframe>
                </div>
        </form>
</body>
</html>


//ShowModalPage.aspx.cs   代码
protected   void   Page_Load(object   sender,   EventArgs   e)
        {
                if   (!(Page.IsPostBack))
                {
                        string   url   =   Request.QueryString[ "url "];
                        string   id   =   Request.QueryString[ "id "];
                        string   c