Ask a Question related to ASP Components, Design and Development.

  1. #1

    Default How to navigate...

    Hi

    My problem is probably simple. But I do not know, how to obtain directory
    from a client, to store a downloaded file.
    I mean, client can to point directory in his PC (something like SaveDialog
    in Windows.Forms), where a WebClient can send a file.
    Is there any component, to solve this problem?

    Thanks

    Dusan
    Dusan Guest

  2. Similar Questions and Discussions

    1. Navigate a 3d world
      Hi all, I'm not sure how to explain this. I have a wrl of a room and I could control the camera using the available Dolly and pan behaviors. I am...
    2. Navigate multiple PDF files
      I have a large book split into multiple PDF files. Basically one file per chapter. Currently the navigation from one chapter to the next works by...
    3. Using variables to navigate
      I wanted to title this "Am I taking CRAZY PILLS??", but opted for the current title Ok...it seems so simple, but obviously I must be missing...
    4. Using ENTER key to navigate thru' RadioButtonList
      i am able to trap the EnterKey . radiopayment.Attributes.Add("onkeypress", "return handleEnter(this, event)") and then in the javascript...
    5. Navigate - specifying URLs to link to
      I have created a signpost that I want to use to navigate to various web pages pointed to by the direction indicators on the signpost graphic, I...
  3. #2

    Default Re: How to navigate...

    You can't specify this. it's up to the user where the file gets saved. Or is
    that not what you mean? Might be a clkash of terminology here



    --
    Jason Brown
    Microsoft GTSC, IIS

    This posting is provided "AS IS" with no warranties, and confers no rights.

    "Dusan" <Dusan@discussions.microsoft.com> wrote in message
    news:A2C6C012-4723-461B-B10F-9838DD52ECF1@microsoft.com...
    > Hi
    >
    > My problem is probably simple. But I do not know, how to obtain directory
    > from a client, to store a downloaded file.
    > I mean, client can to point directory in his PC (something like SaveDialog
    > in Windows.Forms), where a WebClient can send a file.
    > Is there any component, to solve this problem?
    >
    > Thanks
    >
    > Dusan

    Jason Brown [MSFT] Guest

  4. #3

    Default Re: How to navigate...

    Thank You Jason

    There is HTML componet <input type="file"/> which put on the page button
    "Browse" , to enable user populate his FileSystem to select a file. But this
    is suitable only for file uploading .
    I ment, there must be something similar for DownLoad file...

    Dusan

    "Jason Brown [MSFT]" wrote:
    > You can't specify this. it's up to the user where the file gets saved. Or is
    > that not what you mean? Might be a clkash of terminology here
    >
    >
    >
    > --
    > Jason Brown
    > Microsoft GTSC, IIS
    >
    > This posting is provided "AS IS" with no warranties, and confers no rights.
    >
    > "Dusan" <Dusan@discussions.microsoft.com> wrote in message
    > news:A2C6C012-4723-461B-B10F-9838DD52ECF1@microsoft.com...
    > > Hi
    > >
    > > My problem is probably simple. But I do not know, how to obtain directory
    > > from a client, to store a downloaded file.
    > > I mean, client can to point directory in his PC (something like SaveDialog
    > > in Windows.Forms), where a WebClient can send a file.
    > > Is there any component, to solve this problem?
    > >
    > > Thanks
    > >
    > > Dusan
    >
    >
    >
    Dusan Guest

  5. #4

    Default Re: How to navigate...

    You can cause the browser to show the 'save as' dialog pretty easily by
    sending a content-disposition header

    Response.AddHeader("content-disposition",
    "attachment;filename=somefile.extn")
    and/or making sure you send a mime-type the browser won't want to display by
    itself
    Response.ContentType = "application/unknown"


    but you can't specify where the user will put it.


    --
    Jason Brown
    Microsoft GTSC, IIS

    This posting is provided "AS IS" with no warranties, and confers no
    rights.


    "Dusan" <Dusan@discussions.microsoft.com> wrote in message
    news:B850F937-EA0C-42FF-975C-55C3C327EA60@microsoft.com...
    > Thank You Jason
    >
    > There is HTML componet <input type="file"/> which put on the page button
    > "Browse" , to enable user populate his FileSystem to select a file. But
    > this
    > is suitable only for file uploading .
    > I ment, there must be something similar for DownLoad file...
    >
    > Dusan
    >
    > "Jason Brown [MSFT]" wrote:
    >
    >> You can't specify this. it's up to the user where the file gets saved. Or
    >> is
    >> that not what you mean? Might be a clkash of terminology here
    >>
    >>
    >>
    >> --
    >> Jason Brown
    >> Microsoft GTSC, IIS
    >>
    >> This posting is provided "AS IS" with no warranties, and confers no
    >> rights.
    >>
    >> "Dusan" <Dusan@discussions.microsoft.com> wrote in message
    >> news:A2C6C012-4723-461B-B10F-9838DD52ECF1@microsoft.com...
    >> > Hi
    >> >
    >> > My problem is probably simple. But I do not know, how to obtain
    >> > directory
    >> > from a client, to store a downloaded file.
    >> > I mean, client can to point directory in his PC (something like
    >> > SaveDialog
    >> > in Windows.Forms), where a WebClient can send a file.
    >> > Is there any component, to solve this problem?
    >> >
    >> > Thanks
    >> >
    >> > Dusan
    >>
    >>
    >>

    Jason Brown [MSFT] Guest

  6. #5

    Default Re: How to navigate...

    Jason

    Your example works well, but this only can send entire page. I would need to
    send a file, saved in app. directory (likes zip,rar file).
    I mean, I would like to allow a client do download a file from main domain.
    What kind of parameters shoul I put in AppenHeader sub.
    Response.AppendHeader(string name?,string value?);

    Thank You

    Dusan



    "Jason Brown [MSFT]" wrote:
    > You can cause the browser to show the 'save as' dialog pretty easily by
    > sending a content-disposition header
    >
    > Response.AddHeader("content-disposition",
    > "attachment;filename=somefile.extn")
    > and/or making sure you send a mime-type the browser won't want to display by
    > itself
    > Response.ContentType = "application/unknown"
    >
    >
    > but you can't specify where the user will put it.
    >
    >
    > --
    > Jason Brown
    > Microsoft GTSC, IIS
    >
    > This posting is provided "AS IS" with no warranties, and confers no
    > rights.
    >
    >
    > "Dusan" <Dusan@discussions.microsoft.com> wrote in message
    > news:B850F937-EA0C-42FF-975C-55C3C327EA60@microsoft.com...
    > > Thank You Jason
    > >
    > > There is HTML componet <input type="file"/> which put on the page button
    > > "Browse" , to enable user populate his FileSystem to select a file. But
    > > this
    > > is suitable only for file uploading .
    > > I ment, there must be something similar for DownLoad file...
    > >
    > > Dusan
    > >
    > > "Jason Brown [MSFT]" wrote:
    > >
    > >> You can't specify this. it's up to the user where the file gets saved. Or
    > >> is
    > >> that not what you mean? Might be a clkash of terminology here
    > >>
    > >>
    > >>
    > >> --
    > >> Jason Brown
    > >> Microsoft GTSC, IIS
    > >>
    > >> This posting is provided "AS IS" with no warranties, and confers no
    > >> rights.
    > >>
    > >> "Dusan" <Dusan@discussions.microsoft.com> wrote in message
    > >> news:A2C6C012-4723-461B-B10F-9838DD52ECF1@microsoft.com...
    > >> > Hi
    > >> >
    > >> > My problem is probably simple. But I do not know, how to obtain
    > >> > directory
    > >> > from a client, to store a downloaded file.
    > >> > I mean, client can to point directory in his PC (something like
    > >> > SaveDialog
    > >> > in Windows.Forms), where a WebClient can send a file.
    > >> > Is there any component, to solve this problem?
    > >> >
    > >> > Thanks
    > >> >
    > >> > Dusan
    > >>
    > >>
    > >>
    >
    >
    >
    Dusan Guest

  7. #6

    Default Re: How to navigate...

    well, a file like that wouldn't be processed by the ASP engine by default,
    so you'd have to open the file from ASP, then stream it. A quick Google
    turned this up:

    [url]http://rtfm.atrax.co.uk/infinitemonkeys/articles/asp/934.asp[/url]



    --
    Jason Brown
    Microsoft GTSC, IIS

    This posting is provided "AS IS" with no warranties, and confers no rights.




    "Dusan" <Dusan@discussions.microsoft.com> wrote in message
    news:E39910B7-214B-4598-98EF-C2A13CDCC143@microsoft.com...
    > Jason
    >
    > Your example works well, but this only can send entire page. I would need
    > to
    > send a file, saved in app. directory (likes zip,rar file).
    > I mean, I would like to allow a client do download a file from main
    > domain.
    > What kind of parameters shoul I put in AppenHeader sub.
    > Response.AppendHeader(string name?,string value?);
    >
    > Thank You
    >
    > Dusan
    >
    >
    >
    > "Jason Brown [MSFT]" wrote:
    >
    >> You can cause the browser to show the 'save as' dialog pretty easily by
    >> sending a content-disposition header
    >>
    >> Response.AddHeader("content-disposition",
    >> "attachment;filename=somefile.extn")
    >> and/or making sure you send a mime-type the browser won't want to display
    >> by
    >> itself
    >> Response.ContentType = "application/unknown"
    >>
    >>
    >> but you can't specify where the user will put it.
    >>
    >>
    >> --
    >> Jason Brown
    >> Microsoft GTSC, IIS
    >>
    >> This posting is provided "AS IS" with no warranties, and confers no
    >> rights.
    >>
    >>
    >> "Dusan" <Dusan@discussions.microsoft.com> wrote in message
    >> news:B850F937-EA0C-42FF-975C-55C3C327EA60@microsoft.com...
    >> > Thank You Jason
    >> >
    >> > There is HTML componet <input type="file"/> which put on the page
    >> > button
    >> > "Browse" , to enable user populate his FileSystem to select a file. But
    >> > this
    >> > is suitable only for file uploading .
    >> > I ment, there must be something similar for DownLoad file...
    >> >
    >> > Dusan
    >> >
    >> > "Jason Brown [MSFT]" wrote:
    >> >
    >> >> You can't specify this. it's up to the user where the file gets saved.
    >> >> Or
    >> >> is
    >> >> that not what you mean? Might be a clkash of terminology here
    >> >>
    >> >>
    >> >>
    >> >> --
    >> >> Jason Brown
    >> >> Microsoft GTSC, IIS
    >> >>
    >> >> This posting is provided "AS IS" with no warranties, and confers no
    >> >> rights.
    >> >>
    >> >> "Dusan" <Dusan@discussions.microsoft.com> wrote in message
    >> >> news:A2C6C012-4723-461B-B10F-9838DD52ECF1@microsoft.com...
    >> >> > Hi
    >> >> >
    >> >> > My problem is probably simple. But I do not know, how to obtain
    >> >> > directory
    >> >> > from a client, to store a downloaded file.
    >> >> > I mean, client can to point directory in his PC (something like
    >> >> > SaveDialog
    >> >> > in Windows.Forms), where a WebClient can send a file.
    >> >> > Is there any component, to solve this problem?
    >> >> >
    >> >> > Thanks
    >> >> >
    >> >> > Dusan
    >> >>
    >> >>
    >> >>
    >>
    >>
    >>


    Jason Brown [MSFT] Guest

  8. #7

    Default Re: How to navigate...

    Jason

    Thank You for the link.

    "Jason Brown [MSFT]" wrote:
    > well, a file like that wouldn't be processed by the ASP engine by default,
    > so you'd have to open the file from ASP, then stream it. A quick Google
    > turned this up:
    >
    > [url]http://rtfm.atrax.co.uk/infinitemonkeys/articles/asp/934.asp[/url]
    >
    >
    >
    > --
    > Jason Brown
    > Microsoft GTSC, IIS
    >
    > This posting is provided "AS IS" with no warranties, and confers no rights.
    >
    >
    >
    >
    > "Dusan" <Dusan@discussions.microsoft.com> wrote in message
    > news:E39910B7-214B-4598-98EF-C2A13CDCC143@microsoft.com...
    > > Jason
    > >
    > > Your example works well, but this only can send entire page. I would need
    > > to
    > > send a file, saved in app. directory (likes zip,rar file).
    > > I mean, I would like to allow a client do download a file from main
    > > domain.
    > > What kind of parameters shoul I put in AppenHeader sub.
    > > Response.AppendHeader(string name?,string value?);
    > >
    > > Thank You
    > >
    > > Dusan
    > >
    > >
    > >
    > > "Jason Brown [MSFT]" wrote:
    > >
    > >> You can cause the browser to show the 'save as' dialog pretty easily by
    > >> sending a content-disposition header
    > >>
    > >> Response.AddHeader("content-disposition",
    > >> "attachment;filename=somefile.extn")
    > >> and/or making sure you send a mime-type the browser won't want to display
    > >> by
    > >> itself
    > >> Response.ContentType = "application/unknown"
    > >>
    > >>
    > >> but you can't specify where the user will put it.
    > >>
    > >>
    > >> --
    > >> Jason Brown
    > >> Microsoft GTSC, IIS
    > >>
    > >> This posting is provided "AS IS" with no warranties, and confers no
    > >> rights.
    > >>
    > >>
    > >> "Dusan" <Dusan@discussions.microsoft.com> wrote in message
    > >> news:B850F937-EA0C-42FF-975C-55C3C327EA60@microsoft.com...
    > >> > Thank You Jason
    > >> >
    > >> > There is HTML componet <input type="file"/> which put on the page
    > >> > button
    > >> > "Browse" , to enable user populate his FileSystem to select a file. But
    > >> > this
    > >> > is suitable only for file uploading .
    > >> > I ment, there must be something similar for DownLoad file...
    > >> >
    > >> > Dusan
    > >> >
    > >> > "Jason Brown [MSFT]" wrote:
    > >> >
    > >> >> You can't specify this. it's up to the user where the file gets saved.
    > >> >> Or
    > >> >> is
    > >> >> that not what you mean? Might be a clkash of terminology here
    > >> >>
    > >> >>
    > >> >>
    > >> >> --
    > >> >> Jason Brown
    > >> >> Microsoft GTSC, IIS
    > >> >>
    > >> >> This posting is provided "AS IS" with no warranties, and confers no
    > >> >> rights.
    > >> >>
    > >> >> "Dusan" <Dusan@discussions.microsoft.com> wrote in message
    > >> >> news:A2C6C012-4723-461B-B10F-9838DD52ECF1@microsoft.com...
    > >> >> > Hi
    > >> >> >
    > >> >> > My problem is probably simple. But I do not know, how to obtain
    > >> >> > directory
    > >> >> > from a client, to store a downloaded file.
    > >> >> > I mean, client can to point directory in his PC (something like
    > >> >> > SaveDialog
    > >> >> > in Windows.Forms), where a WebClient can send a file.
    > >> >> > Is there any component, to solve this problem?
    > >> >> >
    > >> >> > Thanks
    > >> >> >
    > >> >> > Dusan
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>
    >
    >
    >
    >
    Dusan Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139