Retrieve data on server when using method="post"

Posted on 2004-10-24
Last Modified: 2010-04-17

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.
Question by:eladka
    LVL 15

    Expert Comment

    Hi El

    the equivalent of querystring in get for post is form

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



    Author Comment

    Thanx !!!
    LVL 1

    Expert Comment

    not used .net yet, however in asp3 if you do request("[field name]"), it checks for both querystring and form data.
    LVL 4

    Accepted Solution

    The way Colosseo says is the way to do it in basic asp.

    The 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
    <form runat="server">
    <asp:Button id="button1" Text="Click me!" runat="server" OnClick="submit"/>

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Suggested Solutions

    Title # Comments Views Activity
    How to copy an image file into clipboard C/C++? 1 97
    sameEnds challenge 25 49
    EvenOdd challenge 10 54
    allStar challenge 1 16
    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    846 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now