Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default File Field Control

    hie all, i have dragged a File Field control from the HTML
    tab to my page and i am able to browse and retrieve the
    file i want. the only problem i have is, i do not want my
    users to be able to browse to other folders. i want them
    to be able to just browse at the specific folder only. in
    other words, i just want them to be able to view at the
    specific folder when the browser button is clicked. i have
    tried looking in the properties, but found no way to do
    so. is it possible to acheive what i want to do? is it is,
    how can i do it? thanx!
    Anne Guest

  2. Similar Questions and Discussions

    1. File Field Confusion
      Please can someone tell me how to make the "file field" in dreamweaver work. What i'm trying to do is have anyone that enters the site to put a...
    2. Web Custom Control error on ID field
      I get the following error when trying to view in browser an aspx page that has my simple Web Custom Control. If I remove the ID=Controlname from...
    3. Required field validators do not while editing a row in a datagrid present in a composite control
      Hi All, I have created a composite control and I have added a datagrid in it. I am dynamically adding an edit column for editing the data. Now I...
    4. file field
      Hi, In the file field <input type="file" name="file1">, can I modify the button "Browse..."? I want to hide the file field but show a button like...
    5. Insert a file in a SQL field
      You can store the file in a column with datatype image. This holds up to 2GB of binary data. -- Jacco Schalkwijk MCDBA, MCSD, MCSE Database...
  3. #2

    Default Re: File Field Control

    No, it is not possible.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    [url]http://www.takempis.com[/url]
    Complex things are made up of
    lots of simple things.

    "Anne" <lilanne_2@yahoo.com> wrote in message
    news:08d101c3567b$3873b8a0$a501280a@phx.gbl...
    > hie all, i have dragged a File Field control from the HTML
    > tab to my page and i am able to browse and retrieve the
    > file i want. the only problem i have is, i do not want my
    > users to be able to browse to other folders. i want them
    > to be able to just browse at the specific folder only. in
    > other words, i just want them to be able to view at the
    > specific folder when the browser button is clicked. i have
    > tried looking in the properties, but found no way to do
    > so. is it possible to acheive what i want to do? is it is,
    > how can i do it? thanx!

    Kevin Spencer Guest

  4. #3

    Default Re: File Field Control

    I believe you can use javascript to access the filename property of the File
    Upload form field. You could then do some sort of form validation that
    would prevent the form from being submitted if the path of the file to
    upload wasn't in the directory you were expecting. This would still let
    them browse any folder, but they could only upload from a valid folder.

    However, this may not be possible anymore due to some security issues that
    involved the file upload control and javascript, modern browsers might have
    disabled the ability to script that control. However, I haven't checked
    into it so I'm not sure.

    Ryan Gregg


    "Kevin Spencer" <kevin@takempis.com> wrote in message
    news:Ol868fpVDHA.2344@TK2MSFTNGP09.phx.gbl...
    > Well, there is ONE thing you could do. You could write an ActiveX control
    or
    > Java Applet to run on the client which would provide the functionality you
    > need. It can't be done with a File Upload form field.
    >
    > --
    > HTH,
    >
    > Kevin Spencer
    > Microsoft MVP
    > .Net Developer
    > [url]http://www.takempis.com[/url]
    > Complex things are made up of
    > lots of simple things.
    >
    > "Anne" <lilanne_2@yahoo.com> wrote in message
    > news:08d101c3567b$3873b8a0$a501280a@phx.gbl...
    > > hie all, i have dragged a File Field control from the HTML
    > > tab to my page and i am able to browse and retrieve the
    > > file i want. the only problem i have is, i do not want my
    > > users to be able to browse to other folders. i want them
    > > to be able to just browse at the specific folder only. in
    > > other words, i just want them to be able to view at the
    > > specific folder when the browser button is clicked. i have
    > > tried looking in the properties, but found no way to do
    > > so. is it possible to acheive what i want to do? is it is,
    > > how can i do it? thanx!
    >
    >

    Ryan Gregg 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