473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

menu asp.net

Hello,

I would like to use the menu at : http://www.aspnetmenu.com

How can I integrate the menu in my existing pages without using frame?

Is this possible to use a user control?

i tried to use this menu in user control but i obtain an error message : 1
form runat server per page

Thank you

Matt
Nov 18 '05 #1
3 1102
asp.net allows only one active form per instance of page.
So remove the form tag off your user control... and include the user control
within form tag of the containing page.

HTH,

HD

"Mattdef" <le*************@netscape.com> wrote in message
news:uX**************@tk2msftngp13.phx.gbl...
Hello,

I would like to use the menu at : http://www.aspnetmenu.com

How can I integrate the menu in my existing pages without using frame?

Is this possible to use a user control?

i tried to use this menu in user control but i obtain an error message : 1
form runat server per page

Thank you

Matt

Nov 18 '05 #2
I see no reason you should not be able to use it in a single page. The
server control simply creates a DHTML drop down. You can certainly place the
menus in a user control, but you can also drop the menus on each page rather
than dropping the menu into a user control and then dropping it on each
page. The benefit of the user control is limited in this case.

The error you have suggests that you have the menu thrown onto a page, or
control, with a <form> tag around it. This may be because the control is
somehow outside of the <form> tag, or because the server control creates its
own form tag. I am not familiar with the product, so I do not know why it is
happening.

Open the ASPX page (or ASCX control) and flip to the HTML view (NOTE: Most
likely ASPX page, as this has form tags) and see if you have two server side
(runat="server") <form> tags.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Mattdef" <le*************@netscape.com> wrote in message
news:uX**************@tk2msftngp13.phx.gbl...
Hello,

I would like to use the menu at : http://www.aspnetmenu.com

How can I integrate the menu in my existing pages without using frame?

Is this possible to use a user control?

i tried to use this menu in user control but i obtain an error message : 1
form runat server per page

Thank you

Matt

Nov 18 '05 #3
Thanks all!!!! :o)
"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamM> a écrit
dans le message de news:Ou**************@TK2MSFTNGP11.phx.gbl...
I see no reason you should not be able to use it in a single page. The
server control simply creates a DHTML drop down. You can certainly place the menus in a user control, but you can also drop the menus on each page rather than dropping the menu into a user control and then dropping it on each
page. The benefit of the user control is limited in this case.

The error you have suggests that you have the menu thrown onto a page, or
control, with a <form> tag around it. This may be because the control is
somehow outside of the <form> tag, or because the server control creates its own form tag. I am not familiar with the product, so I do not know why it is happening.

Open the ASPX page (or ASCX control) and flip to the HTML view (NOTE: Most
likely ASPX page, as this has form tags) and see if you have two server side (runat="server") <form> tags.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Mattdef" <le*************@netscape.com> wrote in message
news:uX**************@tk2msftngp13.phx.gbl...
Hello,

I would like to use the menu at : http://www.aspnetmenu.com

How can I integrate the menu in my existing pages without using frame?

Is this possible to use a user control?

i tried to use this menu in user control but i obtain an error message : 1 form runat server per page

Thank you

Matt


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Macamba | last post by:
Hi all, I am currently developing a website for a voluntary organisation. It is my first step in website development. The dynamic menu I developed has some bugs, which I addressed in another...
1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
8
by: Dennis C. Drumm | last post by:
Is there a way to modify the standard context menu shown when someone right clicks in a windows text box and that would work for all open windows applications? The standard context menu for...
1
by: Anthony | last post by:
Below is a script I found at http://javascript.internet.com/ for a cascading menu. The script works great but there is one thing that I would like modified. BecauseI am just learning javascript,...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.