Public Sub ClearTextBox(ByVal root As Control) For Each ctrl As Control In root.Controls ClearTextBox(ctrl) If TypeOf ctrl Is TextBox Then CType(ctrl, TextBox).Text = String.Empty End If Next ctrl End Sub
<asp:TextBox ID="txtPODate" runat="server" Width="130px" Height="22px" > <img alt="Calendar" src="Styles/Images/calendar1.gif" id="imgAddDate" önclick="javascript:show('<%= txtPODate.ClientID %>')" /> <asp:CompareValidator ID="CVDate" runat="server" ControlToValidate="txtPODate" Display="Dynamic" ErrorMessage=" Please Enter Date Format" YYYY/MM/DD" Operator="DataTypeCheck" Type="Date" ValueToCompare="yyyy/mm/dd">
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)