p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 (http://p2p.wrox.com/forumdisplay.php?f=389)
-   -   How to theme the "Browse" button of "FileUpload" control? (http://p2p.wrox.com/showthread.php?t=76582)

varunbwj October 13th, 2009 12:09 PM

How to theme the "Browse" button of "FileUpload" control?
 
Hi...

I m trying to theme the "browse" button of "FileUpload" control...
But only the "Textbox" in the control is getting affected...

All the buttons in my website have "ButtonStyle" as their "CssClass" attribute's value...

I want the same with "browse" button of "FileUpload" control...

Will u plz say me how this can be done?

Thanks in advance...

Imar October 13th, 2009 02:56 PM

Hi there,

It's not easy to do as the browser doesn't support this out of the box. For some ideas to work around that, take a look here:

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

For some of the issues and logic behind them, take a look here:

http://p2p.wrox.com/html-code-clinic...control-5.html

Alternatively, you can look at third party component vendors like Telerik:

http://demos.telerik.com/aspnet-ajax...defaultcs.aspx

Use the Change Skin drop down to see different versions of the upload control.

Cheers,

Imar

varunbwj October 14th, 2009 01:22 AM

Thanks
 
Thanks Imar....

I am reading the articles...

I am feeling that they are highly complicated....

Thanks a lot... I ll try to understand them first....

Thanks a lot Imar....[:)]


All times are GMT -4. The time now is 08:24 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.