Easy question when converting an application from a web to a WAP

I have a reigstration page. the textboxes and stuff are not seen in the codebhind.
What should I do to fix this?
mathieu_cuprykAsked:
Who is Participating?
 
abelCommented:
> This one I did not do, But this is longer than I thought.

maybe, but it is a sure way (almost, at least) to success. Esp. when you are not too well acquainted to everything Microsoft does under the hood, it is better to be safe then sorry... (imho)
0
 
käµfm³d 👽Commented:
Are the controls declared in the .aspx page as regular html controls or asp controls?

e.g.

HTML
<input type="text" blah blah />

ASP.NET
<asp:Label blah blah />
0
 
käµfm³d 👽Commented:
Forgot to mention that the ASP are the ones that will be accessible in the code-behind.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
mathieu_cuprykAuthor Commented:
they are not in the designer page?
0
 
abelCommented:
I'm afraid I miss your point here. You say WAP but then you say "code behind"? What language are you using, C#.NET/VB.NET? Do you mean that if you add a

<asp:TextBox ID="TextBox1" />

that you do not see it in the code behind when you click

TextBox1.

expecting to see a dropdown with possibilities?

You need runat="server":

<asp:TextBox ID="TextBox1" runat="server" />

if that still doesn't help (likely in C# cases) then you need to rebuild your application (Build --> clean / Build --> Rebuild and possibly Run. After that (with me at least), the intellisense works again.
0
 
abelCommented:
> they are not in the designer page?

now you got me lost, again... Can you show the aspx data and the aspx.cs/vb data please?
0
 
mathieu_cuprykAuthor Commented:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="uxRegister.ascx.cs" Inherits="OmegaLove.Web.UI.uxRegister" %>
<%@ Register Assembly="DateDLL" Namespace="DateDLL" TagPrefix="cc1" %>
<%@ Register Assembly="ClassLibrary" Namespace="ClassLibrary" TagPrefix="cc3"%>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"  TagPrefix="ajaxToolkit" %>  

<script language="javaScript" type="text/javascript">

    function adjustDay(mmId, ddId, yyId) {
        var mm = document.getElementById(mmId);
        var dd = document.getElementById(ddId);
        var yy = document.getElementById(yyId);
 
        if (mm == null || dd == null || yy == null) return;
 
    switch (mm.selectedIndex + 1)
    {
        case 4:
        case 6:
        case 9:
        case 11:
            ddval = dd.selectedIndex;
            if (ddval > 29) dd.selectedIndex = 29; // one less
            break;
        case 2:
            yyval = yy.options[yy.selectedIndex].value;
            ddval = dd.selectedIndex;
 
            if (ddval >= 27)
                dd.selectedIndex = (((yyval % 4 == 0) && (yyval % 100 != 0)) || (yyval % 400 == 0)) ? 28 : 27;
            break;
    }
 
}
</script>

<div class="cc-txt">      
 <b>Note: Your UserName is used to identify you on the site.</b>
                        <ul>
                             <li>Your real name and e-mail address are kept 100% private.</li>
                             <li>You can even exchange messages with other members through the web site, without revealing your true e-mail address.</li>
                             <li>You decide, on your own terms, when to provide your contact information to another member.</li>
                              </ul>
         <p>Required fields are designated with a star (<img height="14" alt="" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />).</p>


        
  <table width="98%" cellpadding="3" cellspacing="3">
                  <tr>
                        <td bgcolor="#ebeff2">
                        
                    <table class="physicalBox" width="100%" border="0" cellpadding="3" cellspacing="3">
                   
                                              <tr>
                                                      <td class="physicalLightBox">
                                                      <div class="label">
                                                            <img alt="" height="14" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />&nbsp;UserName :
                                                            </div>
                                                      </td>
                                                      
                                                      <td class="physicalLightBox">
                                                            &nbsp;<asp:TextBox ID="txtUserName" MaxLength="10" runat="server" BorderColor="DarkGray" CssClass="textBox" />
                   <asp:RequiredFieldValidator ID="RFVtxtUserName" runat="server" ControlToValidate="txtUserName"
                Font-Size="X-Small" SetFocusOnError="true" ErrorMessage="<b>Required Field Missing.</b><br />UserName is required." Display="None"></asp:RequiredFieldValidator>
                 
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="RFVtxtUserNameE" TargetControlID="RFVtxtUserName" HighlightCssClass="validatorCalloutHighlight" />    
       
        <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server"
            TargetControlID="RFVtxtUserName">
        </ajaxToolkit:ValidatorCalloutExtender>
       
            <asp:RegularExpressionValidator ID="REVtxtUserName" runat="server" ControlToValidate="txtUserName" Font-Size="X-Small" SetFocusOnError="true" ValidationExpression="\w{6,}" ErrorMessage="<b>UserName must be at least 6-10 characters long.</b><br />" Display="None"></asp:RegularExpressionValidator>
                 
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="REVtxtUserNameE" TargetControlID="REVtxtUserName" HighlightCssClass="validatorCalloutHighlight" />
               
         <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server"
            TargetControlID="REVtxtUserName">
        </ajaxToolkit:ValidatorCalloutExtender>

                                                   </td>
                                                </tr>      

usual u would see
        /// <summary>
        /// lblCopyright control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.Label lblCopyright;
in the ascx,cs designer
0
 
abelCommented:
> usual u would see
> in the ascx,cs designer

ok, so you are using c#. But what do you see now in the designer, and how have you opened it?

The code you showed is not complete and cannot possibly be a valid page in ASP.NET. Is it possible that the page got crippled and that that's the reason that you do not see anything in the designer?
0
 
mathieu_cuprykAuthor Commented:
I will post the whol thing

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="uxRegister.ascx.cs" Inherits="OmegaLove.Web.UI.uxRegister" %>
<%@ Register Assembly="DateDLL" Namespace="DateDLL" TagPrefix="cc1" %>
<%@ Register Assembly="ClassLibrary" Namespace="ClassLibrary" TagPrefix="cc3"%>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"  TagPrefix="ajaxToolkit" %>  
 
<script language="javaScript" type="text/javascript">
 
    function adjustDay(mmId, ddId, yyId) {
        var mm = document.getElementById(mmId);
        var dd = document.getElementById(ddId);
        var yy = document.getElementById(yyId);
 
        if (mm == null || dd == null || yy == null) return;
 
    switch (mm.selectedIndex + 1)
    {
        case 4:
        case 6:
        case 9:
        case 11:
            ddval = dd.selectedIndex;
            if (ddval > 29) dd.selectedIndex = 29; // one less
            break;
        case 2:
            yyval = yy.options[yy.selectedIndex].value;
            ddval = dd.selectedIndex;
 
            if (ddval >= 27)
                dd.selectedIndex = (((yyval % 4 == 0) && (yyval % 100 != 0)) || (yyval % 400 == 0)) ? 28 : 27;
            break;
    }
 
}
</script>
 
<div class="cc-txt">	
 <b>Note: Your UserName is used to identify you on the site.</b>
                        <ul>
                             <li>Your real name and e-mail address are kept 100% private.</li>
                             <li>You can even exchange messages with other members through the web site, without revealing your true e-mail address.</li>
                             <li>You decide, on your own terms, when to provide your contact information to another member.</li>
			            </ul>
         <p>Required fields are designated with a star (<img height="14" alt="" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />).</p>
 
 
	   
  <table width="98%" cellpadding="3" cellspacing="3">
			<tr>
				<td bgcolor="#ebeff2">
				
                    <table class="physicalBox" width="100%" border="0" cellpadding="3" cellspacing="3">
                    
							    <tr>
									<td class="physicalLightBox">
									<div class="label">
										<img alt="" height="14" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />&nbsp;UserName :
										</div>
									</td>
									
									<td class="physicalLightBox">
								            &nbsp;<asp:TextBox ID="txtUserName" MaxLength="10" runat="server" BorderColor="DarkGray" CssClass="textBox" />
                   <asp:RequiredFieldValidator ID="RFVtxtUserName" runat="server" ControlToValidate="txtUserName"
                Font-Size="X-Small" SetFocusOnError="true" ErrorMessage="<b>Required Field Missing.</b><br />UserName is required." Display="None"></asp:RequiredFieldValidator>
                  
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="RFVtxtUserNameE" TargetControlID="RFVtxtUserName" HighlightCssClass="validatorCalloutHighlight" />    
        
        <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server"
            TargetControlID="RFVtxtUserName">
        </ajaxToolkit:ValidatorCalloutExtender>
        
            <asp:RegularExpressionValidator ID="REVtxtUserName" runat="server" ControlToValidate="txtUserName" Font-Size="X-Small" SetFocusOnError="true" ValidationExpression="\w{6,}" ErrorMessage="<b>UserName must be at least 6-10 characters long.</b><br />" Display="None"></asp:RegularExpressionValidator>
                  
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="REVtxtUserNameE" TargetControlID="REVtxtUserName" HighlightCssClass="validatorCalloutHighlight" />
               
         <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server"
            TargetControlID="REVtxtUserName">
        </ajaxToolkit:ValidatorCalloutExtender>
 
								   </td>
								</tr>	
								
							
								
							
							
							 <tr>
									<td class="physicalLightBox">
									<div class="label">
										<img alt="" height="14" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />&nbsp;Password :
										</div>
									</td>
									
									<td class="physicalLightBox">
								            &nbsp;<asp:TextBox ID="txtPassword" MaxLength="12" runat="server"  TextMode="Password" BorderColor="DarkGray" CssClass="textBox" />
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPassword"
                Font-Size="X-Small" SetFocusOnError="true" ErrorMessage="<b>Required Field Missing.</b><br />Password is required." Display="None"></asp:RequiredFieldValidator>
                  
        <asp:RequiredFieldValidator ID="RFVtxtPassword" runat="server" ControlToValidate="txtPassword" Font-Size="X-Small" SetFocusOnError="true" ErrorMessage="<b>Required Field Missing.</b><br />Password is required." Display="None"></asp:RequiredFieldValidator>
              <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="RFVtxtPasswordE" TargetControlID="RFVtxtPassword" HighlightCssClass="validatorCalloutHighlight" />
        
        <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server"
            TargetControlID="RFVtxtPassword">
        </ajaxToolkit:ValidatorCalloutExtender>
       
            <asp:RegularExpressionValidator ID="REVtxtPassword" runat="server" ControlToValidate="txtPassword" Font-Size="X-Small" SetFocusOnError="true" ValidationExpression="\w{6,}" ErrorMessage="<b>Password must be at least 6-12 characters long.</b><br />" Display="None"></asp:RegularExpressionValidator>
              <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="REVtxtPasswordE" TargetControlID="REVtxtPassword" HighlightCssClass="validatorCalloutHighlight" />
       
        <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="server"
            TargetControlID="REVtxtPassword">
        </ajaxToolkit:ValidatorCalloutExtender>
 
								   </td>
								</tr>	
								
							
							
							
							
							 <tr>
									<td class="physicalLightBox">
									<div class="label">
										<img alt="" height="14" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />&nbsp;Verify Password :
										</div>
									</td>
									
									<td class="physicalLightBox">
								            &nbsp;<asp:TextBox ID="txtPassword2" MaxLength="12" runat="server" TextMode="Password" BorderColor="DarkGray" CssClass="textBox" />
                 <asp:RequiredFieldValidator ID="RFVtxtPassword2" runat="server" ControlToValidate="txtPassword2" Font-Size="X-Small" SetFocusOnError="true" ErrorMessage="<b>Required Field Missing.</b><br />Verify Password required." Display="None"></asp:RequiredFieldValidator>
            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="RFVtxtPassword2E" TargetControlID="RFVtxtPassword2" HighlightCssClass="validatorCalloutHighlight" />
        
        
        <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender10" runat="server"
            TargetControlID="RFVtxtPassword2">
        </ajaxToolkit:ValidatorCalloutExtender>
        
            <asp:RegularExpressionValidator ID="REVtxtPassword2" runat="server" ControlToValidate="txtPassword2" Font-Size="X-Small" SetFocusOnError="true" ValidationExpression="\w{6,}" ErrorMessage="<b>Verify Password must be at least 6-12 characters long.</b><br />" Display="None"></asp:RegularExpressionValidator>
        
          <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender12" runat="server"
            TargetControlID="REVtxtPassword2">
        </ajaxToolkit:ValidatorCalloutExtender>
        
        
            <asp:CompareValidator ID="CVtxtPassword" runat="server" Type="String" Operator="Equal" ControlToCompare="txtPassword" SetFocusOnError="true" ControlToValidate="txtPassword2" ErrorMessage="<b>Password and Verify Password must match." Font-Size="X-Small" Width="235px" Display="None"></asp:CompareValidator> 
            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="CVtxtPasswordE" TargetControlID="CVtxtPassword" HighlightCssClass="validatorCalloutHighlight" />
                
        
        <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender13" runat="server"
            TargetControlID="CVtxtPassword">
        </ajaxToolkit:ValidatorCalloutExtender>
 
								   </td>
								</tr>	
								
							
								
									<tr>
									<td class="physicalLightBox">
									<div class="label">
										<img alt="" height="14" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />&nbsp;Email Address :
										</div>
									</td>
									
									<td class="physicalLightBox">
								            &nbsp;<asp:TextBox ID="txtMailFrom" MaxLength="255" runat="server" BorderColor="DarkGray" CssClass="textBox" />
                  <asp:RequiredFieldValidator ID="RFVtxtMailFrom" Font-Size="X-Small" SetFocusOnError="true" ControlToValidate="txtMailFrom" ErrorMessage="<b>Required Field Missing.</b><br />Email is required." runat="server" Display="None" /> 
                <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="RFVtxtMailFromE" TargetControlID="RFVtxtMailFrom"  HighlightCssClass="validatorCalloutHighlight" />                                                
                <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server"
                            TargetControlID="RFVtxtMailFrom">
                </ajaxToolkit:ValidatorCalloutExtender>           
                <asp:RegularExpressionValidator ID="REVtxtMailFrom" ControlToValidate="txtMailFrom" Font-Size="X-Small" SetFocusOnError="true" ErrorMessage="<b>This appears to be not a valid email address.</b><br />Please enter in the format:<br />youremail@domain.com"
                 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" Display="None" /> 
                  <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="REVtxtMailFromE" TargetControlID="REVtxtMailFrom"  HighlightCssClass="validatorCalloutHighlight" />                                       
                <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" TargetControlID="REVtxtMailFrom">
                </ajaxToolkit:ValidatorCalloutExtender> 
                              
								   </td>
								</tr>	
								
								<tr>
									<td class="physicalLightBox">
									<div class="label">
										<img alt="" height="14" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />&nbsp;First Name :
										</div>
									</td>
									
									<td class="physicalLightBox">
								            &nbsp;<asp:TextBox ID="txtFirstName" MaxLength="255" runat="server" BorderColor="DarkGray" CssClass="textBox" />
                    
                    <asp:RequiredFieldValidator ID="RFVtxtFirstName" runat="server"  ControlToValidate="txtFirstName" ErrorMessage="<b>Required Field Missing.</b><br />First Name is required." Font-Size="X-Small" SetFocusOnError="true" Display="None"></asp:RequiredFieldValidator>
                    <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="RFVtxtFirstNameE" TargetControlID="RFVtxtFirstName" HighlightCssClass="validatorCalloutHighlight" />    
                 
                    <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" TargetControlID="RFVtxtFirstName"></ajaxToolkit:ValidatorCalloutExtender>
                     <asp:RegularExpressionValidator ID="REVtxtFirstName" runat="server" ControlToValidate="txtFirstName" Font-Size="X-Small" SetFocusOnError="true" ValidationExpression="^[a-zA-Z]{1}[a-zA-Z]{1,74}$"
                     ErrorMessage="<b>A valid First Name name is required,</b><br />Please type between 2 to 75 letters<br />(avoid special characters and digits)" Display="None"></asp:RegularExpressionValidator>
                    <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="REVtxtFirstNameE" TargetControlID="REVtxtFirstName" HighlightCssClass="validatorCalloutHighlight" />
                     <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender11" runat="server" TargetControlID="REVtxtFirstName"></ajaxToolkit:ValidatorCalloutExtender>
   
 
								   </td>
								</tr>	
								
								
 
				
								 <tr>
									<td class="physicalLightBox">
									<div class="label">
										<img alt="" height="14" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />&nbsp;Last Name :
										</div>
									</td>
									
									<td class="physicalLightBox">
								            &nbsp;<asp:TextBox ID="txtLastName" MaxLength="255" runat="server" BorderColor="DarkGray" CssClass="textBox" />
                  <asp:RequiredFieldValidator ID="RFVtxtLastName" runat="server"  ControlToValidate="txtLastName" ErrorMessage="<b>Required Field Missing.</b><br />Last Name is required." Font-Size="X-Small" SetFocusOnError="true" Display="None"></asp:RequiredFieldValidator>
                  <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="RFVtxtLastNameE" TargetControlID="RFVtxtLastName" HighlightCssClass="validatorCalloutHighlight" />    
                  <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" TargetControlID="RFVtxtLastName"></ajaxToolkit:ValidatorCalloutExtender>
                  <asp:RegularExpressionValidator ID="REVtxtLastName" runat="server" ControlToValidate="txtLastName" Font-Size="X-Small" SetFocusOnError="true" ValidationExpression="^[a-zA-Z]{1}[a-zA-Z]{1,74}$" ErrorMessage="<b>A valid Last Name name is required,</b><br />Please type between 2 to 75 letters<br />(avoid special characters and digits)" Display="None"></asp:RegularExpressionValidator>
                  <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="REVtxtLastNameE" TargetControlID="REVtxtLastName" HighlightCssClass="validatorCalloutHighlight" />
                  <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender18" runat="server" TargetControlID="REVtxtLastName"></ajaxToolkit:ValidatorCalloutExtender>
           
                                                
                                                
								   </td>
								</tr>	
								
	
								<tr>
									<td class="physicalLightBox">
									<div class="label">
										<img alt="" height="14" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />&nbsp;Date of Birth :
										</div>
									</td>
									
									<td class="physicalLightBox">&nbsp;<cc1:DateDDL ID="DateDDL1" runat="server" 
                                            ondatechanged="DateDDL_DateChanged" Font-Bold="True" />
									  </td>
								</tr>
									
								
								
								<tr>
									<td class="physicalLightBox">
									<div class="label">
										<img alt="" height="14" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />&nbsp;I am a :
										</div>
									</td>
									
									<td class="physicalLightBox">&nbsp;<asp:DropDownList style="position: static" ForeColor="Black" CssClass="searchinput" ID="ddlGender" runat="server">
                                        </asp:DropDownList>
                                      
                                      </td>
								</tr>
									
	
								<tr>
									<td class="physicalLightBox">
									<div class="label">
										<img alt="" height="14" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />&nbsp;Looking for a :
										</div>
									</td>
									
									<td class="physicalLightBox">&nbsp;<asp:DropDownList style="position: static" ForeColor="Black" CssClass="searchinput" ID="ddlSeeking" runat="server">
                                        </asp:DropDownList>
                                      
                                      </td>
								</tr>
							
 
								<tr>
									<td class="physicalLightBox">
									<div class="label">
										<img alt="" height="14" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />&nbsp;Country :
										</div>
									</td>
									
									<td class="physicalLightBox">&nbsp;<asp:DropDownList style="position: static" Width="180px" ID="ddlCountryRegister" 
                                            runat="server" ForeColor="Black" CssClass="searchinput"></asp:DropDownList>
                                      <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" />
                                        <asp:Image ID="imgFlagRegister" runat="server" Height="12px" Width="23px" ImageAlign="AbsMiddle" />
                                      
                                    </td>
							  </tr>
							
							
							  <tr>
									<td class="physicalLightBox">
									<div class="label">
										<img alt="" height="14" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />&nbsp;State/Province :
										</div>
									</td>
									
									<td class="physicalLightBox">&nbsp;<asp:DropDownList style="position: static" Width="180px" ID="ddlRegion" 
                                            runat="server" ForeColor="Black" CssClass="searchinput"></asp:DropDownList>
                                            <ajaxToolkit:CascadingDropDown
                                                ID="cddRegion" 
                                                runat="server"
                                                TargetControlID="ddlRegion"
                                                ParentControlID="ddlCountryRegister" 
                                                Category="Region"
                                                LoadingText="Loading Provinces/States..."
                                                ServicePath="../LocationService.asmx"
                                                ServiceMethod="GetRegionsForCountry" />          
                                    </td>
							  </tr>
							  
							  
							  <tr>
									<td class="physicalLightBox">
									<div class="label">
										<img alt="" height="14" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />&nbsp;City :
										</div>
									</td>
									
									<td class="physicalLightBox">&nbsp;<asp:DropDownList style="position: static" Width="180px" ID="ddlCity" 
                                            runat="server" ForeColor="Black" CssClass="searchinput"></asp:DropDownList>                      
                                        <ajaxToolkit:CascadingDropDown 
                                        ID="cddCity" 
                                        runat="server"
                                        TargetControlId="ddlCity"
                                        ParentControlID="ddlRegion"  
                                        Category="City"
                                        LoadingText="Loading Cities..."         
                                        ServicePath="../LocationService.asmx"
                                        ServiceMethod="GetCityForRegionCountry" />
                                    </td>
							  </tr>
  
							  <tr>
									<td class="physicalLightBox">
									<div class="label">
										<img alt="" height="14" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />&nbsp;Zip/Postal Code :
										</div>
									</td>
									
									<td class="physicalLightBox">&nbsp;<asp:TextBox ID="txtZipCode" MaxLength="50" runat="server" BorderColor="DarkGray" CssClass="textBox" />                                     
									<asp:RequiredFieldValidator ID="RFVtxtZipCode" Font-Size="X-Small" SetFocusOnError="true" ControlToValidate="txtZipCode" ErrorMessage="<b>Required Field Missing.</b><br />Zip/Postal code is required." runat="server" Display="None" /> 
                                    <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="RFVtxtZipCodeE" TargetControlID="RFVtxtZipCode"  HighlightCssClass="validatorCalloutHighlight" />                                       
                                    <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender15" runat="server" TargetControlID="REVtxtZipCode" />
                                    <asp:RegularExpressionValidator ID="REVtxtZipCode" ControlToValidate="txtZipCode" Font-Size="X-Small" 
                                            SetFocusOnError="true" 
                                            ErrorMessage="<b>This appears to be not a valid zip/postal code.</b><br />Please enter in your zip/postal code in the correct format:" 
                                            ValidationExpression="^[a-zA-Z]{1}[0-9]{1}[a-zA-Z]{1}(\-| |){1}[0-9]{1}[a-zA-Z]{1}[0-9]{1}$" 
                                            runat="server" Display="None" /> 
 
                                    </td>
							  </tr>
							 
							   <tr>
									<td class="physicalLightBox">
									<div class="label">
										<img alt="" height="14" src="<%=Page.ResolveUrl("~/Images/starsmallfull.gif")%>" width="15" />&nbsp;Access Code :
										</div>
									</td>
									
									<td class="physicalLightBox">&nbsp;<img alt="" src="<%=Page.ResolveUrl("~/JpegImage.aspx")%>" class="captha" /><br />
                                    &nbsp;<asp:TextBox ID="CaptchaTextBox" runat="server" BorderColor="DarkGray" CssClass="textBox"></asp:TextBox>
							  
							        </td>
								</tr>
	
                      </table>
            <div align="center">
             <br />                          
             <asp:CheckBox ID="CheckBox1" runat="server"/>&nbsp;I aggree to OmegaLove.com's&nbsp;<a href="<%=Page.ResolveUrl("~/Terms.aspx")%>">Terms of Service</a> and 
                            <a href="<%=Page.ResolveUrl("~/Privacy.aspx")%>">Privacy Policy</a>
                            <br />I also certify that I am 18+ years or older.<br />
        <cc3:CheckBoxValidator ID="chkValidator1" runat="server"
             MustBeChecked="true" ControlToValidate="CheckBox1" Display="Dynamic"
             EnableClientScript="true" ErrorMessage="Please accept the terms and policy" />
              <br />           
                 <asp:Button CssClass="button-register" ID="imgRegister" runat="server" Text="Get Started" Enabled="True"
                  Font-Bold="True" onclick="imgRegister_Click" />
                    <br />
 
         </div>
       	</td>
	</tr>
</table>
 </div>
<script language="javascript" type="text/javascript">
 
    Sys.Application.add_load(page_load);
    Sys.Application.add_unload(page_unload);
 
    function page_load(sender, e) {
        $find("myCDECountryRegister").add_selectionChanged(Register_SelectedIndexChangedCountry);
    }
 
    function page_unload(sender, e) {
    }
 
 
    function Register_SelectedIndexChangedCountry() {
        //change the images based on the selected value.
        var countryDropdown = $get('<%=ddlCountryRegister.ClientID%>');
        $get("<%=imgFlagRegister.ClientID%>").src = "./images/flags/" + countryDropdown.value + ".gif";
    }
 
    function getDropDownListvalue() {
        var IndexValue = $get('<%=ddlRegion.ClientID%>').selectedIndex;
        var SelectedVal = $get('<%=ddlRegion.ClientID%>').options[IndexValue].value;
        alert(SelectedVal);
    }   
 
            
 
</script>

Open in new window

0
 
abelCommented:
thx. Now back to your question: what do you not see that you do want to see and where? Please be specific so that we can help you, as there are now to many possibilities and guessing is not going to help either.
0
 
mathieu_cuprykAuthor Commented:
I have all these errors and when I look in the axcs.designer.cs of the file there is nothing defined.
Error      88      The name 'cddCountryRegister' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      32      17      OmegaLove.Web
Error      89      The name 'imgFlagRegister' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      33      17      OmegaLove.Web
Error      90      The name 'cddCountryRegister' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      33      64      OmegaLove.Web
Error      91      The name 'CaptchaTextBox' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      42      18      OmegaLove.Web
Error      92      The name 'txtUserName' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      47      65      OmegaLove.Web
Error      93      The name 'txtPassword' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      47      83      OmegaLove.Web
Error      94      The name 'txtMailFrom' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      47      101      OmegaLove.Web
Error      95      The type or namespace name 'ProfileCommon' could not be found (are you missing a using directive or an assembly reference?)      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      51      25      OmegaLove.Web
Error      96      The name 'Profile' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      51      44      OmegaLove.Web
Error      97      The name 'txtUserName' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      54      48      OmegaLove.Web
Error      98      The name 'txtPassword' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      55      48      OmegaLove.Web
Error      99      The name 'txtMailFrom' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      56      45      OmegaLove.Web
Error      100      The name 'txtFirstName' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      57      49      OmegaLove.Web
Error      101      The name 'txtLastName' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      58      48      OmegaLove.Web
Error      102      An object reference is required for the non-static field, method, or property 'DateDLL.DateDDL.Date.get'      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      59      62      OmegaLove.Web
Error      103      An object reference is required for the non-static field, method, or property 'DateDLL.DateDDL.Date.get'      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      60      50      OmegaLove.Web
Error      104      The name 'ddlGender' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      61      46      OmegaLove.Web
Error      105      The name 'ddlSeeking' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      62      47      OmegaLove.Web
Error      106      The name 'ddlCountryRegister' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      67      46      OmegaLove.Web
Error      107      The name 'ddlRegion' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      68      45      OmegaLove.Web
Error      108      The name 'ddlCity' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      69      43      OmegaLove.Web
Error      109      The name 'txtZipCode' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      70      46      OmegaLove.Web
Error      110      The name 'txtUserName' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      75      35      OmegaLove.Web
Error      111      The name 'txtFirstName' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      78      57      OmegaLove.Web
Error      112      The name 'txtUserName' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      80      61      OmegaLove.Web
Error      113      The name 'txtPassword' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      81      56      OmegaLove.Web
Error      114      The name 'SMTPManager' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      82      25      OmegaLove.Web
Error      115      The name 'txtMailFrom' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      82      87      OmegaLove.Web
Error      116      The name 'CaptchaTextBox' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      120      17      OmegaLove.Web
Error      117      The name 'ddlGender' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      157      13      OmegaLove.Web
Error      118      The name 'ddlGender' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      158      13      OmegaLove.Web
Error      119      The name 'ddlGender' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      159      13      OmegaLove.Web
Error      120      The name 'ddlGender' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      160      13      OmegaLove.Web
Error      121      The name 'ddlSeeking' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      162      13      OmegaLove.Web
Error      122      The name 'ddlSeeking' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      163      13      OmegaLove.Web
Error      123      The name 'ddlSeeking' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      164      13      OmegaLove.Web
Error      124      The name 'ddlSeeking' does not exist in the current context      C:\inetpub\wwwroot\OmegaLove\OmegaLove.Web\Controls\uxRegister.ascx.cs      165      13      OmegaLove.Web
0
 
mathieu_cuprykAuthor Commented:
U see when I created the WAP I just recreated the file and copied and pasted the contents.
So do I have to define these variables.
0
 
abelCommented:
If you look in the designer, you will not get much wiser, you need to be in the code behind. This type of errors can occur if you have a mismatching accolade somewhere. Possibly even in another library or class that you are linking into. Your best bet is to clean the whole solution and compile each project one by one (the same way I told you earlier for this project, what was the result of that, btw?).

If you doubleclick the first error after first cleaning and rebuilding everything, it should be either apparent or totally puzzling. But please first try that and then we take it from there.
0
 
abelCommented:
> U see when I created the WAP I just recreated the file and copied and pasted the contents.

aha, there you go, now you're talking!

That is a good place to start getting problems... A file in ASPX is defined as three files (for C#). The designer, which you mentioned, but you shouldn't touch that, the code behind, very important, and the aspx or ascx.cs files.

It's usually better to just copy all the three files that belong together and try to run them with their original name. Then rename them and also rename the filenames, referrers and classnames (incl. partial classes). That way you should get somewhere.
0
 
mathieu_cuprykAuthor Commented:
Still not working.
Shit.
0
 
mathieu_cuprykAuthor Commented:
Now I have to declare everything
namespace OmegaLove.Web.UI
{


    public partial class uxRegister
    {
        /// <summary>
        /// lblCopyright control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.TextBox CaptchaTextBox;
    }

}

0
 
abelCommented:
what have you tried? Please enlighten me...

If you created a new project to be your WAP site and you want it to be a slimmed down version of your whole site, then copy everything, including project files, to a new directory and rename the project (from within VS!).

Then, still from within VS, remove all the project files and directories you are not needing, until you are left with the view pages and controls that you think you are going to need. From each step into the next step, compile the project to find out whether you introduced new errors by removing the wrong things.

Unless you are very aware of what you are doing, it is a bad idea to create the designer.cs files by hand, it is likely not going to work...
0
 
abelCommented:
> Now I have to declare everything

no, you don't, you just need to make sure you copy your things in the right way... See my last comment.
0
 
mathieu_cuprykAuthor Commented:
If you created a new project to be your WAP site and you want it to be a slimmed down version of your whole site, then copy everything, including project files, to a new directory and rename the project (from within VS!).

Then, still from within VS, remove all the project files and directories you are not needing, until you are left with the view pages and controls that you think you are going to need. From each step into the next step, compile the project to find out whether you introduced new errors by removing the wrong things.

This one I did not do, But this is longer than I thought.

If you created a new project to be your WAP site and you want it to be a slimmed down version of your whole site, then copy everything, including project files, to a new directory and rename the project (from within VS!).
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.