[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Calendar postback - stay in the same place

Posted on 2010-03-26
13
Medium Priority
?
1,390 Views
Last Modified: 2012-05-09
I have a Telerik Calendar, wrapped in an UpdatePanel. I click on calendar, choose a data, the date-box gets populated. All is fine. A postback is done..page goes to top of the page, then goes back down to where the Calendar is...

it's like there's a pause, page goes to the top, then positions correctly where the Calendar is. I want the page to move up or move at all..

Why is this happening? I dont have to use a Rad Calendar, i can use something else if Rad Calendar is causing this behavior...

<li>
                  <label class="LABEL"  for="month">Available to Start:</label> 
                  <asp:UpdatePanel runat="server">
                    <ContentTemplate>
                    <telerik:RadDatePicker ID="rdStartDate" runat="server" width="110px">
                        <DateInput Skin=""   AutoPostBack="true" InvalidStyleDuration="100"  />
                    </telerik:RadDatePicker>
                  </ContentTemplate>
                  </asp:UpdatePanel>  
                  </li>

Open in new window

0
Comment
Question by:Camillia
  • 7
  • 6
13 Comments
 
LVL 19

Expert Comment

by:daveamour
ID: 28757164
With an update panel you shouldn't get page movement - there must be some client side code (eg javascript) causing this - view the source of the page and see if you can see anything.
0
 
LVL 7

Author Comment

by:Camillia
ID: 28762805
I do have a javascript on the page but that javascript is to hide/display a div in another section of the page. I'm wondering if that Telerik calendar makes the page move but i dont think so...

what should i look for in view-source of the page?
0
 
LVL 19

Expert Comment

by:daveamour
ID: 28780221
Not sure - just a case of literally looking at all of the javascript and seeing if any of it looks suspicious.  You could post the entire source here maybe?
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
LVL 7

Author Comment

by:Camillia
ID: 28793638
i can post it , it's long, Is that ok?
0
 
LVL 19

Expert Comment

by:daveamour
ID: 28796615
Sure go for it
0
 
LVL 7

Author Comment

by:Camillia
ID: 28798126
If you do a search for "Available to Start", that's one Calendar section that I have wrapped in an UpdatePanel.

I have 3 user controls
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Careers.master" AutoEventWireup="true" CodeFile="JobApplication.aspx.cs" Inherits="Job_JobApplication" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%@ Register Src="~/Controls/ApplicantPreviousEmployer.ascx" TagName="PreviousEmployer" TagPrefix="NB"  %>
<%@ Register Src="~/Controls/ApplicantReferences.ascx" TagName="References" TagPrefix="NB" %>
<%@ Register Src="~/Controls/ApplicantEducation.ascx" TagName="Education" TagPrefix="NB" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HEADplaceholder" Runat="Server">
    
    <style type="text/css">
    
        #contentNAV #navOPENINGS a, #contentNAV #navOPENINGS a:hover { background: url(../images/nav_tab_on.gif) no-repeat right center; }
    
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentMAINplaceholder" Runat="Server">
  <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
 <ContentTemplate>--%>
    <script type="text/javascript" language="javascript">
        function showDiv(div) 
        {
           if (document.getElementById(div).style.display == 'none') 
           {
               document.getElementById(div).style.display = 'block';
           } 
           else 
           {
               document.getElementById(div).style.display = 'none';
           }
        }
    </script>   

    <asp:Repeater runat="server" ID="rpApplyJob" OnItemDataBound="rpApplyJob_OnItemDataBound"  >
           
         <HeaderTemplate>
         <h1><asp:Label runat="server" ID="lblJobOpenings" Text="Apply"></asp:Label></h1>
        
        </HeaderTemplate>
      
         
        
         <ItemTemplate>
         
         <asp:Label runat="server" ID="lblID"  Visible="false" Text='<%# DataBinder.Eval(Container.DataItem, "Id") %>'></asp:Label>
         
         <h2><asp:Label runat="server" ID="lblJobTitle" Text='<%# DataBinder.Eval(Container.DataItem, "title") %>'></asp:Label></h2><br />
                  
           
              <div class="floatRIGHT">
                <h5> Start Date: <asp:Label runat="server" ID="lblStartDate" Text='<%# DataBinder.Eval(Container.DataItem, "StartDate") %>'></asp:Label> </h5>
              </div>
              <h4><asp:Label runat="server" ID="lblDept" Text='<%# DataBinder.Eval(Container.DataItem, "Department") %>'></asp:Label> <br />
                <asp:Label runat="server" ID="lblCityState" Text='<%# DataBinder.Eval(Container.DataItem, "CityState") %>'></asp:Label></h4><br />
        </ItemTemplate>
    </asp:Repeater>
  

    <div>
    
       <asp:ValidationSummary ID="ValidationSummary1"
                    ShowMessageBox="false"
                    ShowSummary="true"
                    HeaderText="You must enter a value in the following fields:"
                    DisplayMode="BulletList" 
                    EnableClientScript="true"
                    runat="server"/>  
    
    </div> 
     
           <!-- Perosnal Info -->
    <div class="contentFORM">   <!-- main div -->
        
    <asp:Panel runat="server" ID="pnlPersonalInfo">
       
      <fieldset>
          <h3>Personal Information</h3>
          <div class="floatWRAPPER">
            <div class="contentCOLUMN">
              <ul>
                <li>
                  <label class="LABEL" for="first_name">*First Name:</label>
                  <asp:TextBox  runat="server" ID="txtFirst_name" CssClass="formFIELD" TabIndex ="1"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtFirst_Name" ErrorMessage="First Name" Text="*" runat="server"/>
                    
                  </li>
                <li>
                  <label class="LABEL" for="address_1">*Address 1:</label>
                  <asp:TextBox  runat="server" ID="txtAddress_1" CssClass="formFIELD" TabIndex ="3"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtAddress_1" ErrorMessage="Address1" Text="*" runat="server"/>
                    
                  </li>
                <li>
                  <label class="LABEL" for="city">*City:</label>
                  <asp:TextBox  runat="server" ID="txtCity" CssClass="formFIELD" TabIndex ="5"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="txtCity" ErrorMessage="City" Text="*" runat="server"/>
                    
                  </li>
                <li>
                  <label class="LABEL" for="email">*Email:</label>
                   <asp:TextBox  runat="server" ID="txtEmail" CssClass="formFIELD" TabIndex ="8"></asp:TextBox>
                   
                   <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server"  
                                        
                                    ErrorMessage="*" 
                                    ControlToValidate="txtEmail"     
                                    ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"/>
                                    
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="txtEmail" ErrorMessage="Email" Text="*" runat="server"/>
                    
                  
                  </li>
                <li>
                  <label class="LABEL" for="phone">*Primary Phone:</label>
                  <asp:TextBox  runat="server" ID="txtPhone" CssClass="formFIELD" TabIndex ="11"></asp:TextBox>
                  
                     <asp:RegularExpressionValidator ID="regexpName" runat="server"  
                                        
                                    ErrorMessage="*" 
                                    ControlToValidate="txtPhone"     
                                    ValidationExpression="^[01]?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[- .]?\d{3}[- .]?\d{4}$" />
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="txtPhone" ErrorMessage="Primary Phone" Text="*" runat="server"/>
                    
                  </li>
                <li>
                  <label class="LABEL"  for="month">Available to Start:</label> 
                  <asp:UpdatePanel runat="server">
                    <ContentTemplate>
                    <telerik:RadDatePicker ID="rdStartDate" runat="server" width="110px">
                        <DateInput Skin=""   AutoPostBack="true" InvalidStyleDuration="100"  />
                    </telerik:RadDatePicker>
                  </ContentTemplate>
                  </asp:UpdatePanel>  
                  </li>
                </ul>
              </div>
            <div class="contentCOLUMN">
              <ul>
                <li>
                  <label class="LABEL" for="last_name">*Last Name:</label>
                  <asp:TextBox  runat="server" ID="txtLast_Name" CssClass="formFIELD" TabIndex ="2"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ControlToValidate="txtLast_Name" ErrorMessage="Last Name" Text="*" runat="server"/>
                    
                  </li>
                <li>
                  <label class="LABEL" for="address_2">Address 2:</label>
                  <asp:TextBox  runat="server" ID="txtAddress_2" CssClass="formFIELD" TabIndex ="4"></asp:TextBox>
                   
                  
                  </li>
                <li>
                  <label class="LABEL" for="state">*State:</label>
                  <table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td align="left"  valign="middle">
                      <asp:DropDownList ID="ddlState" runat="server" TabIndex="6">
                        
                      </asp:DropDownList>
                       <asp:RequiredFieldValidator ID="RequiredFieldValidator7" ControlToValidate="ddlState" ErrorMessage="State" Text="*" runat="server"/>
                    
                     </td>
                      <td width="100%"   align="right" valign="middle">
                       <label  for="zip_code"   class="formLABELsmall">*Zip:</label>
                         <asp:TextBox  runat="server" ID="txtZipCode" CssClass="formFIELDsmall" TabIndex ="7"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator8" ControlToValidate="txtZipCode" ErrorMessage="Zip" Text="*" runat="server"/>
                    
                         </td>
                      </tr>
                    </table>
                  </li>
                <li>
                  <label class="LABEL" for="salary">Desired Salary:</label>
                  <table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="100%" align="left" valign="middle">$
                                             
                         <asp:TextBox  runat="server" ID="txtSalary" CssClass="formFIELDsmall" TabIndex ="9"></asp:TextBox>
                         <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server"     
                                    ErrorMessage="*" 
                                    ControlToValidate="txtSalary"     
                                    ValidationExpression="^\d+(\.\d)?$" />
                       
                        </td>
                      <td align="right" valign="middle">
                       <asp:DropDownList ID="ddlSalaryType" runat="server" TabIndex="9">
                       
                       </asp:DropDownList>
                      </td>
                      </tr>
                    </table>
                  </li>
                <li>
                  <label class="LABEL" for="phone2">Secondary  Phone:</label>
                 
                    <asp:TextBox  runat="server" ID="txtPhone2" CssClass="formFIELD" TabIndex ="12"></asp:TextBox>
                     <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"  
                                        
                                    ErrorMessage="*" 
                                    ControlToValidate="txtPhone2"     
                                    ValidationExpression="^[01]?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[- .]?\d{3}[- .]?\d{4}$" />
                  
                  
                  </li>
                <li>
                  <label class="LABEL">*Available Hours:</label>
                  
                  
                        <asp:RadioButtonList runat="server" CssClass="formLABELradio" DataValueField="Id" DataTextField="JobType" RepeatDirection="Horizontal" ID="rbType"  TextAlign="Left">
                        
                        </asp:RadioButtonList>
                        
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator9" ControlToValidate="rbType" ErrorMessage="Available Hours" Text="*" runat="server"/>
                    
                      <br />
                  </li>
                </ul>
              </div>
            <div class="clear"></div></div>
       </fieldset></asp:Panel> <!-- end of Personal Info -->  

    
   
     
     <asp:Panel runat="server" ID="pnlResume"> <!-- resume -->
     
      
     <fieldset>
      <h3>R&eacute;sum&eacute;</h3>
      
      <asp:UpdatePanel runat="server" >
        <Triggers>
             <asp:AsyncPostBackTrigger ControlID="rbLoadPasteResume" EventName="SelectedIndexChanged" /> 
          </Triggers>
        <triggers>
         <asp:PostbackTrigger controlid ="btnSubmitUpload" />
        </triggers>  
          
       <ContentTemplate>
       
      
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
          <td>
             <asp:RadioButtonList AutoPostBack="true"  runat="server" TextAlign="Right" RepeatDirection="Horizontal" OnSelectedIndexChanged="OnSelectedIndexChanged_rbLoadPasteResume"  ID="rbLoadPasteResume">
               <asp:ListItem Value="U" Text="Upload Resume"></asp:ListItem>
               <asp:ListItem Value="P" Text="Paste Resume"></asp:ListItem>
             </asp:RadioButtonList><br />
          </td>
           <td>
           <asp:RequiredFieldValidator ControlToValidate="rbLoadPasteResume" Text="*" ErrorMessage="Upload Or Paste Resume" ForeColor="Red" runat="server"></asp:RequiredFieldValidator>
          </td>
          <td></td>
          </tr>
          </table>
         
         
         <asp:Panel runat="server" Visible="false" ID="pnlUploadResume">
        <table>
          <tr>
            <td align="left" valign="middle"><label class="LABEL" for="resume_upload">Upload R&eacute;sum&eacute;:</label></td>
            <td align="left" valign="middle">
                 <telerik:RadUpload runat="server"  Skin="Vista"   MaxFileInputsCount="1" InitialFileInputsCount="1"
                     ControlObjectsVisibility="ClearButtons" AllowedFileExtensions=".doc,.docx,.pdf,.odt,.rtf" 
                     TargetFolder="~/hrtest" OverwriteExistingFiles="true"
                     TabIndex="16" ID="formUPLOAD"  ></telerik:RadUpload>
            
            </td>
            <td width="100%" align="left" valign="middle">
              
              <asp:Button id="btnSubmitUpload" runat="server"  CausesValidation="false" CssClass="formBTNglossy" text="Attach" 
              onclick="btnSubmitUpload_Click" />
            
              </td>
            </tr>
           </table>
           </asp:Panel>
        

     
        <asp:Panel runat="server" ID="pnlPasteResume" Visible="false">
        <p> 
         
              <label class="LABEL" for="resume_paste">
              Paste Résumé:</label> 
            
                 <telerik:RadEditor  EditModes="Design"  Height="300px"  ContentAreaCssFile="../Css/RadEditor.css"  Skin="Default2006" Width="489px"   runat="server" ID="rdResumePaste" TabIndex="17">
                   
                    <Tools>
                        <telerik:EditorToolGroup>
                           <telerik:EditorTool Name="ResetContent" ShowText="true"  ShowIcon="false" Text="Reset" />
                        </telerik:EditorToolGroup>
                        
                    </Tools>
                    
                     
                 </telerik:RadEditor>

                  
          
        </p>
        </asp:Panel>
        </ContentTemplate>
      </asp:UpdatePanel>
    </fieldset></asp:Panel>  
    
   


     <asp:Panel runat="server" ID="pnlEducation">
     
        <fieldset>
      <h3>Educational Information</h3>
      <table width="630" border="0" cellpadding="0" cellspacing="0" class="formTABLE">
        <tr>
          <td align="center" valign="bottom">&nbsp;</td>
          <td align="center" valign="bottom"><strong>High School</strong></td>
          <td align="center" valign="bottom"><strong>College</strong>
          
          </td>
          <td width="100%" align="center" valign="bottom"><strong>Bus./Tech./Trade<br>
            or Post Graduate</strong></td>
          </tr>
          <tr>
           <td><NB:Education runat="server" ID="ucEducation1" /></td>
           <td><NB:Education runat="server" LabelssEnabled="false" ID="ucEducation2" /></td>
           <td><NB:Education runat="server" LabelssEnabled="false" ID="ucEducation3" /></td>
            
            
          </tr>
       
        </table>
     </fieldset></asp:Panel>
     
     <asp:Panel runat="server" ID="pnlWork"> <!-- work exp 1-->
     
     <fieldset>
      <h3>Work Experience</h3> <!-- work exp -->
      <div class="floatWRAPPER">
          <NB:PreviousEmployer ValidatorsEnabled="true" ID ="ucEmployer1" runat="server" />
        <div class="clear"></div>
        </div>
      <hr />
      <div class="floatWRAPPER">
        <div class="floatLEFT">
         <img src="../Images/icon_plus.png" alt="" width="18" height="30" border="0" align="middle" />
         
          <span onclick="showDiv('pnlEmployer2')" style="cursor:hand;"  >Add Previous Employer </span>
          <!-- additional employer info -->
         <div class="floatWRAPPER"  style="display:none" id="pnlEmployer2">
               <NB:PreviousEmployer   ValidatorsEnabled="false" ID ="ucEmployer2" runat="server" />
               <br />
               <NB:PreviousEmployer ValidatorsEnabled="false" ID ="ucEmployer3" runat="server" />
      
        <%--<div class="clear"></div>--%>
        
        </div> <!--end of additional employer -->
         
        </div>
        <div class="clear"></div>
        
        
        </div>
    </fieldset>
    
    
    </asp:Panel>
     
     <asp:Panel runat="server" ID="pnlRef"> <!-- reference-->
      <fieldset>
      <h3>References</h3>
      
     
          <table  width="630" border="0" cellpadding="0" cellspacing="0" class="formTABLE">
            <tr>
             <td align="center" valign="bottom">&nbsp;</td>
             <td align="center" valign="bottom"><strong>Reference 1</strong>
             </td>
              <td align="center" valign="bottom"><strong>Reference 2</strong></td>
              <td width="100%" align="center" valign="bottom"><strong>Reference 3</strong></td>
            </tr>
            <tr>
              
              <td style="background-color:Blue">
                <NB:References runat="server" ID="ucReference1" />   
              </td>
              <td style="background-color:Red"><NB:References  LabelssEnabled="false" runat="server" ID="ucReference2" /> </td>
              <td  style="background-color:Yellow"><NB:References LabelssEnabled="false" runat="server" ID="ucReference3" /> </td>
            </tr>
          </table>
          
        
      
   
        <br />
  
        
     </fieldset>
     
     </asp:Panel>
     
     <asp:Panel runat="server" ID="pnlQuestions"> <!-- employment question section -->
     
     <fieldset>
      <h3>*Employment Questions</h3>
      
      <asp:Repeater runat="server" ID="rpQuestions">
       
        <ItemTemplate>
          <table width="630"  border="0" cellpadding="0" cellspacing="0" class="formTABLE">
          <tr>
          <td>
            <asp:Label runat="server" ID="lblId" Visible="false" Text='<%# DataBinder.Eval(Container.DataItem, "QuestionId") %>'></asp:Label>
          </td>
           <td  align="left">
            
            <asp:Label runat="server"  ID="lblQuestion" Text='<%# DataBinder.Eval(Container.DataItem, "Question") %>'></asp:Label>
           </td>
           <td  align="right">
            <label >
             <asp:RadioButton runat="server" ID="rbYes" CssClass="formFIELDsmall" TextAlign="Right" Text="Yes" GroupName="rbQuestionAnswer" />
            </label>
           
            <label>
              <asp:RadioButton runat="server" ID="rbNo" CssClass="formFIELDsmall" Text="No" TextAlign="Right" GroupName="rbQuestionAnswer" />
            </label>         
                   
            </td>
          </tr>
          </table>    
          
        </ItemTemplate>
      </asp:Repeater>
         
      
           
      </fieldset>
      

      <hr />
      
    </asp:Panel> <!-- new location -->
  </div>  <!-- new location -->
  

    
      
        
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
        <Triggers>
             <asp:AsyncPostBackTrigger ControlID="cbAgree" EventName="CheckedChanged" /> 
          </Triggers>
 
       <ContentTemplate>   
       
       <div class="floatRIGHT">
        <p>
          
          <asp:Button runat="server" CssClass="formBUTTON" ID="btnSumbit" 
                Text="Submit Application"  Enabled="false"   tabindex="71" onclick="btnSumbit_Click" />
          
          <asp:Button runat="server" CssClass="formBUTTON" ID="btnReset" Text="Reset" tabindex="72" />
          </p>
        </div>
        
      <table border="0" cellpadding="0" cellspacing="0" class="formSIGN">
        <tr>
          <td align="left" valign="middle">
           <asp:CheckBox runat="server" AutoPostBack="true"  OnCheckedChanged="cbAgree_OnCheckedChange" ID="cbAgree" TabIndex="70" />
          </td>
          <td align="left" valign="middle"> I certify that all the information that I have provided on this application is true, accurate and complete.</td>
          </tr>
        </table>
        </ContentTemplate>
      </asp:UpdatePanel>

</asp:Content>

//************************************************//
// First User Control //

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ApplicantReferences.ascx.cs" Inherits="Controls_ApplicantReferences" %>
<link href="../Css/Global.css" rel="stylesheet" type="text/css" />

 
    
         <tr>
          <td><label for="ref_name1" runat="server" id="lblName" visible="true">Name:</label></td>
          <td align="left">
            <asp:TextBox ID="txtRefName" runat="server" CssClass="formFIELD" TabIndex="55"></asp:TextBox>
          </td>
        
         </tr>
        <tr>
          <td><label for="ref_co1" runat="server" id="lblComp" visible="true">Company:</label></td>
          <td align="left">
           <asp:TextBox ID="TtxtRefCompany" runat="server" CssClass="formFIELD" TabIndex="56"></asp:TextBox>
          </td>
        
          </tr>
        <tr>
          <td><label for="ref_pos1" runat="server" id="lblPosition" visible="true">Position:</label></td>
          <td align="left">
             <asp:TextBox ID="txtRefPosition" runat="server" CssClass="formFIELD" TabIndex="57"></asp:TextBox>
          </td>
         
          </tr>
        <tr>
          <td><label for="ref_years1" runat="server" id="lblYears" visible="true">Years Known:</label></td>
          <td align="left">
            <asp:TextBox ID="txtRefYears" runat="server" CssClass="formFIELD" TabIndex="58"></asp:TextBox>
          </td>
          
          </tr>
        <tr>
          <td><label for="ref_phone1" runat="server" id="lblPhone" visible="true">Phone Number:</label></td>
          <td align="left">
             <asp:TextBox ID="txtRefPhone" runat="server" CssClass="formFIELD" TabIndex="59"></asp:TextBox>
          </td>
         
       </tr>

//*******************************************//
 ////    Second User Control  ////

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ApplicantPreviousEmployer.ascx.cs" Inherits="Controls_ApplicantPreviousEmployer" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
  <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<link href="../Css/Global.css" rel="stylesheet" type="text/css" />


  <div class="contentCOLUMN">
          <ul>
            <li>
              <label class="LABEL" for="work_name01">*Company Name:</label>
              
             
               <asp:TextBox runat="server" ID="txtCompanyName1" TabIndex="33" CssClass="formFIELD"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvCompanyName" ControlToValidate="txtCompanyName1" ErrorMessage="Company Name" Text="*" runat="server"/>
               
              </li>
            <li>
              <label class="LABEL" for="work_address1_01">*Address 1:</label>
              
              <asp:TextBox runat="server" ID="txtJobAdd1" TabIndex="35" CssClass="formFIELD"></asp:TextBox>
               <asp:RequiredFieldValidator ID="rfvAddress1" ControlToValidate="txtJobAdd1" ErrorMessage="Company Address1" Text="*" runat="server"/>
                
              
              </li>
            <li>
              <label class="LABEL" for="work_city01">*City:</label>
              
              <asp:TextBox runat="server" ID="txtEmployerCity" TabIndex="37" CssClass="formFIELD"></asp:TextBox>
               <asp:RequiredFieldValidator ID="rvfCity" ControlToValidate="txtEmployerCity" ErrorMessage="Company City" Text="*" runat="server"/>
               
              </li>
            <li>
              <label class="LABEL" for="work_title01">*Job Title:</label>
             
              <asp:TextBox runat="server" ID="txtJobTitle" TabIndex="40" CssClass="formFIELD"></asp:TextBox>
               <asp:RequiredFieldValidator ID="rvfTitle" ControlToValidate="txtJobTitle" ErrorMessage="Work title" Text="*" runat="server"/>
                
              </li>
            <li>
              <label class="LABEL" for="work_st_salary01">Starting Salary:</label>
              <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="100%" align="left" valign="middle">$
                    
                    <asp:TextBox runat="server" ID="txtJobStartSalary" TabIndex="42" CssClass="formFIELDsmall"></asp:TextBox>
                    </td>
                  <td align="right" valign="middle">
                 <asp:UpdatePanel runat="server">
                 
                    <Triggers>
                      <asp:AsyncPostBackTrigger ControlID="ddlJobStartSalarytype" EventName="SelectedIndexChanged" /> 
                      </Triggers>
                  <ContentTemplate>
                  
                 
                   <asp:DropDownList ID="ddlJobStartSalarytype" AutoPostBack="true" OnSelectedIndexChanged="ddlJobStartSalarytype_OnSelectedIndexChange" runat="server" TabIndex="43">
                        
                       </asp:DropDownList>
                 
                  </ContentTemplate>
                 </asp:UpdatePanel> 
                    
                    </td>
                  </tr>
                </table>
              </li>
            <li>
              <label class="LABEL" for="work_st_month01">*Employed From:</label>
             
              <asp:UpdatePanel runat="server">
             
                <ContentTemplate>

                <telerik:RadDatePicker   ID="rdEmployedFrom" runat="server" width="110px">
                        <DateInput Skin=""  AutoPostBack="true"   InvalidStyleDuration="100"  />
                </telerik:RadDatePicker>
   
                <asp:RequiredFieldValidator ID="rfvEmployedFrom" ControlToValidate="rdEmployedFrom" ErrorMessage="Work Start Date" Text="*" runat="server"/>
               </ContentTemplate>
              </asp:UpdatePanel>
              </li>
            <li>
              <label class="LABEL" for="work_sup01">Supervisor Name:</label>
              
               <asp:TextBox runat="server" CssClass="formFIELD" ID="txtJobSupervisor" TabIndex="52"></asp:TextBox>
              </li>
            <li>
              <label for="work_duties01">*Job Duties:</label>
              
              <asp:TextBox ID="txtJobDuties" runat="server" TextMode="MultiLine" class="formFIELD"  tabindex="53" Rows="3"></asp:TextBox>
               <asp:RequiredFieldValidator ID="rvfDuties" ControlToValidate="txtJobDuties" ErrorMessage="Job Duties" Text="*" runat="server"/>
      
              
              </li>
            </ul>
          </div>
        <div class="contentCOLUMN">
          <ul>
            <li>
              <label class="LABEL" for="work_type01">*Business Type:</label>
              
               <asp:TextBox runat="server" CssClass="formFIELD" ID="txtBusinessType" TabIndex="34"></asp:TextBox>
               <asp:RequiredFieldValidator ID="rvfBusinessType" ControlToValidate="txtBusinessType" ErrorMessage="Business Type" Text="*" runat="server"/>
              </li>
            <li>
              <label class="LABEL" for="work_address2_01">Address 2:</label>
              
               <asp:TextBox runat="server" CssClass="formFIELD" ID="txtJobAdd2" TabIndex="36"></asp:TextBox>
              </li>
            <li>
              <label class="LABEL" for="work_state01">*State:</label>
              <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td align="left" valign="middle">
                    
                    <asp:DropDownList runat ="server" ID = "ddlJobState" TabIndex="38">
                    
                    </asp:DropDownList>
                     <asp:RequiredFieldValidator ID="rvfState" ControlToValidate="ddlJobState" ErrorMessage="Work State" Text="*" runat="server"/>
                    </td>
                  <td width="100%" align="right" valign="middle"><label for="work_zip_code01" class="formLABELsmall">*Zip:</label>
                    
                    <asp:TextBox runat="server" TabIndex="39" CssClass="formFIELDsmall" ID="txtJobZip"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="rvfZip" ControlToValidate="txtJobZip" ErrorMessage="Work Zip Code" Text="*" runat="server"/>
                    </td>
                  </tr>
                </table>
              </li>
            <li>
              <label class="LABEL" for="work_phone01">*Work Phone:</label>
             
                <asp:TextBox runat="server" TabIndex="41" CssClass="formFIELD" ID="txtJobPhone"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rvfPhone" ControlToValidate="txtJobPhone" ErrorMessage="Work Phone" Text="*" runat="server"/>
                
                 <asp:RegularExpressionValidator ID="regexpName" runat="server"  
                                        
                                    ErrorMessage="*" 
                                    ControlToValidate="txtJobPhone"     
                                    ValidationExpression="^[01]?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[- .]?\d{3}[- .]?\d{4}$" />
             
              </li>
            <li>
              <label class="LABEL" for="work_end_salary01">Ending Salary:</label>
              <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="100%" align="left" valign="middle">$
                    
                    <asp:TextBox runat="server" TabIndex="44" CssClass="formFIELDsmall" ID="txtJobEndSalary"></asp:TextBox>
                    </td>
                  <td align="right" valign="middle">
                   <asp:UpdatePanel runat="server">
                     <ContentTemplate>
                       <asp:DropDownList ID="ddlJobEndSalaryType" Enabled="false" runat="server" TabIndex="9">
                      
                       </asp:DropDownList>
                    </ContentTemplate>
                   </asp:UpdatePanel>   
                  </td>
                  </tr>
                </table>
              </li>
            <li>
              <label class="LABEL" for="work_end_month01">*Employed To:</label>
              
              <asp:UpdatePanel runat="server">
                <ContentTemplate>
                
                 <telerik:RadDatePicker ID="rdEmployedTo" runat="server" width="110px">
                        <DateInput Skin=""   AutoPostBack="true" InvalidStyleDuration="100"  />
                    </telerik:RadDatePicker>
                  <asp:RequiredFieldValidator ID="rvfEmployedTo" ControlToValidate="rdEmployedTo" ErrorMessage="Employed-To Date" Text="*" runat="server"/>
              </ContentTemplate>
              </asp:UpdatePanel>
              </li>
            <li>
              <label class="LABEL">*May We Contact:</label>
               <asp:RadioButtonList runat="server" ID="rbContactEmployer" TextAlign="Right" RepeatDirection="Horizontal">
                <asp:ListItem Text="Yes" Selected="True" Value="1"></asp:ListItem>
                <asp:ListItem Text="No" Value="0"></asp:ListItem>
               </asp:RadioButtonList>
               
              <br />
              
              </li>
            <li>
              <label class="LABEL" for="work_reason01">*Reason You Left:</label>
            
              <asp:TextBox ID="txtJobReasonLeft" runat="server" TextMode="MultiLine" class="formFIELD"  tabindex="54" Rows="3"></asp:TextBox>
               <asp:RequiredFieldValidator ID="rvfReasonLeft" ControlToValidate="txtJobReasonLeft" ErrorMessage="Reason Left" Text="*" runat="server"/>
              </li>
            </ul>
          </div>
          
          <div class="clear"></div>

Open in new window

0
 
LVL 19

Expert Comment

by:daveamour
ID: 28851418
Ok can't see anything supsicious
What code are you running server side when the date changes?
Also are you actualy getting a page postback rather than an Ajax call?
0
 
LVL 7

Author Comment

by:Camillia
ID: 28873993
let me set the debug on, let me see that it hits the code-behind.

I don't have a server side date-change code yet. I do have a post-back in the aspx page but don't have a code a code for it yet...

Let me look at this and will post back again.
0
 
LVL 7

Author Comment

by:Camillia
ID: 28910792
I put the debug steps. It does it a post back to the code-behind and goes to Page_Load.

I don't have a server-side code YET, when the date changes. But i dont think that could cause it.

I don't have to use Telerik's Calendar. I think ASP.Net has a calendar control or something else, no?
0
 
LVL 19

Accepted Solution

by:
daveamour earned 2000 total points
ID: 28942995
Yes Asp.net has a calendar control.
How about make a simple pahe with just the telerik control in and set up the AutoPostback and see if that does it.
I think realisticaly the only other way I can help is if you send me code I can actually run myself.
0
 
LVL 7

Author Comment

by:Camillia
ID: 28970343
let me try what you've suggested. I have another code with Telerik calendar. Let me look at that one too and see how that one works. Will post back.

Then maybe i can somehow send you the code.
0
 
LVL 7

Author Comment

by:Camillia
ID: 29031579
I copied the Telerik calendar control to another page. Have the master page there too.

If I remove the "autopostback" from "DateInput", page seems fine. With autopostback, page shifts a bit.

I removed autopostback from my real page, but still page went to the top.

Looked at my other projects and yes, pages flicker a bit..like they shift.

So, going to try asp.net's calendar and see.

<li>
                  <label class="LABEL"  for="month">Available to Start:</label>
                  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                    <telerik:RadDatePicker ID="rdStartDate" runat="server" width="110px">
                        <DateInput Skin=""   InvalidStyleDuration="100"  />
                       
                    </telerik:RadDatePicker>
                  </ContentTemplate>
                  </asp:UpdatePanel>  
                  </li>

0
 
LVL 19

Expert Comment

by:daveamour
ID: 29057557
Ok thanks for the points even though it wasn't a great answer!
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.
Suggested Courses

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question