Using the HtmlInputButton

Discussion in 'ASP .Net' started by =?Utf-8?B?U0FM?=, Nov 1, 2006.

  1. Hello,

    Can someone show me a piece of code or tell me where I can set the property
    in a HTMLInputButton, so it only searches for specific file extensions (i.e.
    ..doc, .xls, etc) when the Windows Choose File dialog box comes up?

    I've searched the internet for documentation on this Control, but what I've
    found does not show how to specify which file types to display.

    I'm using Visual Studio 2003, so the control name under the HTML toolbox is
    called File Field, and the codebehide calls it
    System.Web.UI.HtmlControls.HtmlInputFile.

    Thanks,
    =?Utf-8?B?U0FM?=, Nov 1, 2006
    #1
    1. Advertising

  2. w3c has defined a accept attribute where you can specifiy the mime type, but
    IE does not support it.

    -- bruce (sqlwork.com)

    "SAL" <> wrote in message
    news:...
    > Hello,
    >
    > Can someone show me a piece of code or tell me where I can set the
    > property
    > in a HTMLInputButton, so it only searches for specific file extensions
    > (i.e.
    > .doc, .xls, etc) when the Windows Choose File dialog box comes up?
    >
    > I've searched the internet for documentation on this Control, but what
    > I've
    > found does not show how to specify which file types to display.
    >
    > I'm using Visual Studio 2003, so the control name under the HTML toolbox
    > is
    > called File Field, and the codebehide calls it
    > System.Web.UI.HtmlControls.HtmlInputFile.
    >
    > Thanks,
    >
    >
    bruce barker \(sqlwork.com\), Nov 1, 2006
    #2
    1. Advertising

  3. Well, that's good and bad since I'm using IE.

    Thanks

    "bruce barker (sqlwork.com)" wrote:

    > w3c has defined a accept attribute where you can specifiy the mime type, but
    > IE does not support it.
    >
    > -- bruce (sqlwork.com)
    >
    > "SAL" <> wrote in message
    > news:...
    > > Hello,
    > >
    > > Can someone show me a piece of code or tell me where I can set the
    > > property
    > > in a HTMLInputButton, so it only searches for specific file extensions
    > > (i.e.
    > > .doc, .xls, etc) when the Windows Choose File dialog box comes up?
    > >
    > > I've searched the internet for documentation on this Control, but what
    > > I've
    > > found does not show how to specify which file types to display.
    > >
    > > I'm using Visual Studio 2003, so the control name under the HTML toolbox
    > > is
    > > called File Field, and the codebehide calls it
    > > System.Web.UI.HtmlControls.HtmlInputFile.
    > >
    > > Thanks,
    > >
    > >

    >
    >
    >
    =?Utf-8?B?U0FM?=, Nov 1, 2006
    #3
    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. William F. Robertson, Jr.
    Replies:
    1
    Views:
    970
    Kathy Burke
    Jun 25, 2003
  2. pete
    Replies:
    1
    Views:
    2,935
    Jon Yates
    Aug 29, 2003
  3. Jonas
    Replies:
    0
    Views:
    363
    Jonas
    Oct 21, 2004
  4. Anita C

    Htmlinputbutton

    Anita C, Aug 23, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    115
    Alvin Bruney
    Aug 24, 2003
  5. Jonas

    Remove language attribute from HtmlInputButton

    Jonas, Oct 21, 2004, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    176
    Jonas
    Oct 25, 2004
Loading...

Share This Page