Asp.Net Javascript From code Behind

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

string script = “‘../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);


Leave a Reply

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

You are commenting using your 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