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

April 9, 2007. Ajax.

Leave a Comment

Be the first to comment!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Trackback URI

Follow

Get every new post delivered to your Inbox.