Hide/Show Controls during a callback

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Is it possible to Hide/Show controls during a callback? I have a radio
button list that does the callback. When it does the callback I need to
refresh the grid to reflect the selected value in the radio button. Also I
need to hide some check boxes based on the selected value. The checkboxes and
radiobuttons are both server controls. Please let me know.

Thanks,
 
Hi,

Thank you for the reply. I have already thought about that. Now I am having
a different problem. I am using ScriptManager and UpdatePanel controls to do
the callbacks. I have a radio button list that does the callback. The
radiobuttonlist has three options. The first option is selected by default.
So when the user gets the page for the first time it uses that option to
display the data. when I switch to another option it is doing the callback
and everything is working fine. However if I select the first option(which is
default) it is not doing the callback. I am assuming that since it didn't
update the viewstate during the callback the asp.net framework is thinking
that the selectedindex didn't change for the radiobutton list. That is why
it is not doing callback. When I searched online they sugested to call
WebForm_InitCallback() manually. But I am not knowing where to include that
code since the ScriptManager automatically inserts the necessary javascript
code for the callbacks. Please let me know.

Thanks,
 
Back
Top