RequiredFieldValidator asp:TextBox Id=”UserName” runat=”server” /> /asp:TextBox>* asp:RequiredFieldValidator id=”valUserNameRequired” ControlToValidate=”UserName” ValidationGroup=”Form1″ ErrorMessage=”UserName is a required field.” Display=”None” Runat=”server”> CompareValidator [password] asp:TextBox Id=”UserName” runat=”server” /> /asp:TextBox>* asp:CompareValidator id=”valComparePassword” ControlToValidate=”ConfirmPassword” ValidationGroup=”Form1″ ErrorMessage=”Password fields must match.” ControlToCompare=”txtPassword” Display=”None” EnableClientScript=”true” Runat=”server”/> CompareValidator [date] asp:TextBox Id=”date” runat=”server” /> /asp:TextBox>* asp:CompareValidator id=”valDate” Type=”Date” ControlToValidate=”Date” Operator=”DataTypeCheck” ValidationGroup=”Form1″ ErrorMessage=”mm/dd/yyyy” Display=”None” Runat=”server”/> RegularExpressionValidator [email] asp:TextBox […]
Archive for 2011
Page Redirect
HTML <meta http-equiv=”refresh” content=”0;url=http://google.com”> Javascript <script language=”javascript”> <!– location.replace(“http://google.com”) //–> </script> Asp / ASP.Net <% Request.Redirect(“http://google.com”) %> Php <?php header( ‘Location: http://google.com’ ) ; ?> Perl (method 1) #!/usr/bin/perl use strict; use warnings; my $url = “http://google.com”; print “Location: $url\n\n”; (method 2) #!/usr/bin/perl print “Content-Type: text/html\n”; print “Location: http://google.com\n\n”; (method 3 – using CGI module) […]
jQuery Datepicker
Nice and easy to configure and setup jQuery datepicker I use in my ASP.NET applications. All needed files can be downloaded from here. Once you access this page, if you would like to download only “Datepicker” files, deselect all and then select only datepicker and then click download. Full demo and other datepicker templates can […]