473,785 Members | 2,363 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1112
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******** ******@tk2msftn gp13.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******** ******@tk2msftn gp13.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.netNoS pamM> a écrit
dans le message de news:Ou******** ******@TK2MSFTN GP11.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******** ******@tk2msftn gp13.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
2501
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 post. In this post I want to ask you why my code behaves differently in IE, while it behaves like I expect in Mozilla and Opera. What I would like to see addressed is what I need to do to get the same behaviour in all 3 browsers. I know each browser...
1
4333
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 want to make first text as Table Heading/menu category. For examle in the given menu i want to make a heading as "Comp. Languages" which won't be a link. 2) The position of this menu is absolute to the page. I want to make it absolute to the Table...
2
3899
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 http://home.pacific.net.sg/~jacksony ? (the drop down bar could not work at www.apchosting.net but can drop at home.pacific.net.sg. I suspect it is a server problem but was told it is not possible, therefore assuming it is a client script problem? the script works last time...
8
10101
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 a text box has 6 items, undo, cut, copy, paste, delete and select all. I would like to add one additional paste menu that opens a new sub menu with several optional text items that could be pasted. The items would be populated by my program but...
1
2164
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, I did not want to try to modify the code without a little help. When you place the mouse over the menu bar, this script calls the function to show the menu. I would like it modified to hide the menu when the mouse is removed. Please help. The...
4
9297
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 if it works, and if it does not, tell me why it does not work. Thanks.
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9485
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10356
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9958
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8986
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.