我有一個c#asp.net 3.5應用程序 我想從某個事件後面的代碼打開一個窗口。我有這個,但它不工作,並沒有在螢火蟲錯誤從代碼後面調用JavaScript
protected override void OnPreRender(EventArgs e) {
base.OnPreRender(e);
if (openCredentialsWindow) {
if (openCredentialsWindow_ClientId != Guid.Empty) {
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "openCredentials", string.Format("radopen('Services.aspx?clientId={0}, Window_Services')", openCredentialsWindow_ClientId.ToString()));
}
}
}
任何想法?