Error Message displayed as "AddFavoriteRadWindow not found"
我的代码:
protected void btnAddReport_Click(object sender, ImageClickEventArgs e)
{
this.form1.Controls.Add(AddFavoriteRadWindow); // working fine
}
protected void btnOk_Click(object sender, EventArgs e)
{
if (txtReportFavorite.Text != string.Empty)
{
// code for inserting into db..
AddFavoriteRadWindow.Visible = false; // not working
}
}
当我想隐藏 rad 窗口时显示“找不到 AddFavoriteRadWindow”消息