getting value of server control

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?
code is given below:
<asp:DataList ID="DataList1" runat="server" DataKeyField="urls"
DataSourceID="AccessDataSource1"
Height="383px" HorizontalAlign="Justify" Width="139px"
ForeColor="ControlText"

OnSelectedIndexChanged="DataList1_SelectedIndexChanged">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" ForeColor="CornflowerBlue"
runat="server" Text=' said:
</asp:LinkButton><br />
<asp:Label ID="textLabel"
ForeColor="mediumVioletRed" runat="server" Text='<%# Eval("text")
%>'></asp:Label><br />
<asp:Label ID="urlsLabel" Font-Bold="false"
ForeColor="ForestGreen" runat="server" Text='<%# Eval("urls") %>'></
asp:Label><br />
<asp:HiddenField ID="humm" runat="server" Value='<%#
Eval("page_ref") %>' Visible="true" OnValueChanged="humm_ValueChanged"/</ItemTemplate>
</asp:DataList>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top