I have two UpdatePanels. One UpdatePanel
has a CheckBox
and a UserControl
. UserControl has some TextBoxes
. In other updatepanel, there are few Labels
.
I have added javascript function to checkbox to hide/show it. I am using Javascript to avoid partial postbacks to server.
I also want to update the second UpdatePanel when checkbox is checked/unchecked or some data is changes in user control's textboxes.
Can I call javascript function as well as server side function on same checkbox ? I tried adding triggers to second updatepanel but they are not fired.
updatepanel1
checkbox
usercontrol
textbox1
texbox2
updatepanel2
label1 (updated on change of textbox 1)
label2 (updated on change of textbox 1)
my checkbox markupd looks like this
<asp:CheckBox ID="chkShippingSameAsBilling" runat="server"
Text=" Ship to same address"
AutoPostBack="true" Checked="true"
onclick="return ShowShippingAddress();"
/>