WebSite和WebApplication
前提:在WebApplication项目中,一个网页放两个radio
<input type="radio" id="rad1" checked="checked" value="1" name="radType" />出租
<input type="radio" id="rad2" name="radType" value="2"/>出售
如何在后台代码中获取已选的value的值?
经测试在WebSite项目中,同样的情况可以通过int value = int.Parse(base.Request.Form["radType1"]);来取得Value
而在WebApplication中用同样的方法却取不到value?