Solved

Javascript CSS changes not reflected in .net server controls

Posted on 2008-06-11
3
302 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
Comment Utility
Try to use the relevant  position of the divs, dont use the absolute positioning.
this will solve ur problem.
0
 

Author Comment

by:Sym73
Comment Utility
The divs are not being absolutely positioned.
0
 
LVL 5

Accepted Solution

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

762 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

12 Experts available now in Live!

Get 1:1 Help Now