{"id":903,"date":"2011-06-21T16:25:25","date_gmt":"2011-06-21T20:25:25","guid":{"rendered":"http:\/\/www.iowawebnet.com\/ein\/?p=903"},"modified":"2011-06-29T14:29:41","modified_gmt":"2011-06-29T18:29:41","slug":"form-validation","status":"publish","type":"post","link":"https:\/\/www.iowawebnet.com\/ein\/2011\/06\/form-validation\/","title":{"rendered":"Form Validation"},"content":{"rendered":"<p><strong>Regular Expression Validator &#8211; Date Validation<\/strong><\/p>\n<blockquote><p><a rel=\"attachment wp-att-904\" href=\"http:\/\/www.iowawebnet.com\/ein\/?attachment_id=904\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-904\" title=\"ScreenShot043\" src=\"http:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/06\/ScreenShot043.gif\" alt=\"\" width=\"268\" height=\"74\" \/><\/a><\/p>\n<p><em><strong>TextBox Control<\/strong><\/em><\/p>\n<p>&lt;asp:TextBox ID=&#8221;REF_PAID_DATETextBox&#8221; runat=&#8221;server&#8221;\u00a0 Text='&lt;%# Bind(&#8220;REF_PAID_DATE&#8221;) %&gt;&#8217; ToolTip=&#8221;Use MM\/DD\/YYYY format&#8221;\u00a0 class=&#8221;myTextBox75&#8243; &gt;&lt;\/asp:TextBox&gt;<\/p>\n<p><strong><em>Regular Expression Validator<\/em><\/strong><\/p>\n<p>&lt;asp:RegularExpressionValidator ID=&#8221;REF_PAID_DATEFormat&#8221; runat=&#8221;server&#8221;<br \/>\nValidationExpression=&#8221;^\\d{1,2}\/\\d{1,2}\/\\d\\d\\d\\d$&#8221;<br \/>\nControlToValidate=&#8221;REF_PAID_DATETextBox&#8221;<br \/>\nValidationGroup=&#8221;Form1&#8243; Text=&#8221; &lt;font color=&#8217;red&#8217;&gt; mm\/dd\/yyyy &lt;\/font&gt;&#8221;<br \/>\nErrorMessage=&#8221;&lt;font color=&#8217;red&#8217;&gt; mm\/dd\/yyyy &lt;\/font&gt;&#8221;&gt;<br \/>\n&lt;\/asp:RegularExpressionValidator&gt;<\/p>\n<p><a rel=\"attachment wp-att-911\" href=\"http:\/\/www.iowawebnet.com\/ein\/?attachment_id=911\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-911\" title=\"ScreenShot044\" src=\"http:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/06\/ScreenShot044.gif\" alt=\"\" width=\"582\" height=\"163\" srcset=\"https:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/06\/ScreenShot044.gif 582w, https:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/06\/ScreenShot044-300x84.gif 300w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/><\/a><\/p>\n<p><strong>Submit Button<\/strong><\/p>\n<p>&lt;asp:Button ID=&#8221;UpdateButton&#8221; runat=&#8221;server&#8221; CausesValidation=&#8221;True&#8221; ValidationGroup=&#8221;Form1&#8243; CommandName=&#8221;Update&#8221; Text=&#8221;Update&#8221; \/&gt;<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Regular Expression Validator &#8211; Date Validation TextBox Control &lt;asp:TextBox ID=&#8221;REF_PAID_DATETextBox&#8221; runat=&#8221;server&#8221;\u00a0 Text='&lt;%# Bind(&#8220;REF_PAID_DATE&#8221;) %&gt;&#8217; ToolTip=&#8221;Use MM\/DD\/YYYY format&#8221;\u00a0 class=&#8221;myTextBox75&#8243; &gt;&lt;\/asp:TextBox&gt; Regular Expression Validator &lt;asp:RegularExpressionValidator ID=&#8221;REF_PAID_DATEFormat&#8221; runat=&#8221;server&#8221; ValidationExpression=&#8221;^\\d{1,2}\/\\d{1,2}\/\\d\\d\\d\\d$&#8221; ControlToValidate=&#8221;REF_PAID_DATETextBox&#8221; ValidationGroup=&#8221;Form1&#8243; Text=&#8221; &lt;font color=&#8217;red&#8217;&gt; mm\/dd\/yyyy &lt;\/font&gt;&#8221; ErrorMessage=&#8221;&lt;font color=&#8217;red&#8217;&gt; mm\/dd\/yyyy &lt;\/font&gt;&#8221;&gt; &lt;\/asp:RegularExpressionValidator&gt; Submit Button &lt;asp:Button ID=&#8221;UpdateButton&#8221; runat=&#8221;server&#8221; CausesValidation=&#8221;True&#8221; ValidationGroup=&#8221;Form1&#8243; CommandName=&#8221;Update&#8221; Text=&#8221;Update&#8221; \/&gt;<\/p>\n","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[27],"class_list":["post-903","post","type-post","status-publish","format-standard","hentry","category-net","tag-form-validation"],"_links":{"self":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/903"}],"collection":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/comments?post=903"}],"version-history":[{"count":27,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/903\/revisions"}],"predecessor-version":[{"id":967,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/903\/revisions\/967"}],"wp:attachment":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/media?parent=903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/categories?post=903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/tags?post=903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}