Connecting Tech Pros Worldwide Forums | Help | Site Map

How can I get a form value?

Oney
Guest
 
Posts: n/a
#1: Nov 18 '05
How can I get form value?
I created an hidden html element and name it myKey. I have to get the
value of the myKey for each postback.How can I get it.
thanks

Eliyahu Goldin
Guest
 
Posts: n/a
#2: Nov 18 '05

re: How can I get a form value?


Provided you declare your element as

<input id="hiddenElement" type="hidden" name="hiddenElement" runat="server">

you can reach it in the code-behind as

Request.Params["hiddenElement"]

Eliyahu

"Oney" <ozcankanbur@yahoo.com> wrote in message
news:cc5e237f.0406012311.148c905e@posting.google.c om...[color=blue]
> How can I get form value?
> I created an hidden html element and name it myKey. I have to get the
> value of the myKey for each postback.How can I get it.
> thanks[/color]


Kevin Spencer
Guest
 
Posts: n/a
#3: Nov 18 '05

re: How can I get a form value?


Request.Form("FormFieldNameAttribute")

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Oney" <ozcankanbur@yahoo.com> wrote in message
news:cc5e237f.0406012311.148c905e@posting.google.c om...[color=blue]
> How can I get form value?
> I created an hidden html element and name it myKey. I have to get the
> value of the myKey for each postback.How can I get it.
> thanks[/color]


Closed Thread