<?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>Custom Server Controls</title><link>http://forums.asp.net/19.aspx</link><description>All about building ASP.NET server controls. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=12&amp;c=17" 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: Automatically generated Inline style in Validation Controls</title><link>http://forums.asp.net/thread/3270170.aspx</link><pubDate>Thu, 02 Jul 2009 03:05:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3270170</guid><dc:creator>Allen Chen – MSFT</dc:creator><author>Allen Chen – MSFT</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3270170.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=19&amp;PostID=3270170</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;
&lt;p&gt;Could you upload a demo project to &lt;a href="http://skydrive.live.com/"&gt;http://skydrive.live.com/&lt;/a&gt;&amp;nbsp;and post the download link here for me to test?&lt;/p&gt;</description></item><item><title>Re: Automatically generated Inline style in Validation Controls</title><link>http://forums.asp.net/thread/3268314.aspx</link><pubDate>Wed, 01 Jul 2009 08:40:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3268314</guid><dc:creator>pedlin</dc:creator><author>pedlin</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3268314.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=19&amp;PostID=3268314</wfw:commentRss><description>&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;I know about the !important declaration but it doesn’t really answer my
question. I&amp;#39;d like to understand why the inline style is generated differently
on my local machine? Is it the IIS version? Why does this happen?&lt;/p&gt;
&lt;p&gt;I&amp;#39;d like to avoid using the !important declaration (thinking about browser
support etc), and I will not take away the &amp;quot;visibility:hidden&amp;quot; style
(I know I can set the display property of the validation control to dynamic).
The problem is that I don’t want it to generate the inline style automatically.
And I cant figure out why this happens...&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;L&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Automatically generated Inline style in Validation Controls</title><link>http://forums.asp.net/thread/3257556.aspx</link><pubDate>Thu, 25 Jun 2009 11:27:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3257556</guid><dc:creator>rtpHarry</dc:creator><author>rtpHarry</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3257556.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=19&amp;PostID=3257556</wfw:commentRss><description>&lt;p&gt;You could override it by using !important in your css such as&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="css"&gt;.errorValidators
{

      color: #00ff00 !important;

}&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Automatically generated Inline style in Validation Controls</title><link>http://forums.asp.net/thread/3257460.aspx</link><pubDate>Thu, 25 Jun 2009 10:27:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3257460</guid><dc:creator>pedlin</dc:creator><author>pedlin</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3257460.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=19&amp;PostID=3257460</wfw:commentRss><description>&lt;p&gt;I have a problem with my validation controls getting the auto-generated inline style &amp;quot;color&amp;quot; and &amp;quot;visibility&amp;quot;, and thereby ignoring my linked in CSS.&lt;/p&gt;&lt;p&gt; I&amp;#39;ve read about setting the ForeColor=&amp;quot;&amp;quot; and the Display=Dynamic, but my biggest problem is that the controls only get this inline setting in our production environment...not in my local machine.&lt;/p&gt;&lt;p&gt;Our production system uses IIS 6.0 but my local machine uses IIS 7.0. Could this be the issue? And how do I solve it?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;When I look at the html source code it looks like this:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Production&lt;/b&gt;:&lt;/p&gt;&lt;pre id="line127"&gt;&amp;lt;&lt;span&gt;span&lt;/span&gt;&lt;span&gt; id&lt;/span&gt;=&lt;span&gt;&amp;quot;ctl00_BodyContentPlaceHolder_PxPaymentControl_rfvEmail&amp;quot; &lt;/span&gt;&lt;span&gt;class&lt;/span&gt;=&lt;span&gt;&amp;quot;errorValidators&amp;quot; &lt;/span&gt;&lt;span&gt;style&lt;/span&gt;=&lt;span&gt;&amp;quot;&lt;b&gt;color:Red;visibility:hidden;&lt;/b&gt;&amp;quot;&lt;/span&gt;&amp;gt;Required&amp;lt;/&lt;span&gt;span&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Local machine&lt;/b&gt;:&lt;/p&gt;&lt;p&gt;&amp;lt;span
id=&amp;quot;ctl00_BodyContentPlaceHolder_PxPaymentControl_rfvEmail&amp;quot;
class=&amp;quot;errorValidators&amp;quot;&amp;gt;Required&amp;lt;/span&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have no such thing as the &amp;quot;&lt;b&gt;&lt;span&gt;style&lt;/span&gt;=&lt;/b&gt;&lt;span&gt;&lt;b&gt;color:Red;visibility:hidden;&lt;/b&gt;&amp;quot; in my code. Why does this happen, and why does it not happen on my local machine?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Please help me, Im stucked.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Pedlin&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>