Form runat =“server”会提交常规表单元素吗?

时间:2013-02-13 20:00:37

标签: c# asp.net .net

我在主aspx页面中使用form runat="server"。此页面调用用户控件。如果用户控件具有非服务器端表单元素,例如:

<input type="text" name="lastname" id="txtlastname">

那些仍会出现在this.Request.Form中吗?我在那里看不到它们。

1 个答案:

答案 0 :(得分:3)

该值在Request.Form对象中可用

? Request.Form["lastname"] "this is the txt box"