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. Advertising

  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. Advertising

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. Alvin Bruney

    Re: Form posting itself

    Alvin Bruney, Jun 25, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    1,436
    Alvin Bruney
    Jun 25, 2003
  2. KathyB
    Replies:
    6
    Views:
    567
    Todd Thompson
    Jun 27, 2003
  3. KathyB
    Replies:
    3
    Views:
    2,404
    Axel Dahmen
    Jul 1, 2003
  4. Penny Bond
    Replies:
    3
    Views:
    1,066
    Trevor Benedict R
    Mar 16, 2005
  5. fred schulz
    Replies:
    0
    Views:
    127
    fred schulz
    Jan 30, 2004
Loading...

Share This Page