|
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
|
|
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
|
|
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.
|
|
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!
|
|
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.
|
|