By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,649 Members | 2,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,649 IT Pros & Developers. It's quick & easy.

Reading HTML form post in ASP.Net

P: n/a
Hi,

I am trying to read form values from HTML form in ASP.Net.
For example:

first.html file
<html><body><form action="second.aspx" method="post">
<input type=text id="txtOne" />
<input type=submit value=OK />
</form></body></html>

second.aspx file code (I use VB):
Private Sub Page_Load(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles MyBase.Load
Console.Write(Me.Request.Form("txtOne"))
End Sub

The Form collection of the page.Request is EMPTY!!!

Could someone please help?

Any suggestions/directions are very much appreciated.
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a


Sergey Poberezovskiy wrote:

I am trying to read form values from HTML form in ASP.Net.
For example:

first.html file
<html><body><form action="second.aspx" method="post">
<input type=text id="txtOne" />


An input element needs a name attribute to be submitted:
<input type="text" name="txtOne">

--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 18 '05 #2

P: n/a
Thanks a lot...
-----Original Message-----
Sergey Poberezovskiy wrote:

I am trying to read form values from HTML form in ASP.Net. For example:

first.html file
<html><body><form action="second.aspx" method="post">
<input type=text id="txtOne" />


An input element needs a name attribute to be submitted:
<input type="text" name="txtOne">

--

Martin Honnen
http://JavaScript.FAQTs.com/

.

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.