Re: Problems with window.open

Discussion in 'ASP .Net' started by ashelley@inlandkwpp.com, Jun 24, 2004.

  1. Guest

    On Thu, 24 Jun 2004 08:05:02 -0700, Harald
    <> 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
     
    , Jun 24, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ml
    Replies:
    0
    Views:
    1,487
  2. ml
    Replies:
    2
    Views:
    4,898
    John C. Bollinger
    Nov 30, 2004
  3. wax
    Replies:
    9
    Views:
    365
  4. Clare Hsiao
    Replies:
    11
    Views:
    273
    Michael Winter
    Feb 13, 2004
  5. PC HUA
    Replies:
    2
    Views:
    466
    PC HUA
    May 19, 2004
Loading...

Share This Page