Welcome Guest Search | Active Topics | Sign In | Register

Menu control duplicates on postback Options
Michael Knox
Posted: Wednesday, December 28, 2011 7:36:37 AM
Rank: Newbie
Groups: Member

Joined: 8/28/2011
Posts: 3
I'm using the menu control on a web site for a client. Everything works great, but when the page does a postback to to the server, the menu is duplicated. This only seems to happen if the page posts back to itself to update a control. For instance, a user might change a quantity in the shopping cart, and click an update button, which causes the postback.

I've searched everything I can think to search, but I can find anything. Any ideas?

Thanks

Michael
eo_support
Posted: Wednesday, December 28, 2011 10:12:41 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Can you explain what you meant by the "Menu is duplicated"? Do you mean there was one menu but once the page posts back there are two?

Thanks
Michael Knox
Posted: Wednesday, December 28, 2011 10:19:59 AM
Rank: Newbie
Groups: Member

Joined: 8/28/2011
Posts: 3
Exactly. The menu is horizontal, with five menu items going across the top. When the post back occurs, the menu has twice as many items.
eo_support
Posted: Wednesday, December 28, 2011 11:06:18 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

That would be most likely a code error on your side. The menu allows you to add items programmatically and it keeps whatever you added between postbacks. So if your code keeps adding it every time you will get more and more.

Thanks!
Michael Knox
Posted: Wednesday, December 28, 2011 11:41:57 AM
Rank: Newbie
Groups: Member

Joined: 8/28/2011
Posts: 3
OK. Thanks. I inherited much of this code and wanted to make sure that there was not anything weird that I needed to do for the control. I'll dig deeper into the code.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.