-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: prasanth
Message 1 in Discussion
Hi,
i am using comparel validator control to compare fromdate and to date.i am facing
some problem with it.
This is the script i am using and i am using two buttton
controls named submit and reset.
<asp:CompareValidator id="CompareValidator1" ControlToValidate="txtEndDate"
ControlToCompare="txtStartDate"
style="Z-INDEX: 102; LEFT: 44px; POSITION:
absolute; TOP: 72px" Type="Date" runat="server" Height="56px"
Width="152px" ErrorMessage="FromDate should be
Less than or Equal To End Date"></asp:CompareValidator>
private btnSubmit_Click(object sender, System.EventArgs e)
{
if (!CompareValidator1.IsValid)
{
CompareValidator1.ErrorMessage = "The From date must "
+
"not be greater than To Date.";
}
}
private btnReset_Click(object sender, System.EventArgs e)
{
Server.Transfer("AdminChangeLog.aspx");
}
}
Now the problem the reset event is not firing .i dont know what is the reason behind
it. Also compare validator displays error msg even when fromdate is less than the To
date. what is the problem?
Please help me to solve this issue.
Thanks,
Vishnu
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]