ASP.NET 变量赋值不成功
未收藏
0
如上图所所示
this.userName = context.Request.Form["userName"]; this.password = context.Request.Form["password"];
这两行代码怎么没有效果呢?
---------------------------------------------
我是在ashx文件里面写的这些代码
现在木有环境调试,你试试 this.userName = context.Request.Form["userName"].ToString(); this.password = context.Request.Form["password"].ToString(); 试试
或者 this.userName = context.Request["userName"].ToString(); this.password = context.Request["password"].ToString(); 好吧,五年没怎么碰.net了。。
@肉山大魔王 我一开始也是这么做的,木有用啊