惊奇问题using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;namespace WebApplication1
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ViewState["Name"] = "yuna123";
}
} protected void Button1_Click(object sender, EventArgs e)
{
Response.Write(ViewState["Name"]); }
}
}点确认按钮,上边应该可以输出 yuna123但是如果用js 中 showModalDialog() 模态对话框打开上面的 aspx页面,然后点确定就输出空白,怎么回事??
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;namespace WebApplication1
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ViewState["Name"] = "yuna123";
}
} protected void Button1_Click(object sender, EventArgs e)
{
Response.Write(ViewState["Name"]); }
}
}点确认按钮,上边应该可以输出 yuna123但是如果用js 中 showModalDialog() 模态对话框打开上面的 aspx页面,然后点确定就输出空白,怎么回事??
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货