﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebInput - Unable to change forecolor  using server side</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-change-forecolor-using-server-side/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Unable to change forecolor  using server side</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-change-forecolor-using-server-side/</link><pubDate>Mon, 19 Apr 2010 22:37:09 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;The fix is still being analyze as the issue is still open. In the meantime, as a workaround you could try invoking a client script event in order to modify the input forecolor on the server side.&lt;/p&gt;&lt;p&gt;Here is the snippet of the client side function, setting the forecolor is done by adding a new css class which has the style you wish to add:&lt;/p&gt;&lt;pre&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;.RedText&lt;br /&gt;{&lt;br /&gt;    color: Red !important;&lt;br /&gt;}&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&amp;lt;script type="text/javascript" language="javascript"&amp;gt;&lt;br /&gt;    function SetColor()&lt;br /&gt;    {&lt;br /&gt;        var input = ISGetObject('WebInput1');&lt;br /&gt;&lt;br /&gt;        input.GetControlElement().className &amp;#43;= " RedText";&lt;br /&gt;    }&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;p&gt;The server side function to invoke the SetColor function:&lt;/p&gt;&lt;pre&gt;Page.ClientScript.RegisterStartupScript(this.GetType(), "SetColor", "&amp;lt;script&amp;gt;SetColor();&amp;lt;/script&amp;gt;");&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Unable to change forecolor  using server side</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-change-forecolor-using-server-side/</link><pubDate>Mon, 19 Apr 2010 11:37:30 GMT</pubDate><dc:creator>lud310</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'lucida sans unicode','sans-serif'"&gt;&lt;span style="font-size: 8pt"&gt;Hi Andi,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'lucida sans unicode','sans-serif'"&gt;&lt;span style="font-size: 8pt"&gt; &lt;/span&gt;&lt;/span&gt;Was this ever fixed? &lt;/p&gt;
&lt;p&gt;I have never got an update from you on this issue.&lt;/p&gt;
&lt;p&gt;Please let me know&lt;/p&gt;
&lt;p&gt;Mark&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Unable to change forecolor  using server side</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-change-forecolor-using-server-side/</link><pubDate>Tue, 26 Jan 2010 22:00:23 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt"&gt;&lt;span style="font-size: 9pt"&gt;Hi Mark,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt"&gt;&lt;span style="font-size: 9pt"&gt;     I am able to replicate the issue and I have forwarded this to our developer team. I will let you know if it is solved and ready on our latest hotfix. Thank you.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt"&gt;&lt;span style="font-size: 9pt"&gt;Best Regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode','sans-serif'; font-size: 10pt"&gt;&lt;span style="font-size: 8pt"&gt;Andi Santoso&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Unable to change forecolor  using server side</title><link>http://www.intersoftsolutions.com/Community/WebInput/Unable-to-change-forecolor-using-server-side/</link><pubDate>Fri, 22 Jan 2010 16:15:57 GMT</pubDate><dc:creator>lud310</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I need to change font color of the webinput using the server side using the following line&lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;p&gt;&lt;strong&gt;txtVisitCustomerBy_A.ForeColor = System.Drawing.&lt;/strong&gt;&lt;strong&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;Color&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;.Red;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;Color&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;.Red;&lt;/span&gt;&lt;/strong&gt;
&lt;p&gt;txtVisitCustomerBy_A is a WebInput control type v 4.0.7200&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;but it does not work. I'm able to change background. Is there a way to do it for forecolor ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;Thank you in advance for any help&amp;nbsp;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>