Saturday, May 03, 2025

Breaking News
>> Securing and encrypt View State and Cookies values  >> Page has one or more controls that do not correspond with   >> “The Controls collection cannot be modified because the control contains code blocks”  >> How to fix "Validation(): Element 'xxxx' is not supported  >> How to create a new session in ASP.NET programmatically  >> MySQL Database Backup using mysqldump command    

Editors Picks

Monday, March 5, 2012

Not working ClientScript.RegisterStartupScript with Update Panel



When you use Update Panel dont use ClientScript.RegisterStartupScript

Use ScriptManager.RegisterStartupScript

string srcitp = "alert('Invalid value for update.')";
ScriptManager.RegisterStartupScript(this, this.UpdatePanel1.GetType(), "srcitp", srcitp, true);

No comments :

Post a Comment

Contact Us

Name

Email *

Message *