什么叫"未将对象引用设置到对象的实例" 财富值52

2016-05-09 23:05发布

行 10:     protected void Page_Load(object sender, EventArgs e) 行 11:     { 行 12:         string scriptContent = Request.QueryString["user"].ToString() + ",欢迎您!请记住您的密码:" + Request.QueryString["password"].ToString();行 13:         Response.Write(scriptContent); 行 14:         string scriptString = "aler('" + scriptContent + "');";  


源文件: e:ASP练习CH5_EX5-4_TextBox控件Content5-4.aspx.cs    行: 12


付费偷看设置
发送
1条回答

null值不能进行ToString

访问Content5-4.aspx的页面需要带user和password参数

比如http://localhost/Content5-4.aspx?user=AlexTaos&password=Taos

一周热门 更多>