我在主aspx页面中使用form runat="server"
。此页面调用用户控件。如果用户控件具有非服务器端表单元素,例如:
<input type="text" name="lastname" id="txtlastname">
这些还应该出现在this.Request.Form
中吗?我在那里看不到他们。
该值在请求中可用。表单对象
? Request.Form["lastname"]
"this is the txt box"