PDA

View Full Version : skmMenu not working with formfileds


Malin
09-01-2005, 07:39 AM
Finally, I managed to solve the problem. A bit irritatating that the problem was because of a specific control, a control which was the first I suspected and therefore changed. It was an "<input type=submit id=submit". As I said, I suspected this control right from the start and I changed it to an asp:button but with no luck. But now after many hours I realized that I should ALSO have changed the id of the asp:button to be something else than "submit". Of course that name is not good for buttons. As soon as I changed the name everything started to work perfectly.


(I have this old site that I take care of and I have transformed it to asp.net but I haven't changed all controls to asp.net controls since it would require a lot of work. Therefore I have many controls such as "<input type=submit" with the runat=server added. Unfortunately they constantly causes me trouble.)http://community.discountasp.net/emoticons/cool.gif


Malin

~Postingat the DASP-forum since thebeginning ~

Malin
09-01-2005, 11:22 AM
Hi

I have a problem with skmMenu. It works perfect as long as I don't have any "<input type=text", asp:textboxes and so on. When the webpage contains controls such as textboxes the menu slides out under the controls instead of above and on top of this the "Menu1_MenuItemClick" event doesn't work at all. When I delete all textboxes, buttons etc from the webpage everything works but when I put them back the problem is there again.

What am I doing wrong? Does anyone know?



Malin

~Postingat the DASP-forum since thebeginning ~

Malin
09-01-2005, 12:46 PM
I have solved the problem with themenuitems disappearing under the controls but the:


this.Menu1.MenuItemClick += new skmMenu.MenuItemClickedEventHandler(this.Menu1_Men uItemClick);

..still does not fire.

If I remove the textboxes everything works fine. The error appears before postback (when I click a menuItem) and it is a scripterror:
Error on page: Object doesn't support this property or method.

http://community.discountasp.net/emoticons/confused.gif






Malin

~Postingat the DASP-forum since thebeginning ~

Post Edited (Malin) : 9/1/2005 1:30:36 PM GMT

bruce
09-02-2005, 01:03 AM
converting from asp to asp.net is really a big pain!! but i think it's worth the time as .net is so much cooler!!

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)