Page.ClientScript.RegisterClientScriptBlock problem in chrome, not registering
Posted
by user270399
on Stack Overflow
See other posts from Stack Overflow
or by user270399
Published on 2010-05-21T08:30:59Z
Indexed on
2010/05/21
8:40 UTC
Read the original article
Hit count: 565
Hello!
I am using Page.ClientScript.RegisterClientScriptBlock to register a variable that tells the site to show something for the user (Don't need to get in to what is show). I am going to try to use RegisterStartupScript instead and see if i get any other result, i will get back on that.
In my site i use jquery to look for that variable and do something if it exists. This works very well in IE 6,7,8 & FF but not in Chrome. In Chrome it works sometimes but most of the time it does not work, the variable does not get inserted on the page. The variable is beeing inserted in the Page_PreRender.
Someone that has got a workaround for this or have experienced the same problem?
Thanks
© Stack Overflow or respective owner