June 22nd, 2012, 08:12 AM
Join Date: Jun 2012
Time spent in forums: 32 m 30 sec
Reputation Power: 0
Open link in new tab (asp.net VB)
I have a list box that displays various files in a folder.
on the selected index changed handler I have this code
Dim opendoc As String opendoc = lbDocs.SelectedValue
Response.Write("window.open('" + opendoc.Replace("\", "/") + "', '_newtab')")
so when an item is selected in the list a new tab is opened and the file is displayed.
the only problem is when i close the window my original page has been completely aligned to the left.
does anyone know why this is or how I can remedy it??