getting value of server control

  • Thread starter Thread starter bushi
  • Start date Start date
B

bushi

hi!
i'm getting the data form the database by using datalist
control,and have assigned the value to hidden field control in aspx
file,now i want to get the value of hidden field in my aspx.cs
file,for some manipulations.how i can get it?
 
Howdy,

<asp:HiddenField runat="server" ID="myHiddenField"/>
or
<input type="hidden" runat="server" id="myHiddenField"/>

in code behind:

string value = myHiddenField.Value;

Hope this helps
 
Back
Top