|
发表于 2020-11-10 17:45:01
|
显示全部楼层
在主页面.cs:
if (!String.IsNullOrEmpty(Request.QueryString["id"]))
{
int formId = Convert.ToInt32(Request.QueryString["id"]);
loadMenu(formId);
}
protected void loadMenu(int formId)
{
string script = String.Empty;
if (!String.IsNullOrEmpty(Check(formId)))
{
script += "<script language=\"javascript\">\n";
script += "GoTo('" + Check(formId) + "');";
script += "</script>";
ClientScript.RegisterStartupScript(typeof(Page), "", script);
}
}
.aspx: js: function GoTo(url)
{
window.frames["mainFrame"].location=url;
} |
|