Managing ASP.NET Menu Settings After Postback

I am currently testing a menu in ASP.NET, which I recently made using asp: menu control.

The menu is the same as I want it to be right now, but whenever there is a postback that updates the whole page, it moves a little down (only once, the second postback will not move it a bit more).

This is not CSS → I removed all CSS from this menu)
This is not any property → I commented on everything related to setting the menu
This is not any other element above it, increasing → I specially placed it inside a table in which the only content is asp: menu control

It moves down a lot in IE6, a bit in IE8, and it doesn't move at all in Firefox 4.

What should I do? Are there any alternatives? Is there any property that I can use, or any external element that I could place inside so that it remains stationary?

And yes, every single machine it works with uses Internet Explorer. A nightmare of any web developer.

--- [ Update ] -----
I created the menu in a separate project, and there was no effect there! I copied the exact files to my project and ran it, and the problem was there.

Could there be a difference in asp.net version?

+3
source share
3 answers

, - IE, , html ? , , , .

0

asp.net 4.0, , , . , divs .

, "" . div. .

"RenderingMode" , , .

0

I had the same problem. My navigation menu is in UpdatePanel, and I changed UpdateMode from Always to Conditional - the problem is resolved. It was on my main page.

0
source

All Articles