Where is that code being called from? If it is from any asp.net button type, the page will refresh because of a post back. Also, you are mixing asp.net server side code inside of your javascript:
ClientScript.RegisterClientScriptBlock AND
ClientScript.IsClientScriptBlockRegistered - is server side code, not javascript code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.