Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
695
Hidden Input not available during partial postback?
posted

Hi,

I have a WARP panel which wraps an ig toolbar, which has a few buttons and a custom control, which is a asp.net web user control, which is a webcombo.  So these are all wrapped by the WARP right?

In the web user control, I have a hidden input (it is marked with runat=server), I set the value of this hidden input on the client side when a value is selected by the webcombo.  When a button control on the toolbar causes a postback (now a partial, as it is wrapped in the WARP) the value of the input is null when I look at it in page loading?

Any ideas on this would be a great help.

Many thanks.

Zack

Parents
  • 237
    posted

    I have a similar situation that does work. I think it is important that you set the html controls id and not just it's name.

    My hidden input is in a panel so when I set it in Javascript I use: 
                   document.getElementById('pnlParameter_HiddenField').value='hello'

    My field definition is as follows:
                  <input type="hidden" id="HiddenField" runat="server" />

     

     

     

Reply Children
No Data