Retain values on the form when posting back to itself

Discussion in 'ASP General' started by J P Singh, Nov 19, 2003.

  1. J P Singh

    J P Singh Guest

    I have simple form where user enter the search criteria and the form is
    posted back to itself and runs a query based on the values that are entered.

    Everything is expect the values that the user enters disappears everytime
    the form is refreshed when posting it to itself.

    Is there anyway I can retain the values that were entered on the form?
     
    J P Singh, Nov 19, 2003
    #1
    1. Advertisements

  2. J P Singh

    Ray at Guest

    Yes, just put them back in.

    <form method="post" action="thissamepage.asp">
    <input name="something" value="<%=Request.Form("something")%>" type="text">

    Ray at work

    "J P Singh" <noemail@asIhatespam> wrote in message
    news:...
    > I have simple form where user enter the search criteria and the form is
    > posted back to itself and runs a query based on the values that are

    entered.
    >
    > Everything is expect the values that the user enters disappears everytime
    > the form is refreshed when posting it to itself.
    >
    > Is there anyway I can retain the values that were entered on the form?
    >
    >
    >
    >
     
    Ray at, Nov 19, 2003
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. KathyB
    Replies:
    6
    Views:
    701
    Todd Thompson
    Jun 27, 2003
  2. marcia

    Prevent Web Form from posting back

    marcia, Aug 18, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    3,146
    George Ter-Saakov
    Aug 19, 2003
  3. Penny Bond
    Replies:
    3
    Views:
    1,238
    Trevor Benedict R
    Mar 16, 2005
  4. Anbu

    Posting cache FORM Code back

    Anbu, Oct 14, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    440
  5. Jacob
    Replies:
    4
    Views:
    703
    Jacob
    Jul 7, 2003
  6. TNG
    Replies:
    2
    Views:
    2,538
  7. Jacob
    Replies:
    4
    Views:
    236
    Jacob
    Jul 7, 2003
  8. fred schulz
    Replies:
    0
    Views:
    246
    fred schulz
    Jan 30, 2004
Loading...