Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: Problems with window.open

Reply
Thread Tools

Re: Problems with window.open

 
 
ashelley@inlandkwpp.com
Guest
Posts: n/a
 
      06-24-2004
On Thu, 24 Jun 2004 08:05:02 -0700, Harald
<(E-Mail Removed)> wrote:

>Hi
>Can anyone tell me why following piece of code isn't functioning well:
>lb.Attributes.Add( "onclick", "window.open( 'file://' + DstFolder + '/' + fiTemp.Name)");
>lb is a linkbutton, DstFolder any folder on my local system to test,
>in real time the string file:// is http:// and fiTemp.Name is my file.


When something doesn't work like this you should do a view source on
the generated page to see what is actually there.

lb.Attributes.Add( "onclick", "window.open( 'file://" + DstFolder +
"/" + fiTemp.Name + "','newindow')");

(I didn't test this)

-Adam

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving the web, charset problems and symbols problems Sak Na rede Ruby 0 01-30-2009 05:05 AM
Problems, problems for newbie Shelly ASP .Net 1 09-03-2007 02:10 AM
Problems compiling simple C++ code (also problems with std::string) Susan Baker C++ 2 06-26-2005 01:43 AM
Re: sound problems and modem problems Harold Potter Computer Support 5 12-04-2003 04:12 PM



Advertisments