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

CssClass and HTML file field control

All,

I have a ASP.NET/C# webform which contains a Webform button that has a
CssClass applied to give it a special effect. Now the same webform has a
filefield control but the browse button is the default. I would like to
apply the same CssClass style to the browse button is this possible and how?

Thanks
Msuk

Nov 18 '05 #1
6 1988
It sounds like you are using a file field. You use the class attribute with
the name of the CssClass style.

Not sure if all styles will apply to it:

<input class="btnclass" type="file">

"msuk" <ms**@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
All,

I have a ASP.NET/C# webform which contains a Webform button that has a
CssClass applied to give it a special effect. Now the same webform has a
filefield control but the browse button is the default. I would like to
apply the same CssClass style to the browse button is this possible and
how?

Thanks
Msuk


Nov 18 '05 #2
Hi,

The style was applied to the text portion of the file field control but not
the button part. I just want to apply the style to the 'browse' button and
leave the text portion as the default white.

Thanks
Msuk

"Ken Cox [Microsoft MVP]" wrote:
It sounds like you are using a file field. You use the class attribute with
the name of the CssClass style.

Not sure if all styles will apply to it:

<input class="btnclass" type="file">

"msuk" <ms**@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
All,

I have a ASP.NET/C# webform which contains a Webform button that has a
CssClass applied to give it a special effect. Now the same webform has a
filefield control but the browse button is the default. I would like to
apply the same CssClass style to the browse button is this possible and
how?

Thanks
Msuk


Nov 18 '05 #3
Hi Musk,
To add Style to a button check:-
http://www.datawebcontrols.com/faqs/...rButtons.shtml
Hope it helps.
Patrick

"msuk" wrote:
Hi,

The style was applied to the text portion of the file field control but not
the button part. I just want to apply the style to the 'browse' button and
leave the text portion as the default white.

Thanks
Msuk

"Ken Cox [Microsoft MVP]" wrote:
It sounds like you are using a file field. You use the class attribute with
the name of the CssClass style.

Not sure if all styles will apply to it:

<input class="btnclass" type="file">

"msuk" <ms**@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
All,

I have a ASP.NET/C# webform which contains a Webform button that has a
CssClass applied to give it a special effect. Now the same webform has a
filefield control but the browse button is the default. I would like to
apply the same CssClass style to the browse button is this possible and
how?

Thanks
Msuk


Nov 18 '05 #4
Hi,

Thanks for your response, the file field control is a HTML control not a
webcontrol and has no CssClass property. So is it still possible to apply a
CSS to the button on the file field control?

Thanks
Msuk

"Patrick.O.Ige" wrote:
Hi Musk,
To add Style to a button check:-
http://www.datawebcontrols.com/faqs/...rButtons.shtml
Hope it helps.
Patrick

"msuk" wrote:
Hi,

The style was applied to the text portion of the file field control but not
the button part. I just want to apply the style to the 'browse' button and
leave the text portion as the default white.

Thanks
Msuk

"Ken Cox [Microsoft MVP]" wrote:
It sounds like you are using a file field. You use the class attribute with
the name of the CssClass style.

Not sure if all styles will apply to it:

<input class="btnclass" type="file">

"msuk" <ms**@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
> All,
>
> I have a ASP.NET/C# webform which contains a Webform button that has a
> CssClass applied to give it a special effect. Now the same webform has a
> filefield control but the browse button is the default. I would like to
> apply the same CssClass style to the browse button is this possible and
> how?
>
> Thanks
> Msuk
>

Nov 18 '05 #5
Try adding (ur style directly)
<input class="btnclass" type="file" style="YourStyles">
Hope it helps!
Patrick

"msuk" wrote:
Hi,

Thanks for your response, the file field control is a HTML control not a
webcontrol and has no CssClass property. So is it still possible to apply a
CSS to the button on the file field control?

Thanks
Msuk

"Patrick.O.Ige" wrote:
Hi Musk,
To add Style to a button check:-
http://www.datawebcontrols.com/faqs/...rButtons.shtml
Hope it helps.
Patrick

"msuk" wrote:
Hi,

The style was applied to the text portion of the file field control but not
the button part. I just want to apply the style to the 'browse' button and
leave the text portion as the default white.

Thanks
Msuk

"Ken Cox [Microsoft MVP]" wrote:

> It sounds like you are using a file field. You use the class attribute with
> the name of the CssClass style.
>
> Not sure if all styles will apply to it:
>
> <input class="btnclass" type="file">
>
> "msuk" <ms**@discussions.microsoft.com> wrote in message
> news:C8**********************************@microsof t.com...
> > All,
> >
> > I have a ASP.NET/C# webform which contains a Webform button that has a
> > CssClass applied to give it a special effect. Now the same webform has a
> > filefield control but the browse button is the default. I would like to
> > apply the same CssClass style to the browse button is this possible and
> > how?
> >
> > Thanks
> > Msuk
> >
>
>

Nov 18 '05 #6
Hi,

Thanks for your response but it didnt work :-(

Thanks
Msuk

"Patrick.O.Ige" wrote:
Try adding (ur style directly)
<input class="btnclass" type="file" style="YourStyles">
Hope it helps!
Patrick

"msuk" wrote:
Hi,

Thanks for your response, the file field control is a HTML control not a
webcontrol and has no CssClass property. So is it still possible to apply a
CSS to the button on the file field control?

Thanks
Msuk

"Patrick.O.Ige" wrote:
Hi Musk,
To add Style to a button check:-
http://www.datawebcontrols.com/faqs/...rButtons.shtml
Hope it helps.
Patrick

"msuk" wrote:

> Hi,
>
> The style was applied to the text portion of the file field control but not
> the button part. I just want to apply the style to the 'browse' button and
> leave the text portion as the default white.
>
> Thanks
> Msuk
>
> "Ken Cox [Microsoft MVP]" wrote:
>
> > It sounds like you are using a file field. You use the class attribute with
> > the name of the CssClass style.
> >
> > Not sure if all styles will apply to it:
> >
> > <input class="btnclass" type="file">
> >
> > "msuk" <ms**@discussions.microsoft.com> wrote in message
> > news:C8**********************************@microsof t.com...
> > > All,
> > >
> > > I have a ASP.NET/C# webform which contains a Webform button that has a
> > > CssClass applied to give it a special effect. Now the same webform has a
> > > filefield control but the browse button is the default. I would like to
> > > apply the same CssClass style to the browse button is this possible and
> > > how?
> > >
> > > Thanks
> > > Msuk
> > >
> >
> >

Nov 18 '05 #7

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

Similar topics

0
by: msuk | last post by:
All, I have a ASP.NET/C# webform which contains a Webform button that has a CssClass applied to give it a special effect. Now the same webform has a filefield control but the browse button is...
1
by: Mervin Williams | last post by:
I am having a problem setting the CSSClass property of a my Label control. I set CSSClass property, but its not taking the font style settings. Here is my style: ..TabText { font-weight:...
0
by: Steve Kallal | last post by:
I have a DataGrid with an EditCommandColumn column set to a type of PushButton. I want to set set CssClass on these buttons and cannot without using code-behind code on the ItemDataBound event. The...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
1
by: chrisfox | last post by:
Hi, I try to customize the style of my Webparts with a CSS Stylesheet. Therefore I define a CSS File and define some CSS Classes. Now a problem occurs. Some of the classes have no effect on the...
2
by: prasad | last post by:
see iam having a user control and i want a cssclass for that users control ,no prolem in providing that .but the problem is that it requires two diff styles for the same control so i need two...
3
by: shapper | last post by:
Hello, On a class I am defining the CssClass of a control at runtime. However, I would also like to create the CssClass at runtime. Is this possible? Something like: Dim...
2
by: shapper | last post by:
Hello, I created a custom control that inherits CompositeControl: Public Class MySection Inherits CompositeControl ... Protected Overrides Sub CreateChildControls() ......
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
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: 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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.