I have created a web site using ASP .Net and have published it to IIS.
The published version is not opening the new window correctly.
When the user clicks on the link this routine is called:
Public Sub LinkButton_Command(ByVal sender As Object, ByVal e As CommandEventArgs)
Session("ReportID") = e.CommandArgument
Response.Write("<script/ja
vascript'>
detailedre
sults=wind
ow.open('R
eprtPage.a
spx');</sc
ript>")
End Sub
This form also performs sorting so it does post back. I am unable to use the target= _new in the form because it causes the sort to open a new page each time.
Why has it stopped working? Is there a simple fix that won't interfer with the postback that's going on with the page?
Thank for your help.
Start Free Trial