This is a migrated thread and some comments may be shown as answers.

Hidden Fields after ajax postback

1 Answer 280 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
weezie
Top achievements
Rank 1
weezie asked on 20 Aug 2010, 09:54 PM
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" >

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="hiddenfield" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>



 

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 23 Aug 2010, 09:36 AM
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,
Sebastian
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
Tags
Ajax
Asked by
weezie
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or