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 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
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
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
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 >
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 > > > >
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 > > > > > > > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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:...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: shapper |
last post by:
Hello,
I created a custom control that inherits CompositeControl:
Public Class MySection
Inherits CompositeControl
...
Protected Overrides Sub CreateChildControls()
......
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: 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,...
|
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...
|
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...
|
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...
| |