<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>Validator Toolkit for ASP.NET MVC</title><link>http://www.codeplex.com/MvcValidatorToolkit/Project/ProjectRss.aspx</link><description>The Validator Toolkit provides a set of validators for the new ASP.NET MVC framework to validate HTML forms on the client and server-side using validation sets. By defining a validation set, e.g. a...</description><item><title>Created Issue: Multiple ValidateScriptMethod on same element fails</title><link>http://www.codeplex.com/MvcValidatorToolkit/WorkItem/View.aspx?WorkItemId=2677</link><description>To fix, remove the duplicate type checking in ValidationSet, which seems redundant.&lt;br /&gt;</description><author>leppie</author><pubDate>Mon, 07 Jul 2008 08:10:52 GMT</pubDate><guid isPermaLink="false">Created Issue: Multiple ValidateScriptMethod on same element fails 20080707081052A</guid></item><item><title>Commented Issue: Regular Expression Validator</title><link>http://www.codeplex.com/MvcValidatorToolkit/WorkItem/View.aspx?WorkItemId=1359</link><description>Attached is a regular expression validator &amp;#40;named ValidatPattern&amp;#41; that validates a control against any regular expression.  You have the option of passing 2 different regular expressions &amp;#40;one for client side and one for server side&amp;#41; to account for any variations in javascript and .NET regular expression parsing.  &lt;br /&gt;&lt;br /&gt;I am new to using this library, so I would appreciate if someone could take a look at this and make sure it implements the pattern correctly.  I hope this helps add to the use and success of this project.&lt;br /&gt;Comments: ** Comment from web user: leppie ** &lt;p&gt;Seems the CodePlex people was absent with the usability seminar. The .cs file is the last one, and working for multiple patterns on a page.&lt;/p&gt;</description><author>leppie</author><pubDate>Fri, 04 Jul 2008 07:49:08 GMT</pubDate><guid isPermaLink="false">Commented Issue: Regular Expression Validator 20080704074908A</guid></item><item><title>Commented Issue: Regular Expression Validator</title><link>http://www.codeplex.com/MvcValidatorToolkit/WorkItem/View.aspx?WorkItemId=1359</link><description>Attached is a regular expression validator &amp;#40;named ValidatPattern&amp;#41; that validates a control against any regular expression.  You have the option of passing 2 different regular expressions &amp;#40;one for client side and one for server side&amp;#41; to account for any variations in javascript and .NET regular expression parsing.  &lt;br /&gt;&lt;br /&gt;I am new to using this library, so I would appreciate if someone could take a look at this and make sure it implements the pattern correctly.  I hope this helps add to the use and success of this project.&lt;br /&gt;Comments: ** Comment from web user: leppie ** &lt;p&gt;Here is a fixed version. the Pattern vars are now suffixed with a number.&lt;/p&gt;</description><author>leppie</author><pubDate>Fri, 04 Jul 2008 07:47:59 GMT</pubDate><guid isPermaLink="false">Commented Issue: Regular Expression Validator 20080704074759A</guid></item><item><title>Commented Issue: Regular Expression Validator</title><link>http://www.codeplex.com/MvcValidatorToolkit/WorkItem/View.aspx?WorkItemId=1359</link><description>Attached is a regular expression validator &amp;#40;named ValidatPattern&amp;#41; that validates a control against any regular expression.  You have the option of passing 2 different regular expressions &amp;#40;one for client side and one for server side&amp;#41; to account for any variations in javascript and .NET regular expression parsing.  &lt;br /&gt;&lt;br /&gt;I am new to using this library, so I would appreciate if someone could take a look at this and make sure it implements the pattern correctly.  I hope this helps add to the use and success of this project.&lt;br /&gt;Comments: ** Comment from web user: leppie ** &lt;p&gt;This is broken, it only accept 1 ValidatePattern per page.&lt;/p&gt;</description><author>leppie</author><pubDate>Fri, 04 Jul 2008 07:35:59 GMT</pubDate><guid isPermaLink="false">Commented Issue: Regular Expression Validator 20080704073559A</guid></item><item><title>New Post: Asp.Net MVC Preview 3 Support</title><link>http://www.codeplex.com/MvcValidatorToolkit/Thread/View.aspx?ThreadId=29720</link><description>&lt;div style="line-height: normal;"&gt;The tookkit works now with ASP.NET MVC PR3!&lt;br&gt;
&lt;/div&gt;</description><author>jbaurle</author><pubDate>Fri, 20 Jun 2008 10:22:56 GMT</pubDate><guid isPermaLink="false">New Post: Asp.Net MVC Preview 3 Support 20080620102256A</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/MvcValidatorToolkit/Wiki/View.aspx?title=Home&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Toolkit works with ASP.NET Preview Release 3&lt;/b&gt;&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt; &lt;br /&gt;The Validator Toolkit provides a set of validators for the new ASP.NET MVC framework to validate HTML forms on the client and server-side using validation sets. By defining a validation set, e.g. a LoginValidationSet class, the toolkit will generate code, in conjunction with the JavaScript library jQuery, to validate on the client-side and will use the same set of rules to validate on the server-side.
&lt;br /&gt; &lt;br /&gt;Basically, you will create a validation set class which derives from ValidationSet base class:&lt;br /&gt; &lt;br /&gt;&lt;pre&gt;
public class LoginValidationSet : ValidationSet
{
	string Username = &amp;quot;&amp;quot;;
	string Password = &amp;quot;&amp;quot;;
 
	protected override ValidatorCollection GetValidators()
	{
		return new ValidatorCollection
		(
			new ValidateElement(&amp;quot;username&amp;quot;) { Required = true, MinLength = 5, MaxLength = 10 },
			new ValidateElement(&amp;quot;password&amp;quot;) { Required = true, MinLength = 3, MaxLength = 10 }
		);
	}
 
	protected override void OnValidate()
	{
		if(Username == &amp;quot;Bill&amp;quot; &amp;amp;&amp;amp; Password == &amp;quot;Jobs&amp;quot;)
			throw new ValidatorException(&amp;quot;username&amp;quot;, &amp;quot;The username/password combination is not valid&amp;quot;);
	}
}
&lt;/pre&gt; &lt;br /&gt;Then, you will attach it to the view and the HTML form processing action using the ValidationSetAttribute:&lt;br /&gt; &lt;br /&gt;&lt;pre&gt;
public void Login()
{
	RenderView(&amp;quot;Login&amp;quot;);
}
 
[ValidationSet(typeof(LoginValidationSet))]
public void Authenticate()
{
	if(this.ValidateForm())
		RenderView(&amp;quot;Ok&amp;quot;);
	else
		RenderView(&amp;quot;Login&amp;quot;);
}
 
...
 
[ValidationSet(typeof(LoginValidationSet))]
public partial class LoginView : ViewPage
{
}
&lt;/pre&gt; &lt;br /&gt;Then, you add the following script and methods to your view:&lt;br /&gt; &lt;br /&gt;&lt;pre&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
	$(function(){
		updateSettingsForLoginValidationSet($('#loginForm').validate({rules:{
&lt;/pre&gt;));&lt;br /&gt;	});&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt; &lt;br /&gt;...&lt;br /&gt; &lt;br /&gt;&amp;lt;form id=&amp;quot;loginForm&amp;quot; action=&amp;quot;/Authenticate&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt; &lt;br /&gt;...&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt; &lt;br /&gt;&amp;lt;% this.RenderValidationSetScripts(); %&amp;gt;&lt;br /&gt;}} &lt;br /&gt;This all to validate the login HTML form on the client and server-side. &lt;br /&gt; &lt;br /&gt;More documentation take a look at the article on CodeProject.com: &lt;a href="http://www.codeproject.com/KB/aspnet/MvcValidatorToolkit.aspx" class="externalLink"&gt;http://www.codeproject.com/KB/aspnet/MvcValidatorToolkit.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;Please see the source code with the included sample site for more examples. You will also find a multi-form example showing how to use the toolkit in conjunction with multiple forms on one HTML page (view).&lt;br /&gt;
&lt;/div&gt;</description><author>jbaurle</author><pubDate>Fri, 20 Jun 2008 08:56:44 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20080620085644A</guid></item><item><title>RELEASED: Validator Toolkit 1.0 (20080620) (Jun 20, 2008)</title><link>http://www.codeplex.com/MvcValidatorToolkit/Release/ProjectReleases.aspx?ReleaseId=14571</link><description>&lt;div&gt;
 &lt;br&gt;Most important changes to release include:&lt;br&gt; &lt;br&gt;    * Changed toolkit to work with ASP.NET MVC Preview Release 3&lt;br&gt;
&lt;/div&gt;</description><author></author><pubDate>Fri, 20 Jun 2008 08:54:21 GMT</pubDate><guid isPermaLink="false">RELEASED: Validator Toolkit 1.0 (20080620) (Jun 20, 2008) 20080620085421A</guid></item><item><title>UPDATED RELEASE: Validator Toolkit 1.0 (20080620) (Jun 20, 2008)</title><link>http://www.codeplex.com/MvcValidatorToolkit/Release/ProjectReleases.aspx?ReleaseId=14571</link><description>&lt;div&gt;
 &lt;br&gt;Most important changes to release include:&lt;br&gt; &lt;br&gt;    * Changed toolkit to work with ASP.NET MVC Preview Release 3&lt;br&gt;
&lt;/div&gt;</description><author></author><pubDate>Fri, 20 Jun 2008 08:54:21 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: Validator Toolkit 1.0 (20080620) (Jun 20, 2008) 20080620085421A</guid></item><item><title>CREATED RELEASE: Validator Toolkit 1.0 (20080620) (Jun 20, 2008)</title><link>http://www.codeplex.com/MvcValidatorToolkit/Release/ProjectReleases.aspx?ReleaseId=14571</link><description>&lt;div&gt;
Most important changes to release include:&lt;br&gt; &lt;br&gt;    * Changed toolkit to work with ASP.NET MVC Preview Release 3&lt;br&gt;
&lt;/div&gt;</description><author></author><pubDate>Fri, 20 Jun 2008 08:53:38 GMT</pubDate><guid isPermaLink="false">CREATED RELEASE: Validator Toolkit 1.0 (20080620) (Jun 20, 2008) 20080620085338A</guid></item><item><title>Source code checked in, #13536</title><link>http://www.codeplex.com/MvcValidatorToolkit/SourceControl/ListDownloadableCommits.aspx</link><description>Updated toolkit to work with ASP.NET MVC preview release 3.</description><author>jbaurle</author><pubDate>Fri, 20 Jun 2008 08:43:07 GMT</pubDate><guid isPermaLink="false">Source code checked in, #13536 20080620084307A</guid></item><item><title>Source code checked in, #13535</title><link>http://www.codeplex.com/MvcValidatorToolkit/SourceControl/ListDownloadableCommits.aspx</link><description>Updated toolkit to work with ASP.NET MVC preview release 3.</description><author>jbaurle</author><pubDate>Fri, 20 Jun 2008 08:31:02 GMT</pubDate><guid isPermaLink="false">Source code checked in, #13535 20080620083102A</guid></item><item><title>Source code checked in, #13534</title><link>http://www.codeplex.com/MvcValidatorToolkit/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>jbaurle</author><pubDate>Fri, 20 Jun 2008 08:29:50 GMT</pubDate><guid isPermaLink="false">Source code checked in, #13534 20080620082950A</guid></item><item><title>Source code checked in, #13533</title><link>http://www.codeplex.com/MvcValidatorToolkit/SourceControl/ListDownloadableCommits.aspx</link><description>Updated toolkit to work with ASP.NET MVC preview release 3.</description><author>jbaurle</author><pubDate>Fri, 20 Jun 2008 08:28:41 GMT</pubDate><guid isPermaLink="false">Source code checked in, #13533 20080620082841A</guid></item><item><title>Source code checked in, #13532</title><link>http://www.codeplex.com/MvcValidatorToolkit/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>jbaurle</author><pubDate>Fri, 20 Jun 2008 08:27:04 GMT</pubDate><guid isPermaLink="false">Source code checked in, #13532 20080620082704A</guid></item><item><title>New Post: Asp.Net MVC Preview 3 Support</title><link>http://www.codeplex.com/MvcValidatorToolkit/Thread/View.aspx?ThreadId=29720</link><description>&lt;div style="line-height: normal;"&gt;Hi!&lt;br&gt;
&lt;br&gt;
Just tried to build with Asp.Net MVC Preview 3 (Needed to change references and RenderView() to View()).&lt;br&gt;
But launching web-project failed - nothing happens. Even no exceptions occurred.&lt;br&gt;
Seems some change in the source required to use the latest Asp.Net MVC Preview.&lt;br&gt;
&lt;br&gt;
Also I might have made some mistakes while migrating the project.&lt;br&gt;
&lt;br&gt;
Please let me know if the migration is possible without modifications in the Toolkit.&lt;br&gt;
Or when&amp;nbsp;the new version is&amp;nbsp;released :) - want to see the Toolkit in action :)&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Roman
&lt;/div&gt;</description><author>romb</author><pubDate>Mon, 16 Jun 2008 13:58:21 GMT</pubDate><guid isPermaLink="false">New Post: Asp.Net MVC Preview 3 Support 20080616015821P</guid></item><item><title>COMMENTED ISSUE: Crash on RenderClientScript when ViewData is assigned</title><link>http://www.codeplex.com/MvcValidatorToolkit/WorkItem/View.aspx?WorkItemId=859</link><description>I&amp;#39;m getting a crash on any page that has a ViewData object example assigned to it  i.e.&amp;#58;&lt;br /&gt;public partial class SampleView &amp;#58; ViewPage &amp;#60;SampleViewData&amp;#62;&lt;br /&gt;Comments: ** Comment from web user: JokerLash ** &lt;p&gt;I have the same problem. When i tell my View that the ViewData object is of type X using&amp;#58; public partial class SampleView &amp;#58; ViewPage &amp;#60;SampleViewData&amp;#62; &lt;/p&gt;&lt;p&gt;when i call the RenderView&amp;#40;&amp;#34;myView&amp;#34;, new SampleViewData&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;i still get an error stating&amp;#58; &amp;#39;MvcValidatorToolkit.SampleSite.Controllers.SampleControllerViewData&amp;#39; does not contain a property with the name &amp;#39;SampleXValidationSet&amp;#39;.&lt;/p&gt;&lt;p&gt;To solve this problem i added a property to my SampleViewData class called SampleValidationSet of type SampleValidationSet&lt;br /&gt;eg&amp;#58; &lt;br /&gt;public class SampleViewData&lt;br /&gt;    &amp;#123;&lt;br /&gt;        public string Test &amp;#123; get&amp;#59; set&amp;#59; &amp;#125;&lt;br /&gt;        public SampleValidationSet SampleValidationSet &amp;#123; get&amp;#59; set&amp;#59; &amp;#125;&lt;br /&gt;    &amp;#125;&lt;/p&gt;&lt;p&gt;But i don&amp;#39;t think this is an ideal solution, can anyone supply a better one&amp;#63;&lt;/p&gt;</description><author>JokerLash</author><pubDate>Wed, 16 Apr 2008 10:00:02 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: Crash on RenderClientScript when ViewData is assigned 20080416100002A</guid></item><item><title>COMMENTED ISSUE: Problems with '.' in control name and id</title><link>http://www.codeplex.com/MvcValidatorToolkit/WorkItem/View.aspx?WorkItemId=1737</link><description>we&amp;#39;re using MVC preview 2 with the bindinghelper, which uses the syntax &amp;#60;objecttype&amp;#62;.&amp;#60;attributename&amp;#62; as the id and name for the UI controls.&lt;br /&gt;this causes a problem because the javascripts created with validator toolkit look like &lt;br /&gt;      v.settings.rules.&amp;#60;objecttype&amp;#62;.&amp;#60;attributename&amp;#62; &lt;br /&gt;      instead of v.settings.rules.controlname&lt;br /&gt;which is obviously not valid.&lt;br /&gt;I was forced to do a dirty hack, replacing &amp;#39;.&amp;#39; with &amp;#39;&amp;#36;&amp;#39; in key names in the ValidationSet.CreateClientScript for rules and messages, which furthermore forced me to update jQuery.Validation.js &amp;#58;-&amp;#40;&lt;br /&gt;&lt;br /&gt;do you have any other idea&amp;#63;&lt;br /&gt;&lt;br /&gt;thanks in advance,&lt;br /&gt;stefan&lt;br /&gt;Comments: ** Comment from web user: JokerLash ** &lt;p&gt;I also walked into this problem, on CodeProject someone else posted a different solution to this problem.&lt;/p&gt;&lt;p&gt;http&amp;#58;&amp;#47;&amp;#47;www.codeproject.com&amp;#47;KB&amp;#47;aspnet&amp;#47;MvcValidatorToolkit.aspx&amp;#63;msg&amp;#61;2494716&amp;#35;xx2494716xx&lt;/p&gt;</description><author>JokerLash</author><pubDate>Wed, 16 Apr 2008 08:39:14 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: Problems with '.' in control name and id 20080416083914A</guid></item><item><title>Patch Uploaded</title><link>http://www.codeplex.com/MvcValidatorToolkit/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='/UserAccount/UserProfile.aspx?UserName=girish82'&gt;girish82&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;My previous submission was declined because of invalid patch format. Fixed it. This patch added Regular Expression validators to the MvcValidatorToolkit&lt;/p&gt;</description><author>girish82</author><pubDate>Sat, 12 Apr 2008 21:23:59 GMT</pubDate><guid isPermaLink="false">Patch Uploaded 20080412092359P</guid></item><item><title>NEW POST: How to compare two fileds?</title><link>http://www.codeplex.com/MvcValidatorToolkit/Thread/View.aspx?ThreadId=25667</link><description>&lt;div class="wikidoc"&gt;
I want to compare two fields ,for example. the first field is startDate,and the second field is endDate,my logic is startDate &amp;lt; endDate,but I don't know how to compare.Can you give me a answer?&lt;br /&gt;
&lt;/div&gt;</description><author>nbear</author><pubDate>Thu, 10 Apr 2008 02:15:37 GMT</pubDate><guid isPermaLink="false">NEW POST: How to compare two fileds? 20080410021537A</guid></item><item><title>COMMENTED ISSUE: Problems with '.' in control name and id</title><link>http://www.codeplex.com/MvcValidatorToolkit/WorkItem/View.aspx?WorkItemId=1737</link><description>we&amp;#39;re using MVC preview 2 with the bindinghelper, which uses the syntax &amp;#60;objecttype&amp;#62;.&amp;#60;attributename&amp;#62; as the id and name for the UI controls.&lt;br /&gt;this causes a problem because the javascripts created with validator toolkit look like &lt;br /&gt;      v.settings.rules.&amp;#60;objecttype&amp;#62;.&amp;#60;attributename&amp;#62; &lt;br /&gt;      instead of v.settings.rules.controlname&lt;br /&gt;which is obviously not valid.&lt;br /&gt;I was forced to do a dirty hack, replacing &amp;#39;.&amp;#39; with &amp;#39;&amp;#36;&amp;#39; in key names in the ValidationSet.CreateClientScript for rules and messages, which furthermore forced me to update jQuery.Validation.js &amp;#58;-&amp;#40;&lt;br /&gt;&lt;br /&gt;do you have any other idea&amp;#63;&lt;br /&gt;&lt;br /&gt;thanks in advance,&lt;br /&gt;stefan&lt;br /&gt;Comments: ** Comment from web user: smadep ** &lt;p&gt;well, the hack works ... but I have a bad feeling about this&amp;#33; &amp;#59;-&amp;#41;&lt;/p&gt;</description><author>smadep</author><pubDate>Wed, 09 Apr 2008 17:32:28 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: Problems with '.' in control name and id 20080409053228P</guid></item></channel></rss>