Asp.Net Javascript Window.open From code Behind

To Open New Window From Window.open From Javascript in Asp.Net Code behind use the Following Code

string script = “window.open(‘../FolderName/frmNewFrom.aspx?RepId=RepId&OtherId=” + lblId.Text + “‘,  ”,’width=800, height=500,top=130,left=90,resizable=yes’);”;
ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), “PageName”, script, true);

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s