menu asp.net

  • Thread starter Thread starter Mattdef
  • Start date Start date
M

Mattdef

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
 
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
 
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!
**********************************************************************
 
Thanks all!!!! :o)


Cowboy (Gregory A. Beamer) said:
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!
**********************************************************************
 
Back
Top