Advertisement
Advertisement
| 10.14.2008 at 04:19AM PDT, ID: 23812356 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: |
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TextBoxcompareDate.ascx.cs" Inherits="TextBoxcompareDate" %>
<%@ Register TagPrefix="Date" Namespace="userControls" Assembly="TextBoxDate" %>
<head >
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
function validateDates(source, arguements)
{
var thevalue = arguements.Value;
arguements.IsValid=false;
if(!validateDate(thevalue))
{
alert(source.errormessage);
return;
}
arguements.IsValid=true;
}
function compareStartEnd()
{
var stringFromDate = document.getElementById('<%=txtStart.ClientID%>').value;
var stringToDate = document.getElementById('<%=txtEnd.ClientID%>').value;
var FromDate = Date.parse(stringFromDate);
var ToDate = Date.parse(stringToDate);
if (FromDate > ToDate)
alert('The end date must be greather than the start date');
}
</script>
</head>
<table width="100%">
<tr>
<td align="right" width="75%">
<asp:Label ID="lblCaption" runat="server" Text="Title: " Font-Names="Verdana" Font-Size="10px" ForeColor="#000000"></asp:Label>
</td>
<td align="left" width="10%">
<asp:TextBox
ID="txtStart"
runat="server"
MaxLength="10"
Width="80px"
style="padding: 2px;border:solid 1px #92C86A;background-color: #ffffff;font-family:Verdana;font-size: 11px;color:#000000;"
onfocus="this.select();"></asp:TextBox>
</td>
<td align="center" width="5%">
<span style="font-family:Verdana;font-size: 10px;font-weight:bold;color:#000000;">-</span>
</td>
<td align="left" width="10%">
<asp:TextBox
ID="txtEnd"
runat="server"
MaxLength="10"
Width="80px"
style="padding: 2px;border:solid 1px #92C86A;background-color: #ffffff;font-family:Verdana;font-size: 11px;color:#000000;"
onfocus="this.select();"
onchange="compareStartEnd();" ></asp:TextBox>
</td>
</tr>
</table>
<asp:CustomValidator
ID="cuvStart"
runat="server"
ControlToValidate="txtStart"
ClientValidationFunction="validateDates"
ErrorMessage="Incorrect starting date."
SetFocusOnError="true"
Display="None"> </asp:CustomValidator>
<asp:CustomValidator
ID="cuvEnd"
runat="server"
ControlToValidate="txtEnd"
ClientValidationFunction="validateDates"
ErrorMessage="Incorrect ending date"
SetFocusOnError="true"
Display="None"> </asp:CustomValidator>
|