当前位置: 代码迷 >> ASP.NET >> 在后台如何取值(急啊!在线=)
  详细解决方案

在后台如何取值(急啊!在线=)

热度:4025   发布时间:2013-02-26 00:00:00.0
在后台怎么取值(急急急急啊!~~~~~~~~~~~~~~~~~~~~~~~~在线=)
我用一个服务端控件dropdownlist,数据是在前台用add方式添加的
现在我想在后台取出当前选中的值
应该怎么取
DropDownList   drpl=(DropDownList)this.FindControl( "userPCitydplist ");
我这样取没有值
有没有办法解决啊

------解决方案--------------------------------------------------------
Request.Form[ "userPCitydplist "]
------解决方案--------------------------------------------------------
如果是 服务器控件 userPCitydplist.SelectedValue

如果你是html控件 Request.Form[ "userPCitydplist "]
  相关解决方案