Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In my Project i have a Modal popup(AjaxToolkit). In that Modal popup i kept Close Image button and Cancel button and i kept onclick="btnClose_Click" inside the click event i kept modalpopup.Hide();.But its not working in Google chrome and its working in IE, Mozilla Fire Fox Help me ...

-Thanks in advance :)
Posted
Updated 16-Sep-14 22:33pm
v4
Comments
Sinisa Hajnal 17-Sep-14 2:36am    
You have to improve your description. Copy some code to show your setup. Which modal popup you're using (for example jQueryUI or AjaxToolkit) etc...there is a link to improve the question. Use it. Thank you.
Sergey Alexandrovich Kryukov 17-Sep-14 3:35am    
How can we know what's wrong without having a project sample to reproduce the problem?
—SA

1 solution

You need not explicitly add 'modalpopup.Hide();' inside the close button event. Modal popup automatically triggers the hide() function on close.

If added, code gets into loop by recursively calling itself and memory out of range exception would occur. Remove 'modalpopup.Hide();' from the close button event and try.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900