如何在用戶控件中的Imagebutton的click事件中打開radwindow? 此外,我在aspx頁面中使用了相同的代碼,它工作正常。從用戶控件打開radwindow
car.ascx
car.ascx.cs
protected void btnCarLogo_Click(object sender, ImageClickEventArgs e)
{
carurl="https://www.google.co.in/"
ScriptManager.RegisterStartupScript(this, this.GetType(), "popCarWindow", "window.radopen('" + carurl + "', 'CarDetails');", true);
}
+1但是,確保設置EnableViewState =「false」,以防止在您關閉窗口後無法設置VisibleOnPageLoad =「false」時,在AJAX事件之後打開RadWindow – dstepan 2013-04-27 18:48:55