I am using the following code to open the file with dropdown selected value from a url
Protected Sub ddlPS_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlPS.SelectedIndexChanged
ClientScript.RegisterStartupScript(Me.GetType(), "openfile", String.Format("var w = window.open('http://foods.shakarganj.com.pk/pdf/{0}.pdf');", ddlPS.SelectedValue), True)
End Sub
Problem is that when i select the Value from dropdown it opens the file in window and also refresh the parent page.I want to avoid the the parent refreshing and want to open the file in new tab intead of in new window.