Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 26, 2012 05:12 PM by arkan.turk
Member
20 Points
120 Posts
Jun 25, 2012 01:44 PM|LINK
sir
i have two dates .one is starting date and another one is ending date.
i am using this for entering Questions.i dont want any Question on the dates that covering other Question...
please give the complete code of validation
All-Star
15346 Points
3142 Posts
Jun 25, 2012 01:50 PM|LINK
select question from exam where examDate between startdate and enddate
Contributor
2996 Points
712 Posts
Jun 26, 2012 12:21 AM|LINK
Hi
try use comparevalidator
http://forums.asp.net/t/1264193.aspx/1
65759 Points
11153 Posts
Jun 26, 2012 03:16 AM|LINK
This seems to work like you describe that you need.
<form id="Form1" method="post" runat="server">
From: <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:RequiredFieldValidator id="RequiredFieldValidator1" ControlToValidate="TextBox1" Display="Static" ErrorMessage="* Required field" runat="server" />
To: <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> <asp:RequiredFieldValidator id="RequiredFieldValidator2" ControlToValidate="TextBox2" Display="Static" ErrorMessage="* Required field" runat="server" /> <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="TextBox2" ControlToCompare="TextBox1" Type="Date" Display="Dynamic" ErrorMessage="To must be greater than From" Operator="GreaterThan"></asp:CompareValidator> </form>
http://chakkaradeep.wordpress.com/2008/08/01/aspnet-ajax-calendarextender-and-validation/
http://compfreak007.wordpress.com/2010/03/09/date-validation-for-ajax-calendar-extender/
Jun 26, 2012 05:12 PM|LINK
is validation you need in sql server db or in page (Client side Or Server Side) ?????????????
insafkpm
Member
20 Points
120 Posts
validation of dates
Jun 25, 2012 01:44 PM|LINK
sir
i have two dates .one is starting date and another one is ending date.
i am using this for entering Questions.i dont want any Question on the dates that covering other Question...
please give the complete code of validation
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: validation of dates
Jun 25, 2012 01:50 PM|LINK
select question from exam where examDate between startdate and enddate
arkan.turk
Contributor
2996 Points
712 Posts
Re: validation of dates
Jun 26, 2012 12:21 AM|LINK
Hi
try use comparevalidator
http://forums.asp.net/t/1264193.aspx/1
MCSD & MCAD
chetan.sarod...
All-Star
65759 Points
11153 Posts
Re: validation of dates
Jun 26, 2012 03:16 AM|LINK
This seems to work like you describe that you need.
<form id="Form1" method="post" runat="server">
From:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator id="RequiredFieldValidator1" ControlToValidate="TextBox1" Display="Static" ErrorMessage="* Required field"
runat="server" />
To:
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator id="RequiredFieldValidator2" ControlToValidate="TextBox2" Display="Static" ErrorMessage="* Required field"
runat="server" />
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="TextBox2" ControlToCompare="TextBox1"
Type="Date" Display="Dynamic" ErrorMessage="To must be greater than From" Operator="GreaterThan"></asp:CompareValidator>
</form>
http://chakkaradeep.wordpress.com/2008/08/01/aspnet-ajax-calendarextender-and-validation/
http://compfreak007.wordpress.com/2010/03/09/date-validation-for-ajax-calendar-extender/
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
arkan.turk
Contributor
2996 Points
712 Posts
Re: validation of dates
Jun 26, 2012 05:12 PM|LINK
is validation you need in sql server db or in page (Client side Or Server Side) ?????????????
MCSD & MCAD