Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Problems with HTMLInputFile Control

Reply
Thread Tools

Problems with HTMLInputFile Control

 
 
Nayak
Guest
Posts: n/a
 
      05-26-2005
On my web page, I want to let the user be able to browse for a file and
select it. For this i have used HTMLInputFile Control. But here I want to
restrict the type of the files the user can select. The user should be
presented the File open dialog box to pick his file.
How to do that ????

Further more I don't want the Text "Browse..." on the Button instead I want
"...". How to do that ?????


I am using ASP.Net with C# as the code behind


 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      05-26-2005
1) Try
http://msdn.microsoft.com/library/de...ies/accept.asp
but it depends upon the browser

2) A trick would be to hit this button and add your own (that would trigger
the click event of the hidden button). IMO even this kind of scenario could
be made more restrictive later (for safety reasons it's likely the trend is
that this button will awlasy have the same appearence so that users are
supposed to know to this file).

Beyond that you'll have to swith to an ActiveX control, an applet, a .NET
control etc...

Patrice


--

"Nayak" <(E-Mail Removed)> a écrit dans le message de
news:%(E-Mail Removed)...
> On my web page, I want to let the user be able to browse for a file and
> select it. For this i have used HTMLInputFile Control. But here I want to
> restrict the type of the files the user can select. The user should be
> presented the File open dialog box to pick his file.
> How to do that ????
>
> Further more I don't want the Text "Browse..." on the Button instead I

want
> "...". How to do that ?????
>
>
> I am using ASP.Net with C# as the code behind
>
>



 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      06-05-2005
Hi
Do you have a solution to this yet?

TIA

"Nayak" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> On my web page, I want to let the user be able to browse for a file and
> select it. For this i have used HTMLInputFile Control. But here I want to
> restrict the type of the files the user can select. The user should be
> presented the File open dialog box to pick his file.
> How to do that ????
>
> Further more I don't want the Text "Browse..." on the Button instead I

want
> "...". How to do that ?????
>
>
> I am using ASP.Net with C# as the code behind
>
>



 
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
Problems with HTMLInputFile Control Nayak ASP .Net 2 06-05-2005 02:55 PM
HtmlInputFile control is not responsive!! Frank ASP .Net 0 11-21-2003 10:28 PM
Cant set value of HTMLInputFile control Mark ASP .Net 2 11-09-2003 07:37 PM
Problems with HtmlInputFile & Page Inheritance George Durzi ASP .Net 1 08-29-2003 03:40 PM
Re: HELP - HtmlInputFile Server Control bruce barker ASP .Net 0 07-17-2003 04:44 PM



Advertisments