<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Client Side Web Development</title><link>http://forums.asp.net/130.aspx</link><description>Client-side programming discussions, including CSS, DHTML, JScript/Javascript, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=18&amp;c=16" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Change a css property in code behind</title><link>http://forums.asp.net/thread/2753868.aspx</link><pubDate>Wed, 19 Nov 2008 00:44:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2753868</guid><dc:creator>sappidireddy</dc:creator><author>sappidireddy</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2753868.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2753868</wfw:commentRss><description>&lt;p&gt;create a property&amp;nbsp; for style&amp;nbsp; in the usercontrol and assign style property from your page...&lt;/p&gt;</description></item><item><title>Re: Change a css property in code behind</title><link>http://forums.asp.net/thread/2753851.aspx</link><pubDate>Wed, 19 Nov 2008 00:33:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2753851</guid><dc:creator>BrianOConnell</dc:creator><author>BrianOConnell</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2753851.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2753851</wfw:commentRss><description>&lt;p&gt;Not sure hwo you are styling your gridview. As it&amp;#39;s a table I would normally have something along these lines:-&lt;/p&gt;&lt;p&gt;table {&lt;br /&gt;&amp;nbsp;&amp;nbsp; width:90%&lt;br /&gt;}&lt;br /&gt;table td&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp; font-size:80%;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;etc.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Now if I want my text underlined in one page only then I would put a class value in the body of the page - &amp;lt;body class=&amp;quot;underlinegridtext&amp;quot;&amp;gt; and my style would be:-&lt;/p&gt;&lt;p&gt;body.underlinegridtext table td &amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp; text-decoration:underline;&lt;br /&gt;}&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Change a css property in code behind</title><link>http://forums.asp.net/thread/2753725.aspx</link><pubDate>Tue, 18 Nov 2008 22:34:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2753725</guid><dc:creator>rtpHarry</dc:creator><author>rtpHarry</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2753725.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2753725</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You can create a named skin using asp themes:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ykzx33wh.aspx"&gt;http://msdn.microsoft.com/en-us/library/ykzx33wh.aspx&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt;Or you can set styles programatically by accessing GridView1.Style&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/17ysx206.aspx"&gt;http://msdn.microsoft.com/en-us/library/17ysx206.aspx&lt;/a&gt; &lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;</description></item><item><title>Change a css property in code behind</title><link>http://forums.asp.net/thread/2753491.aspx</link><pubDate>Tue, 18 Nov 2008 19:46:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2753491</guid><dc:creator>rbgnewsletter</dc:creator><author>rbgnewsletter</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2753491.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2753491</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;A user control has a&amp;nbsp;grid view control that takes a style sheet.&amp;nbsp;This user control is placed in many forms. The&amp;nbsp;text in the grid has to become underlined only&amp;nbsp;if the control is placed&amp;nbsp;one particular page. How do i change the text-underline programmatically. Thanks&lt;/p&gt;</description></item></channel></rss>