Css class for a specific control type in css file

hi,

I have a question (might be wired). 

I am building a web application. I want to know how I can apply a css class to all controls of gridview type in my application same as we do for we do for any html control.

Is it possible? If yes then how?


Sharique udddin Ahmed Farooqui
Web Developer

Please mark it as answer if it resolves the issue.
0
safknw
4/4/2007 1:16:00 PM
asp.net.navigation-controls 13714 articles. 0 followers. Follow

1 Replies
695 Views

Similar Articles

[PageSpeed] 35

You might want to investigate using Theme and Skin for that purpose. 

First, create a css class for your Gridview control.

Create a Skin for your gridview control and set the cssclass attribute to the css class you have created.

http://msdn2.microsoft.com/en-us/library/ykzx33wh(VS.80).aspx


Eric on Web Development
0
himawari
4/4/2007 4:52:17 PM
Reply:

Similar Artilces:

Trouble controlling .net controlls with CSS
 I am trying to control the :hover css property on <asp: Button> controls. Basically the css is working correctly to set the initial look of the button, but nothing is happening when I hover over the button. Here is my code:CSS:.sidebarButton{    width: 168px;     height: 45px;     background-color: #666666;     text-align: left;    font-weight: bold;    font-family: Century Gothic;    font-size: 13pt;    color: White;    border-style: none;  ...

How to maintain css class of server control that has it's css class changed with clientside javascript?
When I change the css class of a server-side control, it fails to maintain that class through a postback.  Has anyone done something like this before? I basically need to hide/show items on a page and maintain those visibility settings through postbacks.Here's some code that I've been working with:aspx: <asp:UpdatePanel ID="up1" runat="server"> <ContentTemplate>     <asp:Table ID="t1" runat="server">   <asp:TableRow ID="tr1" runat="server" > <asp:TableCell ID="tg1&...

Adding a CSS Class AND CSS Rule to a web server control
Hi, I do not know how to add a CSS class together with a CSS rule to the new server side controls. In a normal client side control I add it  -     <input name="txtPassword" type="password" class="Input" id="SpacerBottom" /> In the server side controls the ID keyword is used now - <asp:TextBox  ID="txtPassword" runat="server" Style="z-index: 107" CssClass="Input" ></asp:TextBox> I have tried to use the name="txtPassword", but it ignores this. I would really appreciate some help on this. Many thanks, Polly Anna &nbs...

Reagrding using FILTER in (MenuExample.css) CSS adapter classes for Menu control
Hello everyone, Whenever I use filter: in any of the CSS calss for the MENU control using CSS adapters, it only renders the first level of the menu, all subsequent levels are not even displayed. I want to use filter for some transparency effect, but using it is not rendering any child menu's. Following is a example - .PrettyMenu .AspNet-Menu-Vertical { position:absolute; top: 87px; left: 0px; width:200px; z-index: 300; filter:alpha(Opacity=50); } Now it only shows first level and rest of the menus are not displayed, if I remove filter, it works fine but without transparency. Rep...

regarding assigning the css class for a menu control in c#.net
I have a menu control in my page on page load i have to check whether the page title is equal to any of the items present in the menu control if it is present i have to assign different css class for the menu control how can i achieve this can any one help me Assign the classes like this: <asp:Menu ID="Menu1" runat="server" > <StaticSelectedStyle CssClass="MyClass" /> <DynamicSelectedStyle CssClass="MyClass" /> <Items> Select a menu item like this: foreach (MenuItem MI in Menu1.Items) ...

css for rating control in control toolkit
 Hi All.Does anyone know where i can get the css and images for the rating control in the control toolkit?  Found them. They were in the toolkit...

Control CreateUser Wizard control with CSS
Hi there,can anybody tell me if its possible to align a CreateUser Wizard control using CSS? I presume i attached a class name to the CSS property of the control.But then what am i actually aligning? a Div? or similar... I believe there is some issues with centering DIVS on IE - can anyone confirm?If anybody can confirm what i should be doing to align the CreateUser Wizard control using CSS I would be really greatful...Currently I have3 divs - left, center, and right...the center div is where i have placed my Creatuserwizard but it flushed to the left...Not only that I have sent some CSS...

Problem: SolPartMenu Skin CSS classes to control specific parts of menu not clear
I may be dense or something, but I am missing something when it comes to understanding the exact css attributes to set in what classes to control specific parts of the solpartmenu. Can someone look at a site I am working on and tell me exactly what css class to place the exact attribute to turn off the items I want to turn off? I would really appreciate any help. Does anyone know of a graphical representation and help system that points to the parts of a solpartmenu and associates the classes that will be applied to the menu? Is anyone interested in creating such a tool? The menu doc has ...

calendar control css class
Normal 0 false false false MicrosoftInternetExplorer4 st1\:*{behavior:url(#ieooui) } /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400;...

Web Control and CSS Class
Hello,I am creating a custom web control (Class Library - DLL) that uses CSS Classes.I want the user to be able to change those CSS classes if necessary.Should I include the CSS Classes inside my .dll library? Is that even possible?Or should I just copy the CSS file to my Web Site Themes folder?Thanks,Miguel   You could expose the CssClass property of your controls.Joseph GuadagnoMy Website: http://www.josephguadagno.netMy Blog - http://weblogs.asp.net/jguadagno/ If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.That way f...

Mix CSS / non-CSS controls in same web app?
Hi there, I would like to have a mix of CSS and non-CSS (traditional) controls in my web app: i.e. CSS controls on the front-end (public) interface, where I want to output conformant CSS-based markup, and normal controls (original ASP.NET HTML output) in the back-end (administration) interface, where I don't really mind about the markup (and building pages using standard controls is still simpler and faster than using the CSS Adapters)... How can I achieve that? Is there a way to limit the scope of the .browser settings or something like that? Thanks! Thomas. just remove the unwanted c...

child control ids within a user control and CSS
I am building a user control that will produce a top level navigation. The layout is controlled using a CSS stylesheet and DIV ids. For example: <div id="topRule"><img src="images/rule.gif"></div> When the user control is added to an aspx page, the resulting code looks like <div id="nav_topRule"><img src="images/rule.gif"></div> where "nav" is the ID given to the user control within the aspx. I can update the CSS so the #topRule becomes #nav_topRule, but there are two problems with this so...

Is CSS Control Adapters compatible with WebPart and WebPartZone controls?
Both WebPart and WebPartZone ultimately derive from WebControl, so it seems like this would work, but before I got into it deeply, was curious if anyone had tried it and if there are any issues? I don't think there is an esay way to make it works. This was a reply from Scott Guthrie: Unfortunately I don't think there is a super easy way to override WebParts -- since some of the layout does assume tables (since the CSS to-do this positioning with divs isn't super easy).  We are going to look at whether it is possible to build another control adapter for webparts in the f...

Controlling the width and height of Panel control using CSS
Hi, I am not able to specify the width and height of the Panel control from my stylesheet. I have to explicitly specify it in the panel control markup itself. Other CSS properties like background color etc do work. Please guide. Regards & thanks Kapil    This seems to work for me:<asp:Panel ID="Panel1" runat="server" style="border: 1px solid Red; width: 500px; height: 250px;">content</asp:Panel>And so does this:.panel { border: 1px solid Red; width: 500px; height: 250px;}<asp:Panel ID="Panel1" runat="server" CssClass="panel">content</asp:Panel>...

Web resources about - Css class for a specific control type in css file - asp.net.navigation-controls

Specific - Wikipedia, the free encyclopedia
Specific Pathogen Free , of a laboratory animal guaranteed free of particular (i.e., specific and named) pathogens "Specific" generally means ...

Specific activity - Wikipedia, the free encyclopedia
... SI quantity related to the phenomenon of natural and artificial radioactivity. The SI unit of "activity" is becquerel, Bq, while that of "specific ...

Facebook Displays Percent Of Users Who Like Pages Who Have Seen Specific Posts
Facebook continues to quietly add and tweak features behind-the-scenes, without fanfare or announcements, and the latest example is the addition ...

Facebook Tests Interest-Specific News Feeds on Mobile - Digital - Advertising Age
... have sections, and now so does Facebook's news feed, at least for some people. The social network has been experimenting with category-specific ...

Mad Catz launching Samsung-specific game controllers
... their game controllers to Samsung Mobile. Mad Catz is revealing at CES 2016 that they are developing controllers and game pads that are specifically ...

Navy Football to Feature Position-Specific 'Navy Fleet' Helmets for Army Game - Bleacher Report
For the first time in NCAA history, a college football team will have its players wearing different helmets during the game based on the position ...

The FTC has finally given some specific guidance on what native ads are meant to look like
... on a journalism website. The FTC has been exploring how to effectively police native advertising since 2013. On Tuesday it released specific ...

Nashua Public Schools Closed Following ‘Specific’ Threat Of Violence
All public schools in Nashua, NH, will be closed Monday after school officials received a detailed threat of violence involving the city's two ...

Obama: No specific, credible threat indicating plot against U.S.
After a meeting with his national security team, the president tells Americans to "go about their usual Thanksgiving weekend activities"

Obama: No 'specific and credible' holiday threat
CNN Obama: No 'specific and credible' holiday threat CNN Washington (CNN) President Barack Obama insisted Thursday that Americans should feel ...

Resources last updated: 1/14/2016 3:36:52 AM