Click here to Skip to main content
15,887,316 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: set parameter javascript in aspx page Pin
Manfred Rudolf Bihy19-Dec-10 22:32
professionalManfred Rudolf Bihy19-Dec-10 22:32 
GeneralRe: set parameter javascript in aspx page Pin
Hiren solanki19-Dec-10 22:35
Hiren solanki19-Dec-10 22:35 
QuestionAccessing SQL Server Database file (*.mdf ) from the Site. Pin
Katiyar S.17-Dec-10 5:35
Katiyar S.17-Dec-10 5:35 
QuestionLinq to Entities vs Linq to SQL Pin
Swiftain17-Dec-10 5:21
Swiftain17-Dec-10 5:21 
AnswerRe: Linq to Entities vs Linq to SQL Pin
Not Active17-Dec-10 5:55
mentorNot Active17-Dec-10 5:55 
Questionfunctions in standalone .aspx files not allowed?? SOLVED - IGNORE ME *SIGH* Pin
l a u r e n17-Dec-10 5:08
l a u r e n17-Dec-10 5:08 
AnswerRe: functions in standalone .aspx files not allowed?? SOLVED - IGNORE ME *SIGH* Pin
_Erik_17-Dec-10 5:33
_Erik_17-Dec-10 5:33 
QuestionStoping the Flickering Pin
Vimalsoft(Pty) Ltd16-Dec-10 20:20
professionalVimalsoft(Pty) Ltd16-Dec-10 20:20 
Good Day All.

I have two problems , but i will address them in different threads. I have a dropdownlist in a UpdatePanel and on selectedIndex change i am doing something on the server side and the drop-down make the page to flicker. This is the Defination of my page. The dropdown is at the bottom and its bolded

     <asp:UpdatePanel ID="UpdateSerials" runat="server">
         <ContentTemplate>
        
<div id ="ParentDiv">
         <asp:Panel ID="boxpanel" runat="server">
             <table class="style1">
                 <tr>
                     <td>
                         <asp:Label ID="Label24" runat="server" TabIndex="22" Text="Box No:"></asp:Label>
                     </td>
                     <td>
                         <asp:Label ID="lblBoxNumber" runat="server" TabIndex="23" Text="Box Number"></asp:Label>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="Label1" runat="server" Text="Unit1:"></asp:Label>
                         &nbsp;<asp:TextBox ID="txtUnitLen1" Width="136px" runat="server" onKeyUp="Jump()" TabIndex="1"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                             ControlToValidate="txtUnitLen1" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                     <td>
                         <asp:Label ID="Label11" runat="server" Text="Unit11:"></asp:Label>
                         &nbsp;<asp:TextBox ID="txtUnitLen11" Width="136px" runat="server" onKeyUp="Jump()" TabIndex="10"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" 
                             ControlToValidate="txtUnitLen11" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="Label2" runat="server" Text="Unit2:"></asp:Label>
                         &nbsp;<asp:TextBox ID="txtUnitLen2" Width="136px" runat="server" onKeyUp="Jump()" TabIndex="1"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                             ControlToValidate="txtUnitLen2" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                     <td>
                         <asp:Label ID="Label12" runat="server" Text="Unit12:"></asp:Label>
                         &nbsp;<asp:TextBox ID="txtUnitLen12" Width="136px" runat="server" onKeyUp="Jump()" TabIndex="11"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" 
                             ControlToValidate="txtUnitLen12" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="Label3" runat="server" Text="Unit3:"></asp:Label>
                         &nbsp;<asp:TextBox ID="txtUnitLen3" Width="136px" runat="server" onKeyUp="Jump()" TabIndex="2"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                             ControlToValidate="txtUnitLen3" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                     <td>
                         <asp:Label ID="Label13" runat="server" Text="Unit13:"></asp:Label>
                         &nbsp;<asp:TextBox ID="txtUnitLen13" Width="136px"  runat="server" onKeyUp="Jump()" TabIndex="12"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" 
                             ControlToValidate="txtUnitLen13" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="Label4" runat="server" Text="Unit4:"></asp:Label>
                         &nbsp;<asp:TextBox ID="txtUnitLen4" Width="136px" runat="server" onKeyUp="Jump()" TabIndex="3"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                             ControlToValidate="txtUnitLen4" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                     <td>
                         <asp:Label ID="Label14" runat="server" Text="Unit14:"></asp:Label>
                         &nbsp;<asp:TextBox ID="txtUnitLen14" Width="136px" runat="server" onKeyUp="Jump()" TabIndex="13"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" 
                             ControlToValidate="txtUnitLen14" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="Label5" runat="server" Text="Unit5:"></asp:Label>
                         &nbsp;<asp:TextBox ID="txtUnitLen5" Width="136px" runat="server" onKeyUp="Jump()" TabIndex="4"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                             ControlToValidate="txtUnitLen5" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                     <td>
                         <asp:Label ID="Label15" runat="server" Text="Unit15:"></asp:Label>
                         &nbsp;<asp:TextBox ID="txtUnitLen15" Width="136px" runat="server" onKeyUp="Jump()" TabIndex="14"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" 
                             ControlToValidate="txtUnitLen15" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="Label6" runat="server" Text="Unit6:"></asp:Label>
                         &nbsp;<asp:TextBox ID="txtUnitLen6" Width="136px" runat="server" onKeyUp="Jump()" TabIndex="5"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                             ControlToValidate="txtUnitLen6" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                     <td>
                         <asp:Label ID="Label16" runat="server" Text="Unit16:"></asp:Label>
                         &nbsp;<asp:TextBox ID="txtUnitLen16"  Width="136px" runat="server" onKeyUp="Jump()" TabIndex="15"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" 
                             ControlToValidate="txtUnitLen16" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="Label7" runat="server" Text="Unit7:"></asp:Label>
                         &nbsp;<asp:TextBox ID="txtUnitLen7" Width="136px" runat="server" onKeyUp="Jump()" TabIndex="6"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                             ControlToValidate="txtUnitLen7" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                     <td>
                         <asp:Label ID="Label17" runat="server" Text="Unit17:"></asp:Label>
                          <asp:TextBox ID="txtUnitLen17" Width="136px" runat="server" onKeyUp="Jump()" TabIndex="16"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" 
                             ControlToValidate="txtUnitLen17" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="Label8" runat="server" Text="Unit8:"></asp:Label>
                        
                         <asp:TextBox ID="txtUnitLen8"  Width="136px" runat="server" onKeyUp="Jump()" TabIndex="7"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                             ControlToValidate="txtUnitLen8" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                     <td>
                         <asp:Label ID="Label18" runat="server" Text="Unit18:"></asp:Label>
                          <asp:TextBox ID="txtUnitLen18" Width="136px" runat="server" onKeyUp="Jump()" TabIndex="17"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                             ControlToValidate="txtUnitLen18" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="Label9" runat="server" Text="Unit9:"></asp:Label>
                         &nbsp;
                         <asp:TextBox ID="txtUnitLen9" Width="136px"  runat="server" onKeyUp="Jump()" TabIndex="8"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                             ControlToValidate="txtUnitLen9" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                     <td>
                         <asp:Label ID="Label19" runat="server" Text="Unit19"></asp:Label>
                         &nbsp;
                         <asp:TextBox ID="txtUnitLen19" runat="server" onKeyUp="Jump()" TabIndex="18" 
                              Width="136px"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                             ControlToValidate="txtUnitLen19" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="Label10" runat="server" Text="Unit:10"></asp:Label>
                         <asp:TextBox ID="txtUnitLen10" runat="server" onKeyUp="Jump()" TabIndex="9" 
                             Width="136px"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                             ControlToValidate="txtUnitLen10" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                     <td>
                         <asp:Label ID="Label20" runat="server" Text="Unit:20"></asp:Label>
                         &nbsp;<asp:TextBox ID="txtUnitLen20" runat="server" AutoPostBack="True" 
                           Width="136px"   onKeyUp="Jump()" TabIndex="19"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                             ControlToValidate="txtUnitLen20" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <table class="style1">
                             <tr>
                                 <td class="style2" valign="middle">
                                     <asp:Panel ID="Panel1" runat="server">
                                         <asp:Button ID="btnComplete" runat="server" Height="26px" 
                                             onclick="btnComplete_Click1" TabIndex="20" Text="Complete" Width="83px" />
                                         <asp:Button ID="btnComplete2" runat="server" CssClass="buttonSubmitHide" 
                                             onclick="btnComplete2_Click" Text="Complete" Width="83px" />
                                     </asp:Panel>
                                     <asp:Panel ID="ModalPanel" runat="server" BackColor="Green" 
                                         HorizontalAlign="Center" Style="display: none">
                                         <asp:Label ID="lblPanelMessage" runat="server"></asp:Label>
                                         <asp:Button ID="btnCancel" runat="server" Text="Close Me" />
                                     </asp:Panel>
                                 </td>
                             </tr>
                             <tr>
                                 <td>
                                     <asp:Label ID="lblSerialNumber" runat="server" Text="Serial no length:"></asp:Label>
                                 </td>
                             </tr>
                         </table>
                     </td>
                     <td valign="top">
                         <asp:DropDownList ID="ddlAutoText" runat="server" 
                             Height="24px" onselectedindexchanged="ddlAutoText_SelectedIndexChanged" 
                             TabIndex="21" Width="180px" AutoPostBack="True">
                             <asp:ListItem Value="0">Autonext function disabled.</asp:ListItem>
                             <asp:ListItem Value="1">1</asp:ListItem>
                             <asp:ListItem Value="2">2</asp:ListItem>
                             <asp:ListItem Value="3">3</asp:ListItem>
                             <asp:ListItem Value="4">4</asp:ListItem>
                             <asp:ListItem Value="5">5</asp:ListItem>
                             <asp:ListItem Value="6">6</asp:ListItem>
                             <asp:ListItem Value="7">7</asp:ListItem>
                             <asp:ListItem Value="8">8</asp:ListItem>
                             <asp:ListItem Value="9">9</asp:ListItem>
                             <asp:ListItem Value="10">10</asp:ListItem>
                             <asp:ListItem Value="11">11</asp:ListItem>
                             <asp:ListItem Value="12">12</asp:ListItem>
                             <asp:ListItem Value="13">13</asp:ListItem>
                             <asp:ListItem Value="14">14</asp:ListItem>
                             <asp:ListItem Value="15">15</asp:ListItem>
                             <asp:ListItem Value="16">16</asp:ListItem>
                             <asp:ListItem Value="17">17</asp:ListItem>
                             <asp:ListItem Value="18">18</asp:ListItem>
                             <asp:ListItem Value="19">19</asp:ListItem>
                             <asp:ListItem Value="20">20</asp:ListItem>
                         </asp:DropDownList>
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <asp:Label ID="lblMessage" runat="server" ForeColor="Red" 
                             style="font-weight: 700"></asp:Label>
                     </td>
                     <td valign="top">
                         &nbsp;</td>
                 </tr>
             </table>
             </asp:Panel>
              </div>
         </ContentTemplate>
         <Triggers>
             <asp:AsyncPostBackTrigger ControlID="btnComplete" EventName="Click" />
         </Triggers>
     </asp:UpdatePanel>

as you can see , it is inside the Update Panel , but when i select it flickers. and Below is the code that set the max length of the textboxes
/// <summary>
		/// If the DDL is Selected , Set All the Textboxes with a max Length
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		protected void ddlAutoText_SelectedIndexChanged(object sender, EventArgs e)
		{
			int MaxLength = Convert.ToInt32(ddlAutoText.SelectedValue);
			txtUnitLen2.MaxLength = MaxLength;
			txtUnitLen3.MaxLength = MaxLength;
			txtUnitLen4.MaxLength = MaxLength;
			txtUnitLen5.MaxLength = MaxLength;
			txtUnitLen6.MaxLength = MaxLength;
			txtUnitLen7.MaxLength = MaxLength;
			txtUnitLen8.MaxLength = MaxLength;
			txtUnitLen9.MaxLength = MaxLength;
			txtUnitLen10.MaxLength = MaxLength;
			txtUnitLen11.MaxLength = MaxLength;
			txtUnitLen12.MaxLength = MaxLength;
			txtUnitLen13.MaxLength = MaxLength;
			txtUnitLen14.MaxLength = MaxLength;
			txtUnitLen15.MaxLength = MaxLength;
			txtUnitLen16.MaxLength = MaxLength;
			txtUnitLen17.MaxLength = MaxLength;
			txtUnitLen18.MaxLength = MaxLength;
			txtUnitLen19.MaxLength = MaxLength;
			txtUnitLen20.MaxLength = MaxLength;
			txtUnitLen1.MaxLength = MaxLength;
		}


Thanks
Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

GeneralRe: Stoping the Flickering Pin
Ankur\m/16-Dec-10 20:33
professionalAnkur\m/16-Dec-10 20:33 
GeneralRe: Stoping the Flickering Pin
Vimalsoft(Pty) Ltd16-Dec-10 20:35
professionalVimalsoft(Pty) Ltd16-Dec-10 20:35 
GeneralRe: Stoping the Flickering Pin
Ankur\m/16-Dec-10 20:44
professionalAnkur\m/16-Dec-10 20:44 
AnswerRe: Stoping the Flickering Pin
Ankur\m/16-Dec-10 20:46
professionalAnkur\m/16-Dec-10 20:46 
GeneralRe: Stoping the Flickering Pin
Vimalsoft(Pty) Ltd16-Dec-10 20:52
professionalVimalsoft(Pty) Ltd16-Dec-10 20:52 
GeneralRe: Stoping the Flickering<Resolved> Pin
Vimalsoft(Pty) Ltd17-Dec-10 10:28
professionalVimalsoft(Pty) Ltd17-Dec-10 10:28 
GeneralRe: Stoping the Flickering Pin
Ankur\m/17-Dec-10 18:24
professionalAnkur\m/17-Dec-10 18:24 
QuestionConfirmation Message Box in Code Behind Asp.Net [modified] Pin
priyagee16-Dec-10 18:27
priyagee16-Dec-10 18:27 
AnswerRe: Confirmation Message Box in Code Behind Asp.Net Pin
Hiren solanki16-Dec-10 19:00
Hiren solanki16-Dec-10 19:00 
GeneralRe: Confirmation Message Box in Code Behind Asp.Net Pin
priyagee16-Dec-10 19:33
priyagee16-Dec-10 19:33 
QuestionRe: Confirmation Message Box in Code Behind Asp.Net Pin
Hiren solanki16-Dec-10 20:03
Hiren solanki16-Dec-10 20:03 
AnswerRe: Confirmation Message Box in Code Behind Asp.Net Pin
priyagee16-Dec-10 20:53
priyagee16-Dec-10 20:53 
AnswerRe: Confirmation Message Box in Code Behind Asp.Net Pin
Hiren solanki17-Dec-10 3:04
Hiren solanki17-Dec-10 3:04 
GeneralRe: Confirmation Message Box in Code Behind Asp.Net Pin
PunkIsNotDead17-Dec-10 7:11
PunkIsNotDead17-Dec-10 7:11 
QuestionConverting Linq to Sql query to Linq to entity Pin
Swiftain16-Dec-10 14:24
Swiftain16-Dec-10 14:24 
AnswerRe: Converting Linq to Sql query to Linq to entity Pin
Swiftain16-Dec-10 15:07
Swiftain16-Dec-10 15:07 
QuestionCreate listviews at runtime (dynamic) with checkboxes Pin
r_raman9916-Dec-10 6:44
r_raman9916-Dec-10 6:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.