Problem with ClientScript.RegisterClientScriptBlock when using Ajax
There’s a breaking change in the beta. to insert scripts during a partial postback youmust use the registerXXX static methods of the scriptmanager class.
e.g.
Microsoft.Web.UI.ScriptManager.RegisterClientScriptBlock(DropDownList1, typeof(DropDownList),“TestKey”,” alert(’TEst Key’); “,true);
Advertisement
Leave a Comment
Be the first to comment!