|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Problems with HTMLInputFile ControlOn 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 1) Try
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/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 -- Show quoteHide quote"Nayak" <udayvku***@yahoo.com> a écrit dans le message de news:%23UeCl8cYFHA.4024@TK2MSFTNGP10.phx.gbl... > 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 > > Hi
Do you have a solution to this yet? TIA Show quoteHide quote "Nayak" <udayvku***@yahoo.com> wrote in message news:%23UeCl8cYFHA.4024@TK2MSFTNGP10.phx.gbl... > 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 > >
DATASET DATAGRID ITEMINDEX DATASETINDEX
asp.net custom server control not showing when dragged onto web fo How can I get selected Checklistbox Items to Literal in Placeholde FindControl by type? ASP.NET Tree View Control Datagrid Listbox please help Problem using Response.Redirect from a User Control Type.GetType("System.Web.UI....) Web server controls not shown on a web form two grids with validators |
|||||||||||||||||||||||