How can I get a form value?

  • Thread starter Thread starter Oney
  • Start date Start date
O

Oney

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
 
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
 
Request.Form("FormFieldNameAttribute")

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