Solved

Javascript CSS changes not reflected in .net server controls

Posted on 2008-06-11
3
303 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now