Click here to Skip to main content
16,006,355 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAny Control in ASp.NET Pin
k_bhawna26-Apr-06 19:41
k_bhawna26-Apr-06 19:41 
AnswerRe: Any Control in ASp.NET Pin
luckyv26-Apr-06 20:07
luckyv26-Apr-06 20:07 
GeneralRe: Any Control in ASp.NET Pin
k_bhawna26-Apr-06 21:27
k_bhawna26-Apr-06 21:27 
AnswerRe: Any Control in ASp.NET Pin
Shiby26-Apr-06 22:25
Shiby26-Apr-06 22:25 
AnswerRe: Any Control in ASp.NET Pin
Anupbala27-Apr-06 0:59
Anupbala27-Apr-06 0:59 
QuestionCompare Validator Control Pin
Rajiya26-Apr-06 18:29
Rajiya26-Apr-06 18:29 
AnswerRe: Compare Validator Control Pin
chakkara200326-Apr-06 18:55
chakkara200326-Apr-06 18:55 
AnswerRe: Compare Validator Control Pin
Mike Ellison27-Apr-06 2:41
Mike Ellison27-Apr-06 2:41 
I think you would also want to check that valid dates have been entered. Does this help?
<% @Page Language="C#" %>

<html>
  <head>
    <title>Validating Dates</title>
  </head>
  
  <body>    
    <form runat="server">
    
        Start:  <asp:TextBox id="txtStartDate" runat="server" />
        <br />
        End:  <asp:TextBox id="txtEndDate" runat="server" />
        <br />
        <asp:CompareValidator id="valid1" runat="server"
                              ControlToValidate="txtStartDate"
                              Type="Date"
                              Operator="DataTypeCheck"
                              Text="The start date must be a valid date."
                              />        
        <asp:CompareValidator id="valid2" runat="server"
                              ControlToValidate="txtEndDate"
                              Type="Date"
                              Operator="DataTypeCheck"
                              Text="The end date must be a valid date."
                              />        
        <asp:CompareValidator id="valid3" runat="server"
                              ControlToValidate="txtStartDate"
                              ControlToCompare = "txtEndDate"
                              Type="Date"
                              Operator="LessThanEqual"
                              Text="The start date must be less than 
                                     or equal to the end date"
                              />
        <br />
        <br />
        <asp:Button runat="server" text="Submit" />                              
        
    
    </form>    
  </body>
  
</html>

QuestionHow to open a new broswer with new URL Pin
2hdass26-Apr-06 18:07
2hdass26-Apr-06 18:07 
AnswerRe: How to open a new broswer with new URL Pin
Mike Ellison26-Apr-06 18:49
Mike Ellison26-Apr-06 18:49 
AnswerRe: How to open a new broswer with new URL Pin
Guffa26-Apr-06 20:57
Guffa26-Apr-06 20:57 
GeneralRe: How to open a new broswer with new URL Pin
Mike Ellison27-Apr-06 2:42
Mike Ellison27-Apr-06 2:42 
QuestionDeployment Pin
NICE TO MEET26-Apr-06 17:49
NICE TO MEET26-Apr-06 17:49 
GeneralRe: Deployment Pin
J4amieC26-Apr-06 22:10
J4amieC26-Apr-06 22:10 
QuestionHow to refresh a bound control Pin
2hdass26-Apr-06 17:02
2hdass26-Apr-06 17:02 
AnswerRe: How to refresh a bound control Pin
minhpc_bk26-Apr-06 17:25
minhpc_bk26-Apr-06 17:25 
QuestionASP.net Insert Variable Pin
aurora8326-Apr-06 13:08
aurora8326-Apr-06 13:08 
AnswerRe: ASP.net Insert Variable Pin
Mike Ellison26-Apr-06 13:37
Mike Ellison26-Apr-06 13:37 
AnswerRe: ASP.net Insert Variable Pin
Mike Ellison26-Apr-06 14:04
Mike Ellison26-Apr-06 14:04 
QuestionService Requisition System Pin
ashortega26-Apr-06 12:02
ashortega26-Apr-06 12:02 
AnswerRe: Service Requisition System Pin
Mike Ellison26-Apr-06 12:27
Mike Ellison26-Apr-06 12:27 
QuestionASP.NET source code for Inventory management system Pin
cena_rock26-Apr-06 10:08
cena_rock26-Apr-06 10:08 
GeneralRe: ASP.NET source code for Inventory management system Pin
Guffa26-Apr-06 10:27
Guffa26-Apr-06 10:27 
QuestionCrystal reports Pin
Jmshastri26-Apr-06 8:09
Jmshastri26-Apr-06 8:09 
AnswerRe: Crystal reports Pin
minhpc_bk26-Apr-06 17:20
minhpc_bk26-Apr-06 17:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.