|
 |
asp_web_howto thread: Form State management.
Message #1 by omkarj@h... on Fri, 21 Feb 2003 08:29:48
|
|
Hi,
Can some body tel me how to handle state management with ASP.
I have a form , where users enter Customer name and other details and
submits
Now what i need is ,to check if the Customer name already exixt in the
data base?
If it exist then redirect him to the form with Msg like Customer already
exist, with all other values in other text boxes.
help me please.
Message #2 by "Rahul Singh" <rahul.singh@a...> on Fri, 21 Feb 2003 07:34:58 -0500
|
|
Where are you storing the customer information?
You should have a database. Query the database before you insert.
Or .. just have a storedProcedure in MSSQL that checks and returns 1 or 0
( spDoesUserExist )
Rahul
Anant Systems, Inc.
http://www.anantsystems.net
1877ANANTCOx1
----- Original Message -----
From: <omkarj@h...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Friday, February 21, 2003 8:29 AM
Subject: [asp_web_howto] Form State management.
> Hi,
>
> Can some body tel me how to handle state management with ASP.
>
> I have a form , where users enter Customer name and other details and
> submits
>
> Now what i need is ,to check if the Customer name already exixt in the
> data base?
> If it exist then redirect him to the form with Msg like Customer already
> exist, with all other values in other text boxes.
>
> help me please.
>
Message #3 by Greg Griffiths <greg2@s...> on Fri, 21 Feb 2003 22:40:34 +0000
|
|
You can just use :
<input type="text" name="custname" size="10" value="Request.Form("custname")">
or you can sue the VIEWSTATE option in ASP.Net
At 08:29 21/02/03 +0000, you wrote:
>Hi,
>
>Can some body tel me how to handle state management with ASP.
>
>I have a form , where users enter Customer name and other details and
>submits
>
>Now what i need is ,to check if the Customer name already exixt in the
>data base?
>If it exist then redirect him to the form with Msg like Customer already
>exist, with all other values in other text boxes.
>
>help me please.
|
|
 |