求高手,未将对象引用设置到对象的实例的问题!
他说:“未将对象引用设置到对象的实例。” System.NullReferenceException 异常!!!!!!!!! 怎么运行都是错误!!!!!!!! 说需要使用“new”关键字创造对象实例! 代码如下: 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;
public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string zy = Request["zyname"].ToString(); string zg = Request["zypad"].ToString(); Response.Write("名字:"+zy+",密码:"+zg); } }
帮忙啊!~