当使用AjaxControlToolkit,如果遇到message "Sys.InvalidOperationException: Two components with the same id '{ExtenderId}' can't be added to the application error." when the container update panel is refreshed。
可以用下面方法解决。
每次页面Load时候单独给出错的AJAX控件赋一个不同的ID,比如Date.Now.Tostring();
protected void Page_Load(object sender, EventArgs e)
{
XXXextender1.ID = DateTime.Now.ToString();
}