472,792 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,792 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 1045
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.