Ajax ModalPopUpControl [modified]
-
Hi, I am having this problem with this ModalPopUpControl from Ajax. It did pop up as it meant to be but I want it to do something more. Basically, there are two Panel that will pop up, lets name it Panel1 and Panel2. Panel2 will appear after Panel1 if some conditions are met, if not, it shoudl not appear. So in Panel1, I put a button Button1, hoping I can put in some condition under this button to call out Panel2. I want the protected void Button1_Click(object sender, EventArgs e) to fire but it seems nothing happens, it just show me Panel2 straight without checking the condition. So I wanted to know how can I set some conditions to stop the ModalPopUpControl to proceed if the conditions are not met. Or another way is how I can invoke a button click from javascript so that it will run the protected void Button1_Click(object sender, EventArgs e) for me since the ModalPopUpControl has a OnOkScript which will call a javascript function in the page. Thanks in advance. :)
modified on Tuesday, May 20, 2008 5:28 AM
-
Hi, I am having this problem with this ModalPopUpControl from Ajax. It did pop up as it meant to be but I want it to do something more. Basically, there are two Panel that will pop up, lets name it Panel1 and Panel2. Panel2 will appear after Panel1 if some conditions are met, if not, it shoudl not appear. So in Panel1, I put a button Button1, hoping I can put in some condition under this button to call out Panel2. I want the protected void Button1_Click(object sender, EventArgs e) to fire but it seems nothing happens, it just show me Panel2 straight without checking the condition. So I wanted to know how can I set some conditions to stop the ModalPopUpControl to proceed if the conditions are not met. Or another way is how I can invoke a button click from javascript so that it will run the protected void Button1_Click(object sender, EventArgs e) for me since the ModalPopUpControl has a OnOkScript which will call a javascript function in the page. Thanks in advance. :)
modified on Tuesday, May 20, 2008 5:28 AM
U have to write those code in Button ONClick event ,