【发布时间】:2017-03-16 09:07:58
【问题描述】:
我想获取回发事件的所有输入控件。
这是我的示例控制:
<input name="ctl00$ContentBody$dt_62f6f44864ec4c4892ac074da0209ff4
type="text" value="11.06.2014"
id="ContentBody_dt_62f6f44864ec4c4892ac074da0209ff4"
class="m-wrap span12 date form_datepicker form-control"
data-pagetype="main"
data-groupname="group_DATE"
data-rowindex="0" data-objtype="Datepicker"
data-columnname="DATE_FROM" style="width:50px;">
处理所有键
public Collection<ActionContainer.RequestFormParameter> GetFormParameters()
{
System.Collections.IEnumerator e2 = Request.Form.GetEnumerator();
while (e2.MoveNext())
{
ActionContainer.RequestFormParameter params_;
String xkey = (String)e2.Current; // output "ContentBody_dt_62f6f44864ec4c4892ac074da0209ff4"
String xval = Request.Form.Get(xkey); // output "11.06.2014"
String AttrCollection = ??
// I try to find control by id but it didn't work for me
}
}
【问题讨论】:
-
这些输入标签是从客户端动态生成的,还是在设计时作为 TextBox 服务器控件已经在 ASPX 页面中?
-
从
name看来,它们似乎已经在页面上。如果不是我的回答将无济于事......