4thSpace
4thSpace

Reputation: 44352

Will Form runat="server" submit regular form elements?

I'm using a form runat="server" in a main aspx page. This page calls user controls. If a user control has non server side form elements, such as:

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

should those still show up in this.Request.Form? I don't see them there.

Upvotes: 0

Views: 193

Answers (1)

Joe
Joe

Reputation: 5497

The value is available in the Request.Form object

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

Upvotes: 3

Related Questions