I have a HiddenField which changes value depending on what the user clicks. On the same page I have an invisible Panel with a User Control inside of it. I want to pass this value to the control when the Panel becomes visible.
The code:
<asp:HiddenField ID="hfdSelectedDeliveryAddressID" runat="server" Value="0" />
<asp:Panel ID="pnlOrder" runat="server" Visible="false">
<uc3:AddressBook ID="AddressBook1" runat="server" AddressID="[value]" />
</asp:Panel>
I guess I'm asking what the syntax is to insert $("#<%= hfdSelectedDeliveryAddressID.ClientID %>").val() where "[value]" is. Help?