Close the window for on RadioButton's OnCheckedChanged()?
-
Hi My application is like this... I have a LinkButton, OnClientClick() of LinkButton opens a seperate window containing two Radio Buttons.Now on selecting any of the RadioButton the window should automatically close. I tried RadioButton1.Attributes.Add("OnCheckedChanged","JavaScript:window.close()"); But it is not working. How can I make this possible. Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
-
Hi My application is like this... I have a LinkButton, OnClientClick() of LinkButton opens a seperate window containing two Radio Buttons.Now on selecting any of the RadioButton the window should automatically close. I tried RadioButton1.Attributes.Add("OnCheckedChanged","JavaScript:window.close()"); But it is not working. How can I make this possible. Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
chand10 wrote:
RadioButton1.Attributes.Add("OnCheckedChanged","JavaScript:window.close()")
Try
RadioButton1.Attributes.Add("OnClick","JavaScript:window.close();")
are you using firefox ? I think
window.close()
is having problems with FF.
-
chand10 wrote:
RadioButton1.Attributes.Add("OnCheckedChanged","JavaScript:window.close()")
Try
RadioButton1.Attributes.Add("OnClick","JavaScript:window.close();")
are you using firefox ? I think
window.close()
is having problems with FF.
-
Gr8!!!!! Its working. Thnx But the click event is for Button know?!
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
chand10 wrote:
But the click event is for Button know?!
No it's there for almost all controls.