Retrieve data on server when using method="post"

HI,

I'm building ASP.NET webApp and must use <FORM method="post" ... /> .

How can I get the posted data in the server side (something like QueryString in get method).

Thanx, El.
eladkaAsked:
Who is Participating?
 
TheJay04Commented:
The way Colosseo says is the way to do it in basic asp.

The Asp.net way is for example

Try this source

'------------------------------------------------------
<script  runat="server">
Sub submit(Source As Object, e As EventArgs)
   button1.Text="You clicked me!"
End Sub
</script>
'------------------------------------------------------
<html>
<body>
<form runat="server">
<asp:Button id="button1" Text="Click me!" runat="server" OnClick="submit"/>
</form>
</body>
</html>
'------------------------------------------------------
0
 
ColosseoCommented:
Hi El

the equivalent of querystring in get for post is form

so request.Form("[name of field]")

HTH

Scott
0
 
eladkaAuthor Commented:
Thanx !!!
0
 
scanadminCommented:
not used .net yet, however in asp3 if you do request("[field name]"), it checks for both querystring and form data.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.