RADMENU in Master Page

2 posts, 1 answers
  1. lax
    lax avatar
    1 posts
    Member since:
    Feb 2009

    Posted 19 Feb 2009 Link to this post

    Hi All,
    I have an web application where in i am using a master page and all the pages uses this master page. All the content pages have <form runat=server> tag and other controls in the form.

    Now I want to use rad menu in top section of master page and I am not able to since I need to use scriptmanager and this needs to be under <form runat=server> tag too and all the content pages start in mid section. How can i implement this without changing the content pages.

    Appreciate an early response.
  2. Answer
    Paul avatar
    4281 posts

    Posted 20 Feb 2009 Link to this post

    Hello lax,

    I'm not sure if your approach is right. Generally, when using masterpage, the body and form tags are defined in the masterpage. In addition, you have contentplaceholders that are used in the content pages. Please revise your application structure.

    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> 
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"
    <head runat="server"
        <title>Untitled Page</title> 
        <asp:ContentPlaceHolder ID="head" runat="server"
        <form id="form1" runat="server"
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        <telerik:RadMenu ID="RadMenu1" runat="server"
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                <telerik:RadMenuItem runat="server" Text="Root RadMenuItem1"
                        <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1"
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"

    <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" 
        CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %> 
    <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top