retrodog
07-15-2008, 06:04 AM
I have a page that uses AJAX tabs and within the tabs, I have accordion panels. I used the modalpopup to allow the user to select items which are then added dynamically as new accordion panels within new tabs if applicable. I have a button within the dynamically created accordion panel, that when clicked I think is posting back. When that happens, the tabs are still visible but the dynamically created accordion panels disappear. I don't want the buttons to do anything when clicked since this is a prototype. I tried to do this a number of different ways in the code behind page when I create the button:
buttonSave.OnClientClick = "javascript:void(0);";
and
buttonSave.Attributes.Add("OnClick", "buttonSave_Click");
But I still get the same results. Can anyone help??
buttonSave.OnClientClick = "javascript:void(0);";
and
buttonSave.Attributes.Add("OnClick", "buttonSave_Click");
But I still get the same results. Can anyone help??