473,581 Members | 2,607 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2003
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**@discussio ns.microsoft.co m> wrote in message
news:C8******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:C8******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:C8******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:C8******** *************** ***********@mic rosoft.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="YourStyl es">
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**@discussio ns.microsoft.co m> wrote in message
> news:C8******** *************** ***********@mic rosoft.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="YourStyl es">
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**@discussio ns.microsoft.co m> wrote in message
> > news:C8******** *************** ***********@mic rosoft.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
933
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 the default. I would like to apply the same CssClass style to the browse button is this possible and how? Thanks Msuk
1
4375
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: bold; font-size: 16pt; text-transform: uppercase; color: white;
0
1459
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 project lead does not want me to do this with code as he thinks it is too complex. But I cannot find a property in Design View or HTML View that works....
15
4740
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 button will verify the information that has been entered and updates the data base if the data is correct. Update will throw an exception if the data is...
1
2192
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 Webparts in the zone. The PartStyle works. But the CssClass of the style PartMenuPopUpStyle has no effect. If I use the properties of the style (...
2
1161
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 cssclass files but i think i should not pass two css classes ,so what i can do to pass two diff styles in a single cssclass , is it possible,any ideas...
3
2194
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 myCssClass="clear:both; color: #FFFFFF" MyControl.CssClass = myCssClass
2
1354
by: shapper | last post by:
Hello, I created a custom control that inherits CompositeControl: Public Class MySection Inherits CompositeControl ... Protected Overrides Sub CreateChildControls() ... MyBase.CreateChildControls()
15
5257
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 show - text boxes, input boxes, buttons, hyperlinks ie the usual. The data is not obtained directly from a database.
0
7868
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7792
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8149
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7899
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5674
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5364
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3805
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1403
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1138
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.