Advertisement

08.16.2008 at 09:24PM PDT, ID: 23654249
[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.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

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!

7.1

Need to fix validation page on my site with ajax updatepanel asp.net

Asked by mathieu_cupryk in Asynchronous Javascript and XML (AJAX), Programming for ASP.NET

I would like to fix this validation on the site omegalove.com
I need to improve this. Any help would be fine. I have put the ascx register page in the snippet code.
I am new to ajax so i need to make this much nicer. Start Free Trial
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:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:Label ID="lblMessage" runat="server" EnableViewState="false" ForeColor="blue"></asp:Label>
 
 
<table width="259" border="0" cellpadding="0" cellspacing="0" height="460" align="center" >
 
<tr>
<td>
    
 
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" >
    <tr>
        <td align="right" nowrap="nowrap" style="height: 25px; text-align: center" colspan="2">
            <span style="font-family: 'Arial','sans-serif';">
                <span style="font-size: 10pt"><span style="color: #000060">
                    <?xml namespace="" ns="urn:schemas-microsoft-com:office:office" prefix="o" ?><o:p>
                    <SPAN style="COLOR: #000000"><STRONG><SPAN style="FONT-SIZE: 14pt; COLOR: #990033">Contact Information</SPAN>
                    <BR />&nbsp;<SPAN style="FONT-SIZE: 9pt">* Required fields<BR /><BR /></SPAN></STRONG></SPAN></o:p></span></span></span></td>
    </tr>
    <tr>
        <td style="width: 97%;" align="right" height="35" nowrap="noWrap">
         <asp:Label ID="lblEmail" runat="server" AssociatedControlID="txtEmail" Font-Bold="True" Font-Size="X-Small">E-mail Address *        </asp:Label>&nbsp;
        </td>
        <td style="width: 60%;" align="left" bordercolor="#f6cccc" height="35">
            &nbsp;<asp:TextBox ID="txtEmail" MaxLength="50" runat="server" Width="155px" BorderStyle="Inset" BorderWidth="2px" />
  
<asp:RequiredFieldValidator ID="RFVtxtEmail" Font-Size="X-Small" ControlToValidate="txtEmail" Text="*" ErrorMessage="Email is Missing" runat="server" /> 
 
<asp:RegularExpressionValidator ID="REVtxtEmail" ControlToValidate="txtEmail" Font-Size="X-Small" Text="Invalid Email Address" ValidationExpression="^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9] 
{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$" runat="server" />                                        
                </td>
    </tr>
    <tr>
        <td style="width: 97%;" align="right" height="35" nowrap="noWrap">
           <asp:Label ID="lblUserName" runat="server" AssociatedControlID="txtUserName" Font-Bold="True" Font-Size="X-Small">UserName *      </asp:Label>&nbsp;
           </td>
        <td style="width: 60%;" align="left" bordercolor="#f6cccc" height="35">
            &nbsp;<asp:TextBox ID="txtUserName" MaxLength="50" runat="server" Width="155px" BorderWidth="2px" BorderStyle="Inset" />
            
            <asp:RequiredFieldValidator ID="RFVtxtUserName" runat="server" ControlToValidate="txtUserName"
                Font-Size="X-Small" Text="*"  ErrorMessage="UserName is Missing" Width="1px"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="width: 97%;" align="right" height="35" nowrap="noWrap">
            <asp:Label ID="lblPassword" runat="server" AssociatedControlID="txtPassword" Font-Bold="True" Font-Size="X-Small">Password *         </asp:Label>&nbsp;
        </td>
        <td style="width: 60%;" align="left" bordercolor="#f6cccc" height="35">
            &nbsp;<asp:TextBox ID="txtPassword" MaxLength="50" runat="server" TextMode="Password" Width="155px" BorderStyle="Inset" BorderWidth="2px"></asp:TextBox>
            
            <asp:RequiredFieldValidator ID="RFVtxtPassword" runat="server" ControlToValidate="txtPassword" Font-Size="X-Small" Text="*" ErrorMessage="Password is Missing" Width="1px"></asp:RequiredFieldValidator><br />
            &nbsp;<asp:Label ID="lblPasswordVerification" runat="server" Font-Size="XX-Small"
                Text="6-12 characters, letters and numbers only." Width="168px"></asp:Label></td>
    </tr>
    <tr>
        <td style="width: 97%;" align="right" height="35" nowrap="noWrap">
            <asp:Label ID="lblPassword2" runat="server" AssociatedControlID="txtPassword2" Font-Bold="True" Font-Size="X-Small">Verify Password *        </asp:Label>&nbsp;</td>
        <td style="width: 60%;" align="left" bordercolor="#f6cccc" height="35">
            &nbsp;
            <asp:TextBox ID="txtPassword2" MaxLength="50" runat="server" TextMode="Password" Width="155px" BorderStyle="Inset" BorderWidth="2px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RFVtxtPassword2" runat="server" ControlToValidate="txtPassword2" Font-Size="X-Small" Text="*" ErrorMessage="Verify Password is Missing" Width="1px"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CVPassword" runat="server" ControlToCompare="txtPassword2" ControlToValidate="txtPassword" ErrorMessage="Password and Verify Password must match." Font-Size="X-Small" Width="235px"></asp:CompareValidator> 
                
            </td>
    </tr>
    <tr>
        <td align="right" height="35" nowrap="nowrap" style="width: 97%">
            <asp:Label ID="lblFullName" runat="server" AssociatedControlID="txtFullName" Font-Bold="True"
                Font-Size="X-Small">Full Name *        </asp:Label>&nbsp;</td>
        <td align="left" bordercolor="#f6cccc" height="35" style="width: 60%">
            &nbsp;<asp:TextBox ID="txtFullName" MaxLength="50" runat="server" Width="155px" BorderStyle="Inset" BorderWidth="2px" />
             <asp:RequiredFieldValidator ID="RFVtxtFullName" runat="server"  ControlToValidate="txtFullName" Text="*" ErrorMessage="FullName is Missing" Font-Size="X-Small" Width="68px"></asp:RequiredFieldValidator></td>
    </tr>
 
 
<tr>
     <td style="width: 97%; height: 33px;" align="right" nowrap="noWrap"> 
            <asp:Label ID="lblGender" runat="server" AssociatedControlID="rbtnMale" Font-Bold="True" Font-Size="X-Small">Gender *          </asp:Label>&nbsp;
     </td>
     
     <td style="width: 60%; height: 33px;" align="left" bordercolor="#f6cccc">
         &nbsp;<asp:RadioButton ID="rbtnMale" runat="server" GroupName="GrpGender" Text="Male" Width="66px" Checked="True" Font-Size="X-Small" Font-Bold="True" />
            <asp:RadioButton ID="rbnFemale" runat="server" GroupName="GrpGender" Text="Female" Width="76px" Font-Size="X-Small" Font-Bold="True" /></td>
</tr>
    <tr>
        <td align="right" height="35" nowrap="nowrap" style="width: 97%">
            <asp:Label ID="lblDOB" runat="server" Font-Bold="True" Font-Size="X-Small">Date of Birth *          </asp:Label>
            &nbsp;
        
        </td>
        <td align="left" bordercolor="#f6cccc" height="35" style="width: 60%">
            &nbsp;
            <cc1:datepicker ID="Datepicker" runat="server" Font-Bold="True" Font-Size="X-Small" />
          
        </td>
    </tr>
    
<tr>
     <td style="width: 97%; height: 35px;" align="right" nowrap="noWrap"> 
     <asp:Image ID="imgFlagRegister" runat="server" Height="12px" Width="23px" />
         <asp:Label ID="lblCountryRegister" runat="server" AssociatedControlID="ddlCountryRegister" Font-Bold="True" Font-Size="X-Small">Country *       </asp:Label>
         &nbsp;<br />
         <ajaxToolkit:CascadingDropDown ID="cddCountryRegister" runat="server"
                TargetControlID="ddlCountryRegister" BehaviorID="myCDECountryRegister"
                Category="Country"
                PromptText="Choose a Country"
                LoadingText="[Loading Countries...]"
                ServicePath="../LocationService.asmx"
                ServiceMethod="GetCountries" Enabled="True" />
                
     </td>
     
     <td style="width: 60%; height: 35px;" align="left" bordercolor="#f6cccc">
         &nbsp;<asp:DropDownList style="position: static" Font-Size="X-Small" Font-Bold="True" Width="180px" ID="ddlCountryRegister" runat="server"></asp:DropDownList></td>
</tr>
       
<tr>
     <td style="width: 97%;" align="right" height="35" nowrap="noWrap"> 
         <asp:Label ID="lblRegion" runat="server" AssociatedControlID="ddlRegion" Font-Bold="True" Font-Size="X-Small">State/Province *</asp:Label>
         &nbsp;<ajaxToolkit:CascadingDropDown ID="cddRegion" runat="server"
                TargetControlID="ddlRegion"
                ParentControlID="ddlCountryRegister" 
                Category="Region"
                PromptText="Choose a Province/State"
                LoadingText="Loading Provinces/States..."
                ServicePath="../LocationService.asmx"
                ServiceMethod="GetRegionsForCountry" />
      </td>
           
      <td style="width: 60%;" align="left" bordercolor="#f6cccc" height="35">
          &nbsp;<asp:DropDownList style="position: static" Font-Size="X-Small" Font-Bold="True" Width="180px" ID="ddlRegion" runat="server"></asp:DropDownList></td>
</tr>
       
<tr>
      <td style="width: 97%;" align="right" height="38" nowrap="noWrap">
          <asp:Label ID="lblCity" runat="server" AssociatedControlID="ddlCity" Font-Bold="True" Font-Size="X-Small">City *</asp:Label>
          &nbsp;
          <br />
          <ajaxToolkit:CascadingDropDown ID="cddCity" runat="server"
                TargetControlId="ddlCity"
                ParentControlID="ddlRegion"  
                Category="City"
                PromptText="Choose a City"
                LoadingText="Loading Cities..."
                ServicePath="../LocationService.asmx"
                ServiceMethod="GetCityForRegionCountry" />
      </td>
      <td style="width: 60%;" align="left" bordercolor="#f6cccc" height="35">
          &nbsp;<asp:DropDownList style="position: static" Font-Size="X-Small" Font-Bold="True" Width="180px" ID="ddlCity" runat="server"></asp:DropDownList></td>
</tr>
 
<tr>
       <td style="width: 97%; height: 35px;" align="right" nowrap="noWrap">
                </td>
       <td style="width: 60%; height: 35px;" align="center" bordercolor="#f6cccc">
                <asp:ImageButton ID="imgRegister" runat="server" ImageUrl="~/images/RegisterNow.gif" Height="21px" Width="96px"  /></td>
</tr>
 
<tr>
       <td style="width: 97%;" align="right" height="35" nowrap="noWrap">
           &nbsp;</td>
       <td style="width: 60%" align="left" bordercolor="#f6cccc" height="35">
      
       </td>
</tr>
    
   
 </table>
 
 
</table>
 
                           
  </ContentTemplate>
</asp:UpdatePanel>
[+][-]08.18.2008 at 09:58AM PDT, ID: 22253518

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Asynchronous Javascript and XML (AJAX), Programming for ASP.NET
Sign Up Now!
Solution Provided By: davrob60
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628