 |
| ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

April 8th, 2004, 08:20 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Custom Validator not Validating
I am using a custom validator to check the sum of 2 values entered into textboxes. In the HTML, I have the onServerValidate set to my Handler, "CustomValidator1_ServerValidate"
The handler goes like this:
Protected Sub CustomValidator1_ServerValidate(ByVal source As System.Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate
If Not txtHour.Text Is System.DBNull.Value And Not txtHourTenths.Text Is System.DBNull.Value Then
If IsNumeric(txtHour.Text) And IsNumeric(txtHourTenths.Text) Then
If (CInt(txtHour.Text) + CInt(txtHourTenths.Text)) = 0 Then
CustomValidator1.IsValid = False
End If
End If
End If
End Sub
This never produces the desired result - if both textboxes are not NULL, are numeric and add up to zero, then the validator message should be displayed.
Is there a flaw with my implementation?
Thanks in advance
- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.
|
|

April 8th, 2004, 09:04 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
Try using 'Is Nothing' instead of 'Is System.DBNull.Value'.
I forget which to use and in which case but it's worth a try.
|
|

April 8th, 2004, 11:04 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
That had no effect - I believe Nothing is an object reference as opposed to a value.
- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.
|
|

April 8th, 2004, 11:07 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
If txtHour is a valid TextBox, and its Text property is empty, then it will return an empty string, and not nothing or null. So, you can check for the Length of the string:
Code:
If txtHour.Text.Length > 0 Then
If IsNumeric(txtHour.Text) And IsNumeric(txtHourTenths.Text) Then
If (CInt(txtHour.Text) + CInt(txtHourTenths.Text)) = 0 Then
CustomValidator1.IsValid = False
End If
End If
End If
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Microphone Friend by Rage Against The Machine (Track 1 from the album: Renegades)
|
|

April 8th, 2004, 12:29 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I see where you are going with length > 0.
I tried it, and my validator still doesn't show up on postback and both textboxes have 0 in them. Is there some fundamental principle of using a CustomValidator server-side function that I am not taking into account?
For what it's worth, I wrote this reply while listening to Love Is Green by Jeff Beck (from the album Wired)
- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.
|
|

April 8th, 2004, 01:38 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
He, did you write your own "Query WinAmp Web service" as well?? ;)
Can you post the code for the entire page? Maybe there is something else why the code doesn't work.
Does the CustomValidator1_ServerValidate get hit at all? What happens when you set a break point?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Drugs by This Mortal Coil (Track 23 from the album: Filigree and Shadow)
|
|

April 8th, 2004, 02:21 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
Other then testing the length, you can also check to see if the textbox is equal to String.Empty. Both ways do the same thing.
I had problems with custom validation myself. I turn off CausesValidation for all buttons. Then when the validation button was clicked, it called Page.Validate() and then checked if the Page.IsValid is true. However, I never could get the CustomValidator to trigger. So what I did was manually triggered each custom validator, as so:
customvalidator1.Validate()
and checked if:
customvalidator1.IsValid = True
I don't know if this is the problem you are having, but I hope this helps.
Brian
|
|

April 9th, 2004, 07:40 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok, here's the code:
In the page, I declare the Validator:
<asp:customvalidator id="CustomValidator1" style="Z-INDEX: 174; LEFT: 208px; POSITION: absolute; TOP: 736px" runat="server" ErrorMessage="Inquiry Duration must be greater than zero" OnServerValidate="CustomValidator1_ServerValidate" ControlToValidate="txtHourTenths"></asp:customvalidator>
In the codebehind, I have this code:
Sub CustomValidator1_ServerValidate(ByVal source As System.Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate
If txtHour.Text.Length > 0 And txtHourTenths.Text.Length > 0 Then
If IsNumeric(txtHour.Text) And IsNumeric(txtHourTenths.Text) Then
If (CInt(txtHour.Text) + CInt(txtHourTenths.Text)) = 0 Then
CustomValidator1.IsValid = False
End If
End If
End If
End Sub
Then finally on submit of the page via a button, I have this in the codebehind:
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
'check for contact info
lblNoContact.Visible = False
If txtAddress1.Text = "" And txtCity.Text = "" And txtZip.Text = "" And txtPhone.Text = "" And txtEmail.Text = "" Then
lblNoContact.Visible = True
Else
If Page.IsValid Then
Dim obj As New clsMyObject
obj.Address1 = txtAddress1.Text
obj.Address2 = txtAddress2.Text
.
.
.
obj.UserID = Session("UserID")
Session("ConfirmText") = "Inquiry Added"
obj.Add()
Response.Redirect("DEconfirm.aspx")
End If
End If
End Sub
That's it; again, I have a suspicion it's something basic that I'm missing. Hope this helps!
<dude>
Brian, I will try the String.Empty suggestion after this posting - thank you.
</dude>
- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.
|
|

April 9th, 2004, 07:53 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Can you post the rest of the ASPX page as well? Makes it easier to replay your scenario.....
Or link to it somewhere online if it is very long.....
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Karen Revisited by Sonic Youth (Track 4 from the album: Murray Street)
|
|

April 9th, 2004, 07:57 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok, you asked for it - it's a big data entry screen.
Code:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="AddInquiry.aspx.vb" Inherits="CIGAR.AddInquiry"%>
<%@ Register TagPrefix="uc1" TagName="FooterNav" Src="../FooterNav.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftNav" Src="../LeftNav.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>AddInquiry</title>
<LINK href="../Styles.css" type="text/css" rel="stylesheet">
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:image id="imgWorkLevel" style="Z-INDEX: 101; LEFT: 148px; POSITION: absolute; TOP: 32px"
runat="server" AlternateText="CIGAR Data Entry"></asp:image><asp:label id="lblEmail" style="Z-INDEX: 168; LEFT: 298px; POSITION: absolute; TOP: 405px"
runat="server" CssClass="formlabel">Email:</asp:label><asp:label id="lblApptDateSelected" style="Z-INDEX: 159; LEFT: 536px; POSITION: absolute; TOP: 560px"
runat="server" CssClass="formlabel" BorderWidth="0px" BorderStyle="Inset" Font-Bold="True" ForeColor="#07305C">Select Date</asp:label><asp:label id="lblCenter" style="Z-INDEX: 153; LEFT: 416px; POSITION: absolute; TOP: 760px"
runat="server" CssClass="formlabel">Inquiry Center:</asp:label><asp:label id="lblAddress2" style="Z-INDEX: 145; LEFT: 520px; POSITION: absolute; TOP: 285px"
runat="server" CssClass="formlabel">Address 2:</asp:label><asp:label id="lblAssistanceType" style="Z-INDEX: 144; LEFT: 493px; POSITION: absolute; TOP: 480px"
runat="server" CssClass="formlabel">Assistance Type:</asp:label><asp:label id="lblReferral" style="Z-INDEX: 141; LEFT: 510px; POSITION: absolute; TOP: 444px"
runat="server" CssClass="formlabel">Referral From:</asp:label><asp:label id="lblInquiryDuration" style="Z-INDEX: 139; LEFT: 208px; POSITION: absolute; TOP: 760px"
runat="server" CssClass="formlabel">Inquiry Duration:</asp:label><asp:label id="lblBusType" style="Z-INDEX: 134; LEFT: 504px; POSITION: absolute; TOP: 516px"
runat="server" CssClass="formlabel">Business Type:</asp:label><asp:label id="lblFname" style="Z-INDEX: 133; LEFT: 264px; POSITION: absolute; TOP: 245px"
runat="server" CssClass="formlabel">First Name:</asp:label><asp:label id="lblLname" style="Z-INDEX: 132; LEFT: 516px; POSITION: absolute; TOP: 245px"
runat="server" CssClass="formlabel">Last Name:</asp:label><asp:label id="lblAddress1" style="Z-INDEX: 131; LEFT: 280px; POSITION: absolute; TOP: 285px"
runat="server" CssClass="formlabel">Address:</asp:label><asp:label id="lblCity" style="Z-INDEX: 130; LEFT: 307px; POSITION: absolute; TOP: 325px" runat="server"
CssClass="formlabel">City:</asp:label><asp:label id="lblCounty" style="Z-INDEX: 129; LEFT: 286px; POSITION: absolute; TOP: 364px"
runat="server" CssClass="formlabel">County:</asp:label><asp:label id="lblZip" style="Z-INDEX: 128; LEFT: 664px; POSITION: absolute; TOP: 325px" runat="server"
CssClass="formlabel">Zip:</asp:label><asp:label id="lblState" style="Z-INDEX: 127; LEFT: 512px; POSITION: absolute; TOP: 325px"
runat="server" CssClass="formlabel">State:</asp:label><asp:label id="lblPhone" style="Z-INDEX: 126; LEFT: 506px; POSITION: absolute; TOP: 364px"
runat="server" CssClass="formlabel">Phone:</asp:label><asp:label id="lblContactType" style="Z-INDEX: 125; LEFT: 248px; POSITION: absolute; TOP: 444px"
runat="server" CssClass="formlabel">Contact Type:</asp:label><asp:label id="lblCounselor" style="Z-INDEX: 124; LEFT: 267px; POSITION: absolute; TOP: 480px"
runat="server" CssClass="formlabel">Counselor:</asp:label><asp:label id="lblGender" style="Z-INDEX: 123; LEFT: 213px; POSITION: absolute; TOP: 516px"
runat="server" CssClass="formlabel">Ownership Gender:</asp:label><asp:label id="lblBusDescription" style="Z-INDEX: 122; LEFT: 624px; POSITION: absolute; TOP: 560px"
runat="server" CssClass="formlabel">Business Description:</asp:label><asp:label id="lblContactDate" style="Z-INDEX: 119; LEFT: 208px; POSITION: absolute; TOP: 560px"
runat="server" CssClass="formlabel">Contact Date:</asp:label><asp:label id="lblTitle" style="Z-INDEX: 102; LEFT: 416px; POSITION: absolute; TOP: 152px"
runat="server" CssClass="pagetitle">Add Inquiry</asp:label><uc1:leftnav id="LeftNav1" runat="server"></uc1:leftnav><uc1:footernav id="FooterNav1" runat="server"></uc1:footernav><asp:textbox id="txtBusName" style="Z-INDEX: 103; LEFT: 344px; POSITION: absolute; TOP: 192px"
runat="server" Width="400px" MaxLength="100"></asp:textbox><asp:label id="lblCoName" style="Z-INDEX: 104; LEFT: 235px; POSITION: absolute; TOP: 197px"
runat="server" CssClass="formlabel">Business Name:</asp:label><asp:textbox id="txtFname" style="Z-INDEX: 105; LEFT: 344px; POSITION: absolute; TOP: 240px"
runat="server" Width="152px" MaxLength="50"></asp:textbox><asp:textbox id="txtLname" style="Z-INDEX: 106; LEFT: 592px; POSITION: absolute; TOP: 240px"
runat="server" MaxLength="50"></asp:textbox><asp:textbox id="txtAddress1" style="Z-INDEX: 107; LEFT: 344px; POSITION: absolute; TOP: 280px"
runat="server" MaxLength="50"></asp:textbox><asp:textbox id="txtAddress2" style="Z-INDEX: 108; LEFT: 592px; POSITION: absolute; TOP: 280px"
runat="server" MaxLength="50"></asp:textbox><asp:textbox id="txtCity" style="Z-INDEX: 135; LEFT: 344px; POSITION: absolute; TOP: 320px" runat="server"
MaxLength="50"></asp:textbox><asp:dropdownlist id="ddlState" style="Z-INDEX: 109; LEFT: 560px; POSITION: absolute; TOP: 321px"
runat="server" AutoPostBack="True" DataValueField="id" DataTextField="StateAbbr"></asp:dropdownlist><asp:textbox id="txtZip" style="Z-INDEX: 110; LEFT: 696px; POSITION: absolute; TOP: 320px" runat="server"
Width="48px" MaxLength="5"></asp:textbox><asp:textbox id="txtPlus4" style="Z-INDEX: 111; LEFT: 760px; POSITION: absolute; TOP: 320px"
runat="server" Width="40px" MaxLength="4"></asp:textbox><asp:dropdownlist id="ddlCounty" style="Z-INDEX: 112; LEFT: 344px; POSITION: absolute; TOP: 360px"
runat="server" DataValueField="id" DataTextField="County" Enabled="False"></asp:dropdownlist><asp:textbox id="txtPhone" style="Z-INDEX: 113; LEFT: 560px; POSITION: absolute; TOP: 359px"
runat="server" MaxLength="50"></asp:textbox><asp:textbox id="txtEmail" style="Z-INDEX: 169; LEFT: 344px; POSITION: absolute; TOP: 400px"
runat="server" Width="208px" MaxLength="100"></asp:textbox><asp:dropdownlist id="ddlContactType" style="Z-INDEX: 114; LEFT: 344px; POSITION: absolute; TOP: 440px"
runat="server" DataValueField="id" DataTextField="ContactType"></asp:dropdownlist><asp:dropdownlist id="ddlCounselor" style="Z-INDEX: 115; LEFT: 344px; POSITION: absolute; TOP: 476px"
runat="server" DataValueField="id" DataTextField="CounselorName"></asp:dropdownlist><asp:radiobuttonlist id="rblGender" style="Z-INDEX: 137; LEFT: 336px; POSITION: absolute; TOP: 510px"
runat="server" CssClass="formlabel" RepeatDirection="Horizontal">
<asp:ListItem Value="Male">Male</asp:ListItem>
<asp:ListItem Value="Female">Female</asp:ListItem>
</asp:radiobuttonlist><asp:dropdownlist id="ddlReferralFrom" style="Z-INDEX: 142; LEFT: 608px; POSITION: absolute; TOP: 440px"
runat="server" DataValueField="id" DataTextField="ReferralSource"></asp:dropdownlist><asp:dropdownlist id="ddlAssistanceType" style="Z-INDEX: 143; LEFT: 608px; POSITION: absolute; TOP: 476px"
runat="server" DataValueField="id" DataTextField="CounselingType"></asp:dropdownlist><asp:dropdownlist id="ddlBusinessType" style="Z-INDEX: 120; LEFT: 608px; POSITION: absolute; TOP: 512px"
runat="server" DataValueField="id" DataTextField="BusinessType"></asp:dropdownlist><asp:calendar id="calContactDate" style="Z-INDEX: 116; LEFT: 208px; POSITION: absolute; TOP: 584px"
runat="server" Width="144px" Height="148" BorderColor="#07305C">
<DayStyle Font-Size="9pt"></DayStyle>
<DayHeaderStyle Font-Size="9pt" BackColor="#E0E0E0"></DayHeaderStyle>
<SelectedDayStyle BackColor="#A8AEC8"></SelectedDayStyle>
<TitleStyle Font-Size="9pt" BackColor="#A8AEC8"></TitleStyle>
<OtherMonthDayStyle ForeColor="Silver"></OtherMonthDayStyle>
</asp:calendar><asp:calendar id="calAppointmentDate" style="Z-INDEX: 157; LEFT: 416px; POSITION: absolute; TOP: 584px"
runat="server" Width="144px" Height="148" BorderColor="#07305C">
<DayStyle Font-Size="9pt"></DayStyle>
<DayHeaderStyle Font-Size="9pt" BackColor="#E0E0E0"></DayHeaderStyle>
<SelectedDayStyle BackColor="#A8AEC8"></SelectedDayStyle>
<TitleStyle Font-Size="9pt" BackColor="#A8AEC8"></TitleStyle>
<OtherMonthDayStyle ForeColor="Silver"></OtherMonthDayStyle>
</asp:calendar><asp:textbox id="txtBusinessDescription" style="Z-INDEX: 121; LEFT: 624px; POSITION: absolute; TOP: 584px"
runat="server" Width="336px" Height="148px" TextMode="MultiLine"></asp:textbox><asp:textbox id="txtInquiryDurationHour" style="Z-INDEX: 140; LEFT: 320px; POSITION: absolute; TOP: 755px"
runat="server" Width="32px" MaxLength="3">0</asp:textbox><asp:textbox id="txtInquiryDurationHourTenths" style="Z-INDEX: 166; LEFT: 360px; POSITION: absolute; TOP: 755px"
runat="server" Width="24px" MaxLength="1">0</asp:textbox><asp:dropdownlist id="ddlCenter" style="Z-INDEX: 154; LEFT: 520px; POSITION: absolute; TOP: 756px"
runat="server" DataValueField="id" DataTextField="CenterName"></asp:dropdownlist><asp:label id="lblNarrative" style="Z-INDEX: 117; LEFT: 208px; POSITION: absolute; TOP: 784px"
runat="server" CssClass="formlabel">Narrative:</asp:label><asp:textbox id="txtNarrative" style="Z-INDEX: 118; LEFT: 208px; POSITION: absolute; TOP: 805px"
runat="server" Width="752px" Height="162px" TextMode="MultiLine"></asp:textbox><asp:label id="lblDash" style="Z-INDEX: 136; LEFT: 749px; POSITION: absolute; TOP: 323px" runat="server">-</asp:label><asp:label id="lblContactDateSelected" style="Z-INDEX: 138; LEFT: 296px; POSITION: absolute; TOP: 560px"
runat="server" CssClass="formlabel" BorderWidth="0px" BorderStyle="Inset" Font-Bold="True" ForeColor="#07305C">Select Date</asp:label>
<asp:button id="btnSubmit" style="Z-INDEX: 147; LEFT: 432px; POSITION: absolute; TOP: 992px"
runat="server" Width="112px" Text="Add Inquiry"></asp:button><asp:requiredfieldvalidator id="RequiredFieldValidator1" style="Z-INDEX: 148; LEFT: 224px; POSITION: absolute; TOP: 198px"
runat="server" ControlToValidate="txtBusName" ErrorMessage="Business Name is required">
<b>*</b></asp:requiredfieldvalidator><asp:validationsummary id="ValidationSummary1" style="Z-INDEX: 149; LEFT: 776px; POSITION: absolute; TOP: 152px"
runat="server"></asp:validationsummary><asp:requiredfieldvalidator id="RequiredFieldValidator2" style="Z-INDEX: 150; LEFT: 248px; POSITION: absolute; TOP: 246px"
runat="server" ControlToValidate="txtFname" ErrorMessage="First Name is required">
<b>*</b></asp:requiredfieldvalidator><asp:requiredfieldvalidator id="RequiredFieldValidator3" style="Z-INDEX: 151; LEFT: 504px; POSITION: absolute; TOP: 246px"
runat="server" ControlToValidate="txtLname" ErrorMessage="Last Name is required">
<b>*</b></asp:requiredfieldvalidator><asp:requiredfieldvalidator id="RequiredFieldValidator7" style="Z-INDEX: 152; LEFT: 200px; POSITION: absolute; TOP: 517px"
runat="server" ControlToValidate="rblGender" ErrorMessage="Ownership Gender is required">
<b>*</b></asp:requiredfieldvalidator><asp:comparevalidator id="CompareValidator2" style="Z-INDEX: 155; LEFT: 400px; POSITION: absolute; TOP: 761px"
runat="server" ControlToValidate="ddlCenter" ErrorMessage="Center is required" Operator="GreaterThan" ValueToCompare="0" Type="Integer">
<b>*</b></asp:comparevalidator><asp:requiredfieldvalidator id="RequiredFieldValidator8" style="Z-INDEX: 156; LEFT: 200px; POSITION: absolute; TOP: 761px"
runat="server" ControlToValidate="txtInquiryDurationHour" ErrorMessage="Inquiry Duration is required">
<b>*</b></asp:requiredfieldvalidator><asp:label id="lblApptDate" style="Z-INDEX: 158; LEFT: 416px; POSITION: absolute; TOP: 560px"
runat="server" CssClass="formlabel">Appointment Date:</asp:label><asp:comparevalidator id="CompareValidator3" style="Z-INDEX: 160; LEFT: 232px; POSITION: absolute; TOP: 445px"
runat="server" ControlToValidate="ddlContactType" ErrorMessage="Contact Type is required" Operator="GreaterThan" ValueToCompare="0">
<b>*</b></asp:comparevalidator><asp:comparevalidator id="CompareValidator4" style="Z-INDEX: 161; LEFT: 496px; POSITION: absolute; TOP: 445px"
runat="server" ControlToValidate="ddlReferralFrom" ErrorMessage="Referral Source is required" Operator="GreaterThan" ValueToCompare="0">
<b>*</b></asp:comparevalidator><asp:comparevalidator id="CompareValidator5" style="Z-INDEX: 162; LEFT: 256px; POSITION: absolute; TOP: 481px"
runat="server" ControlToValidate="ddlCounselor" ErrorMessage="Counselor is required" Operator="GreaterThan" ValueToCompare="0">
<b>*</b></asp:comparevalidator><asp:comparevalidator id="CompareValidator6" style="Z-INDEX: 163; LEFT: 480px; POSITION: absolute; TOP: 481px"
runat="server" ControlToValidate="ddlAssistanceType" ErrorMessage="Assistance Type is required" Operator="GreaterThan" ValueToCompare="0">
<b>*</b></asp:comparevalidator><asp:comparevalidator id="CompareValidator7" style="Z-INDEX: 164; LEFT: 488px; POSITION: absolute; TOP: 517px"
runat="server" ControlToValidate="ddlBusinessType" ErrorMessage="Business Type is required" Operator="GreaterThan" ValueToCompare="0">
<b>*</b></asp:comparevalidator><asp:checkbox id="ckbNotAvailable" style="Z-INDEX: 165; LEFT: 344px; POSITION: absolute; TOP: 216px"
runat="server" AutoPostBack="True" Text="Business Name Not Available" Font-Size="8pt"></asp:checkbox><asp:label id="lblDot" style="Z-INDEX: 167; LEFT: 352px; POSITION: absolute; TOP: 752px" runat="server"
Height="31px" Font-Size="14pt">
<b>.</b></asp:label><asp:regularexpressionvalidator id="RegularExpressionValidator1" style="Z-INDEX: 170; LEFT: 288px; POSITION: absolute; TOP: 406px"
runat="server" ControlToValidate="txtEmail" ErrorMessage="Invalid Email address" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
<b>*</b></asp:regularexpressionvalidator><asp:label id="lblNoContact" style="Z-INDEX: 171; LEFT: 576px; POSITION: absolute; TOP: 392px"
runat="server" CssClass="formlabel" ForeColor="Red" Visible="False">One form of contact info is required<br>(phone, email, or postal mail)</asp:label><asp:comparevalidator id="CompareValidator1" style="Z-INDEX: 172; LEFT: 368px; POSITION: absolute; TOP: 776px"
runat="server" ControlToValidate="txtInquiryDurationHourTenths" ErrorMessage="Inquiry Duration must be numeric" Operator="DataTypeCheck" Type="Integer">*</asp:comparevalidator><asp:comparevalidator id="CompareValidator8" style="Z-INDEX: 173; LEFT: 332px; POSITION: absolute; TOP: 776px"
runat="server" ControlToValidate="txtInquiryDurationHour" ErrorMessage="Inquiry Duration must be numeric" Operator="DataTypeCheck" Type="Integer">*</asp:comparevalidator><asp:customvalidator id="CustomValidator1" style="Z-INDEX: 174; LEFT: 208px; POSITION: absolute; TOP: 736px"
runat="server" ErrorMessage="Inquiry Duration must be greater than zero" OnServerValidate="CustomValidator1_ServerValidate" ControlToValidate="txtInquiryDurationHourTenths"></asp:customvalidator></form>
</body>
</HTML>
- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.
|
|
 |