Currently, I am calling my JavaScript functions using:
ScriptManager.RegisterClientScriptBlock(this, typeof(Page), Guid.NewGuid().ToString(), "$(function(){$.jGrowl('Hello World');});", true);
It works perfectly! Even using master page and update panel it works as expected.
However, when I try to do the same in a user control that is embedded in a page that is being called with a jQuery thickbox, it does not work!
Does anyone know how to solve this issue? Where in your code is this call happening? Page_Load()?
以上就是Calling JavaScript function from codebehind C# in a user control的详细内容,更多请关注web前端其它相关文章!