ScriptManager.RegisterStartupScript(Me, Me.GetType(), "key", "window.open('vehicle_trackView.aspx');", True)
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Response.Write("<script>"); Response.Write("window.open('Default2.aspx','_blank')"); Response.Write("</script>"); } }
protected void btnNewEntry_Click(object sender, EventArgs e) { Page.ClientScript.RegisterStartupScript(this.GetType(),"OpenWindow","window.open('YourURL','_newtab');",true); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)