|
 |
asp_discuss thread: Getting The Form Value
Message #1 by "Dibyendra Hyoju" <dibyendra@y...> on Thu, 31 Oct 2002 14:06:42
|
|
How Can The Form Value In The Same Page Can Be Accessed Through ASP?
I wanted the value in the field CustomerID in the ASP page.
Through the following code I got the undefined value.
val=Server.HTMLEncode(Request.QueryString("customerID"))
OR
val=request.form("customerID")
Message #2 by Teng-Fong SEAK <tfseak@f...> on Thu, 31 Oct 2002 18:34:42 +0100
|
|
I don't quite understand your cryptic message ......
How did you construct the previous webpage before this ASP page that
you're
talking about ? Didn't you forget to make a submit button in that
previous
webpage ?
Otherwise, try Request("customerID") which is the shorthand form to get
value from both "get" and "post" methods.
> -----Message d'origine-----
> De : Dibyendra Hyoju [mailto:dibyendra@y...]
> Envoy=C3=A9 : jeudi 31 octobre 2002 15:07
> =C3=80 : asp_discuss
> Objet : [asp_discuss] Getting The Form Value
>
>
> How Can The Form Value In The Same Page Can Be Accessed Through ASP?
> I wanted the value in the field CustomerID in the ASP page.
> Through the following code I got the undefined value.
> val=3DServer.HTMLEncode(Request.QueryString("customerID"))
> OR
> val=3Drequest.form("customerID")
|
|
 |