Hidden Fields after ajax postback

2 posts, 0 answers
  1. weezie
    weezie avatar
    18 posts
    Member since:
    Mar 2009

    Posted 20 Aug 2010 Link to this post

    Is there anyway to change the value of a hidden field during postback?
    I need to change the asp hidden field during a button click event, but the hidden field value doesn't get retained after the postback.

    The button is within a RadAjaxPanel.

    I added it to the RadAjaxPanel containing the button, and I also tried additing to RadAjaxManager (see below) but it didn't make any difference.



    telerik:AjaxSetting AjaxControlID="Button" >






    <telerik:AjaxUpdatedControl ControlID="hiddenfield" />








  2. Sebastian
    Sebastian avatar
    9934 posts

    Posted 23 Aug 2010 Link to this post

    Hi weezie,

    If you implement the functionality you request (using an asp button to update an asp hidden field) with regular posbacks, the same code should work with RadAjaxManager or RadAjaxPanel which transform the postbacks into ajax request. You merely need to make sure that you ajaxify the button and the hidden field using either ajax manager or ajax panel but not both at the same time.

    Test your code with plain postbacks and then ajaxify the configuration and let us know how it goes.

    Best regards,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top