Page page = HttpContext.Current.CurrentHandler as Page;
String jscript = "window.open('https://google.com', '_blank')";
Control control = page.FindControl("clientid of control");
ScriptManager.RegisterClientScriptBlock(control, control.GetType(), "whatever", jscript, true);
//we can also use ScriptManager.RegisterStartupScript()