473,385 Members | 1,553 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,385 software developers and data experts.

How to theme Browse button of a FileUpload control?

Theming seems only to affect the text box of a FileUpload control, not
the Browse button. Is there any way to theme the button as well?

Thanks,

ChrisN

Jul 20 '06 #1
3 9587
I managed to accomplish this using FrontPage while working on a
Sharepoint site a while ago. You can use the style attribute and then
set border-color, border-width, etc. I would imagine a css class would
be effective too, although I have not tried that with a FileUpload
control.

e.g.
<asp:FileUpload ID="FileUpload1" runat="server"
style="border-color:#b8b8b8;"/>

Hope this helps.

-Chris Lincoln

ye*******@yahoo.co.uk wrote:
Theming seems only to affect the text box of a FileUpload control, not
the Browse button. Is there any way to theme the button as well?

Thanks,

ChrisN
Jul 20 '06 #2
check out the fileupload control from metabuilders, let's you add
server styles:

http://www.metabuilders.com/Tools/FileUpload.aspx

neil
ye*******@yahoo.co.uk wrote:
Theming seems only to affect the text box of a FileUpload control, not
the Browse button. Is there any way to theme the button as well?

Thanks,

ChrisN
Jul 20 '06 #3
It is not possible to style the actual button on an file upload. I have
seen a hack that uses CSS to place a "fake" style over the top of the
button.. here is a link that explains it better.

http://www.quirksmode.org/dom/inputfile.html


ne**********@gmail.com wrote:
check out the fileupload control from metabuilders, let's you add
server styles:

http://www.metabuilders.com/Tools/FileUpload.aspx

neil
ye*******@yahoo.co.uk wrote:
Theming seems only to affect the text box of a FileUpload control, not
the Browse button. Is there any way to theme the button as well?

Thanks,

ChrisN
Jul 20 '06 #4

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

Similar topics

3
by: UJ | last post by:
How can I add a browse button to my asp.net page? What I need is a button they can press that will then let them select the file to upload to the server. And if anybody has any good code on how...
0
by: dieter grobler | last post by:
Hi there, I wanted to know if there is a way to specify the default location the OpenFileDialog shows when the browse button is pressed on the FileUpload Control. i.e "c:\program files\". I know...
4
by: Dave | last post by:
Is it possible to change the default location for the FileUpload control so that it searches a file from within the web page file structure? Even more specific...limit it to one folder within that...
7
by: nicknack | last post by:
Hello. I would like to give my user an option to find a directory and choose it. Its just like the FileUpload control but the fileupload control choose only files (if you choose a directory and...
0
by: =?Utf-8?B?TGVvbkc=?= | last post by:
I'm trying to upload a file using an asp:FileUpload control and an asp:LinkButton. This works fine, while there is an actual filepath in the fileupload upload control. Even an empty field works....
8
by: gomzi | last post by:
Hi, I would like to know as to how one could replace the normal browse button (file upload control) with an image. Thanks, Gomzi.
2
by: =?Utf-8?B?SmFtZXMgUGFnZQ==?= | last post by:
I'm using an asp.net 2.0 fileUpload control which works fine. What I'd like is that when a user clicks on the browse button the dialog shows thumbnails view instead of the default list view. Is...
3
by: =?Utf-8?B?S3VtYXIuQS5QLlA=?= | last post by:
Can I specify the path in the file upload feature, so that when we click the browse button, it always opens the specified path. It’s kind of urgent. Need help. -- Kumar.A.P.P Software...
3
by: Moshiko | last post by:
Hi guys, I am writing a website and I would like to write a user control (ActiveX? DLL?) that can open the Windows Folder Browse Dialog from the client. I do have a user control (a DLL...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.