ASP.NET

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentASP.NET

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old June 22nd, 2012, 09:12 AM
Goomba79 Goomba79 is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Posts: 1 Goomba79 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 30 sec
Reputation Power: 0
Open link in new tab (asp.net VB)

Hello!!!

I have a list box that displays various files in a folder.
on the selected index changed handler I have this code

Code:
Dim opendoc As String opendoc = lbDocs.SelectedValue
Response.Write("<script>") 
Response.Write("window.open('" + opendoc.Replace("\", "/") + "', '_newtab')") 
Response.Write("</script>")


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??

Thanks,

Iain

Reply With Quote
  #2  
Old June 22nd, 2012, 10:25 AM
jamespayne's Avatar
jamespayne jamespayne is offline
Editor-in-Beef
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Sep 2008
Location: South Florida
Posts: 31 jamespayne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 9 h 48 m 44 sec
Reputation Power: 10
Hi Iain,

I'd suggest posting this question in one of our sister forums - specifically the ASP Free Forums. Its a bit more active and there are plenty of .Net experts over there. Here is the link:

http://forums.aspfree.com/net-development-11/

You will have to create a new username there, but your answer will likely get resolved much sooner.

Hope to see you there!

Reply With Quote
  #3  
Old May 3rd, 2013, 09:05 AM
annaharris annaharris is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Apr 2013
Posts: 22 annaharris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 23 m 59 sec
Reputation Power: 0
Have you checked the properties of the list box where all your files are listed ?

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentASP.NET > Open link in new tab (asp.net VB)


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap