Advertisement
Advertisement
| 02.13.2008 at 07:15AM PST, ID: 23159765 |
|
[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: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: |
function Datecheck()
{
var date1=document.getElementById("cndEndDate")
alert(date1);
// var date2=document.getElementById("cndEndDate");
var date2=document.getElementById("cndEndDate").value
if(date2 > date1 )
{
alert("Wrong in application");
}
}
<EditFormSettings EditFormType="Template">
<FormTemplate>
<table id="tblFields" cellspacing="1" cellpadding="1" width="70%" border="0">
<tr>
<td id="colHeading" colspan="2">
<asp:Label ID="lblHeading" runat="server"
Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Add new Contract Document", "Edit Contract Document: " + Eval( "DocumentDisplayName" )) %>'></asp:Label>
</td>
</tr>
<tr>
<td></td><td></td>
</tr>
<tr >
<td>
<asp:Label ID="lblDocName" CssClass="Label" Text="Name: *" runat="server">
</asp:Label>
</td>
<td >
<asp:TextBox ID="txtDocName" runat="server" MaxLength="50" Text='<%# Bind( "DocumentDisplayName" ) %>'>
</asp:TextBox>
<asp:RequiredFieldValidator ID="rvDocName" Text="*" Display="Dynamic" ErrorMessage="Document name is blank" runat="server" ControlToValidate="txtDocName"
ValidationGroup="Reasons">
</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width:500px;">
<asp:Label ID="lblDescription" CssClass="Label" Text="Description:" runat="server">
</asp:Label>
</td>
<td>
<asp:TextBox ID="txtDocDescription" runat="server" Text='<%# Bind( "DocumentDescription" ) %>' TextMode="MultiLine" Rows="2" Columns="50">
</asp:TextBox>
<asp:RegularExpressionValidator ID="rvtxtDocDescription" ValidationExpression=".{1,100}" ValidationGroup="Reasons" ControlToValidate="txtDocDescription" ErrorMessage="Please define max 100 chars for description" Text="*" runat="server" >
</asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td >
<asp:label ID="lblType" Text="Type: *" CssClass="Label" runat="server">
</asp:label>
</td>
<td>
<asp:DropDownList ID="cmbDocType" runat="server" ValidationGroup="Reasons" SelectedValue='<%# Bind( "DocumentTypeID" ) %>' DataSourceID="objDocumentType" DataTextField="DocumentTypeName" DataValueField="DocumentTypeID" AppendDataBoundItems="true">
<asp:ListItem Selected="True" Text="Select" Value="" >
</asp:ListItem>
</asp:DropDownList>
<asp:RequiredFieldValidator ID="rvcmbDocType" Text="*" runat="server" ValidationGroup="Reasons" ControlToValidate="cmbDocType" InitialValue="" ErrorMessage="Please select document type">
</asp:RequiredFieldValidator>
</tr>
<tr>
<td>
<asp:Label id="lblstartDate" CssClass="Label" Text="Start Date:" runat="server" >
</asp:Label>
</td>
<td>
<rad:RadDatePicker ID="cndStartDate" Calendar-CssClass="summerVacationWrapper" runat="server" SelectedDate='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), Now, Eval( "DocumentStartDate" )) %>'>
</rad:RadDatePicker>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblEndDate" CssClass="Label" Text="End Date:" runat="server">
</asp:Label>
</td>
<td >
<rad:RadDatePicker ID="cndEndDate" Calendar-CssClass="summerVacationWrapper" runat="server" SelectedDate='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), Now, Eval( "DocumentEndDate" )) %>'>
</rad:RadDatePicker>
<%-- <CompareValidator for comparing start date and the end day --%>
<%--<asp:CompareValidator ID="cfvDate" runat="server" ControlToCompare="cndStartDate" ControlToValidate="cndEndDate" Display="Dynamic" ErrorMessage="End Date cannot be less than Current date" Operator="GreaterThan" Type="Date" ></asp:CompareValidator>--%>
<asp:CustomValidator ID="cv1" runat="server" ControlToValidate="cndEndDate" ClientValidationFunction="Datecheck()" ValidationGroup="Reasons" ErrorMessage="Invaldi"></asp:CustomValidator>
</td>
</tr>
<tr>
<td>
<asp:Label Text="Active:" CssClass="Label" runat="server" ID="lblActive">
</asp:Label>
</td>
<td>
|