I have code to Open a URL in new tab but it opens the url in new window and when i refresh the main page it reopen the previous url selected from dropdownlist.I want to open the url in new tab and stop to reopen the selcted url again my code is below
ClientScript.RegisterStartupScript(Me.GetType(), "openfile", String.Format("var w = window.open('http://appsrv01.shakarganj.com.pk:7778/reports/rwservlet?reptest&report=eth_fleet_dtl&veh_num=26');", DropDownList1.SelectedValue), True)
Hoping you are opening the url in a button click. Include the following line in the markup code of the button to open the url in a new tab/window. Refer to this link for more information.
EDIT:
Refer to the following code part may be its useful to you