Solved

Javascript CSS changes not reflected in .net server controls

Posted on 2008-06-11
3
309 Views
Last Modified: 2008-06-23
I have an ASP .NET application (3.5 framework).  I am using an UpdatePanel for a partial page refresh.  Inside this UpdatePanel, I have several server side controls (i.e. <asp:label runat="server"...).  I have a javascript function that changes the style.display setting on divs between none and block.  This creates an accordian effect with the stacked divs.  The problem is that when a div expands or contracts based on changing the display setting, the server side controls in other divs do not change their position on the screen.  I.E. section 2 contracts, the server controls in section 3 stay at the same position on the screen instead of moving up.

I need to have these server side controls move along with the rest of the information in the divs.

Any help is appreciated.
0
Comment
Question by:Sym73
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Expert Comment

by:Qaiser_Mehmood_Mughal
ID: 21766709
Try to use the relevant  position of the divs, dont use the absolute positioning.
this will solve ur problem.
0
 

Author Comment

by:Sym73
ID: 21769524
The divs are not being absolutely positioned.
0
 
LVL 5

Accepted Solution

by:
Qaiser_Mehmood_Mughal earned 500 total points
ID: 21769553
But you should give them the position reletive.
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

726 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