I need assistance with redirecting a page in a new tab. I am looking for a solution either through script or c# code. Any help is greatly appreciated.
<asp:DropDownList ID="ddlcomplaint" CssClass="list-item-width1" runat="server" AutoPostBack="true"
OnSelectedIndexChanged="ddlcomplaint_SelectedIndexChanged" onchange="aspnetForm.target ='_blank';">
protected void ddlcomplaint_SelectedIndexChanged(object sender, EventArgs e)
{
txtTitle.Text = "";
int complaint = Convert.ToInt16(ddlcomplaint.SelectedValue);
if (complaint == 100)
{
txtTitle.Enabled = true;
}
else
{
txtTitle.Enabled = true;
txtTitle.Text = ddlcomplaint.SelectedItem.Text.ToString();
}
string Title = ddlcomplaint.SelectedItem.Text;
Response.Redirect("/SearchComplaint.aspx?Title=" + Title);
}