<?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>ASP.NET AJAX Discussion and Suggestions</title><link>http://forums.asp.net/1007.aspx</link><description>This forum is the place for ASP.NET AJAX 'getting started' questions, general questions that don't fit in one of the other forums about AJAX </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: [BUG/REQUEST]RequiredFieldValidator should trim the string before checking the length</title><link>http://forums.asp.net/thread/1250457.aspx</link><pubDate>Thu, 06 Apr 2006 22:28:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1250457</guid><dc:creator>Luis Abreu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1250457.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1250457</wfw:commentRss><description>&lt;p&gt;hello.&lt;/p&gt;
&lt;p&gt;if i'm not mistaken, that means that only textbox controls can be validated. am i wrong? and if a value on a drop down must be x when y is entered on a textbox? can i apply a validator to the drop down (ie, atlas select control). i'm almos positive that you can't apply a validator to a drop down...though o hope i'm wrong.&lt;/p&gt;
&lt;p&gt;btw, you should note that, in my opinion, this is not one of those things that really MUST be included in atlas (for instance, i guess that in my case, i'll still be using the aso.net validators - provided that those issues i've mentioned in previous posts have been taken care of :) )...&lt;/p&gt;</description></item><item><title>Re: [BUG/REQUEST]RequiredFieldValidator should trim the string before checking the length</title><link>http://forums.asp.net/thread/1250448.aspx</link><pubDate>Thu, 06 Apr 2006 22:20:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1250448</guid><dc:creator>Eilon</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1250448.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1250448</wfw:commentRss><description>&lt;p&gt;Hi Luis,&lt;/p&gt;
&lt;p&gt;Regarding the first part, we will try to address that as part of the bug I opened.&lt;/p&gt;
&lt;p&gt;Regarding the second part, the validators should work on any control that is an InputControl. Do you have specific controls in mind that we don't currently validate? You should also be able to implement your own controls that support validation, if you have some kind of custom UI that isn't directly represented by an HTML element.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Eilon&lt;/p&gt;</description></item><item><title>Re: [BUG/REQUEST]RequiredFieldValidator should trim the string before checking the length</title><link>http://forums.asp.net/thread/1250442.aspx</link><pubDate>Thu, 06 Apr 2006 22:12:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1250442</guid><dc:creator>Luis Abreu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1250442.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1250442</wfw:commentRss><description>&lt;p&gt;Hello Eilon.&lt;/p&gt;
&lt;p&gt;well, it's that currently, this control doesn't "feel" good. for instance, to get it to work properly you have to: &lt;/p&gt;
&lt;p&gt;1. write something&lt;br /&gt;2. select another control (remove focus from the validated textbox)&lt;br /&gt;3. go back and delete the content&lt;br /&gt;4. remove focus from the control&lt;/p&gt;
&lt;p&gt;this will make the validator do its work...however, if i just don't write anything in the textbox, then the validator won't do its validation (because there's no propertychanged event) and the info will be considered valid. &lt;/p&gt;
&lt;p&gt;btw, one more question: any chance of expanding the validators so that they can be applied to other form controls?&lt;/p&gt;</description></item><item><title>Re: [BUG/REQUEST]RequiredFieldValidator should trim the string before checking the length</title><link>http://forums.asp.net/thread/1250436.aspx</link><pubDate>Thu, 06 Apr 2006 22:04:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1250436</guid><dc:creator>Eilon</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1250436.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1250436</wfw:commentRss><description>&lt;p&gt;Hi Luis, I have opened a suggestion bug to track this. We will investigate it for a future CTP.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Eilon&lt;/p&gt;</description></item><item><title>[BUG/REQUEST]RequiredFieldValidator should trim the string before checking the length</title><link>http://forums.asp.net/thread/1245061.aspx</link><pubDate>Sat, 01 Apr 2006 16:24:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1245061</guid><dc:creator>Luis Abreu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1245061.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1245061</wfw:commentRss><description>&lt;p&gt;hello guys.&lt;/p&gt;
&lt;p&gt;today i'm playing with the validator controls. looking at the source code of the requiredfieldvalidator, i see this:&lt;/p&gt;&lt;font color=#0000ff size=1&gt;
&lt;p&gt;&lt;font size=2&gt;this&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size=2&gt;.validate = &lt;font color=#0000ff&gt;function&lt;/font&gt;(value) {&lt;br /&gt;&lt;font color=#0000ff&gt;if&lt;/font&gt; (!value) {&lt;br /&gt;&lt;font color=#0000ff&gt;&amp;nbsp;&amp;nbsp; return&lt;/font&gt; &lt;font color=#0000ff&gt;false&lt;/font&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;font color=#0000ff&gt;if&lt;/font&gt; (String.isInstanceOfType(value)) {&lt;br /&gt;&lt;font color=#0000ff&gt;if&lt;/font&gt; (value.length == 0) {&lt;br /&gt;&lt;font color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&lt;/font&gt; &lt;font color=#0000ff&gt;false&lt;/font&gt;;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;font color=#0000ff&gt;return&lt;/font&gt; &lt;font color=#0000ff&gt;true&lt;/font&gt;;&lt;br /&gt;}&lt;/font&gt;
&lt;p&gt;shouldn't the value be trimmed before checking the length? if we don't do that, an empty space is considered to be ok. btw. one more question: shouldn't validation be fired when the textbox looses its&amp;nbsp;focus? currently this doesn't happen and due to that the&amp;nbsp;requiredfieldvalidator doesn0t work properly!&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;</description></item></channel></rss>