473,387 Members | 1,603 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Using the HtmlInputButton

SAL
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,
Nov 1 '06 #1
2 1063
w3c has defined a accept attribute where you can specifiy the mime type, but
IE does not support it.

-- bruce (sqlwork.com)

"SAL" <SA*@discussions.microsoft.comwrote in message
news:00**********************************@microsof t.com...
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,


Nov 1 '06 #2
SAL
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" <SA*@discussions.microsoft.comwrote in message
news:00**********************************@microsof t.com...
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,


Nov 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: sushi | last post by:
Hello, I am developing an asp.net website. I have a web fomr say' webform1.aspx' having two input button html controls. When I click on 'button1' a message appears. Following code is executed o...
1
by: Matt | last post by:
I created a simple ASP.NET using ADO.NET application to connect to SQL Server. However, it produces the following run-time error. I think ASPNET is the ASP.NET machine account created by VS.NET,...
1
by: Asha | last post by:
greetings, i need to upload an .xls file using a secure connection. so i though of using https... can i know how this can be done?
2
by: Richard | last post by:
I have a textbox and an HtmlInputButton control on a Webform for an Intranet app. When the user clicks the button, it is supposed to add today's date to the textbox using JavaScript on the client...
4
by: qualitynice | last post by:
HELP :-)... I'm creating an embedded activex object in an asp.net page using the HtmlGenericControl class. I'm doing this because when I tried to embed it directly in the aspx page, it stopped...
1
by: nes | last post by:
Hi all, For uploading files i am using the HtmlInputFile. Now I want to do 2 things with it. First I want to give the button a specific style and second when a postback happens I don't want the...
0
by: hiriumi | last post by:
I have an conversion issue from ASP .NET 1.1 to 2.0. I used to be able to create a class that inherits from any class under System.Web.UI.HtmlControls and register the namespace in which the...
2
by: Britt | last post by:
Hi, I created a HtmlInputButton in the code-behind of a asp.net application like this: Dim bt As HtmlInputButton bt = New HtmlInputButton bt.ID = "bt1" frm.Controls.Add(bt) But there is no...
0
AnuSumesh
by: AnuSumesh | last post by:
Hi All, I want to call RDP on Page load and it is working fine.My code is in C#. But I am unable to perform following functions 1. when i disconnected from RDP, i want to go back to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.