while using a webAsyncrefreshPanel my javascript for showing an alert message is not working.how can i make use of it.
Hi,
The second option really works fine for me.
Thanks a lot...
There are 2 options to run script within async postback of WARP.
protected void Button1_Click1(object sender, EventArgs e){ string js = "<script type='text/javascript'>alert('ok')</script>"; // #1 LiteralControl child = new LiteralControl(js); this.WebAsyncRefreshPanel1.Controls.Add(child); // #2 Infragistics.WebUI.Shared.CallBackManager.AddScriptBlock(this, this.WebAsyncRefreshPanel1, js);}
are you doing RegisterStartupScript from code behine?
If that is the case it won't work with WARP.