下拉列表刷新

Ade*_*lam 3 javascript asp.net asp.net-ajax

我有以前日期值的下拉列表打开带有选定值的网址.当我从下拉列表中选择值时,它会在新窗口中打开网址,当我刷新页面时,它会重新打开相同的网址.我想打开以打开新网址选项卡并阻止在刷新时重新打开URL我的代码如下

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={0}','_newtab');", DropDownList1.SelectedValue), True)
Run Code Online (Sandbox Code Playgroud)

Nav*_*oft 5

如果为窗口提供名称和替换标志(在window.open方法中),则不会在其他窗口中打开相同的URL.你可以参考这个.