Click here to Skip to main content
15,890,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this is paster page's code:

XML
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
<!DOCTYPE html>
<script runat="server">


   /* protected void Page_Load(object sender, EventArgs e)
    {

     if ( HttpContext.Current.User.Identity.IsAuthenticated)
        {
            testLink.Visible = true;

        }


    }*/

</script>
<html lang="en">

    <head >

        <meta charset="utf-8" />
        <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>

        <link href="<%: Url.Content("~/favicon.ico") %>" rel="shortcut icon" type="image/x-icon" />
           <%: Styles.Render("~/Content/css") %>
        <%: Scripts.Render("~/bundles/modernizr") %>




        <style type="text/css">
            .style1
            {
                text-align: justify;
                color: #99CCFF;
            }
            .newStyle1
            {
                font-family: Arial;
            }
            .style2
            {
                font-family: Arial;
                color: #99CCFF;
                background-color: #FFFFFF;
            }
        </style>

    </head>
    <body >
        <header>

            <div class="content-wrapper">
&nbsp;<div class="float-left">
<img src="../../Image/Capture2_logo.PNG" style="height: 77px" />

                </div>
                <div class="float-right">
                    <section id="login">
                        <%: Html.Partial("_LoginPartial") %>
                    </section>
                    <nav>
       <p class="style1"><h1><span class="style2">Novo Nordisk</span></h1></p><hr />
       <ul id="menu">

       <li>
      <span id="testLink" runat="server" visible="false">

       <%: Html.ActionLink("test", "test", "Home")%>
      </span>
       </li>

                           <%if (!Request.IsAuthenticated)
                             { %>

                               <li><%: Html.ActionLink("test5", "test5", "Home")%></li>
                               <li><%: Html.ActionLink("Home", "Index", "Home")%></li>
                               <li><%: Html.ActionLink("Controle qualité", "CQ", "Home")%></li>
                               <li><%: Html.ActionLink("Assurance qualité", "AQ", "Home")%></li>
                               <li><%: Html.ActionLink("Espace administrateur", "Admin", "Home")%></li>
                               <li><%: Html.ActionLink("Reporting", "Reporting", "Home")%></li>
                               <li><%: Html.ActionLink("Contact", "Contact", "Home")%></li>

                              <%} %>
                              <% else
                             { %>
                                 <div class="float-left">
                    <p>&copy; <%: DateTime.Now%> </p>
                </div>
                        </ul>

                <% } %>
                    </nav>
                </div>
            </div>
        </header>
        <div id="body">
            <asp:ContentPlaceHolder ID="FeaturedContent" runat="server" />
            <section class="content-wrapper main-content clear-fix">
                <asp:ContentPlaceHolder ID="MainContent" runat="server" />
            </section>
        </div>
        <footer>
            <div class="content-wrapper">
                <div class="float-left">
                    <p>&copy; <%: DateTime.Now.Year %> - My ASP.NET MVC Application</p>
                </div>
            </div>
        </footer>
<telerik:RadCodeBlock runat="server">

        </telerik:RadCodeBlock>
         <%: Scripts.Render("~/bundles/jquery") %>
        <asp:ContentPlaceHolder ID="ScriptsSection" runat="server" />
    </body>
</html>



Plz Help, I need to move forward on my project
Posted
Comments
Richard MacCutchan 6-Mar-13 5:09am    
Where does the error occur?
medloyl1 6-Mar-13 5:10am    
i dont know exactly,
it is a javascript error but i have no idea!!!!!
J.Karthick 6-Mar-13 5:10am    
Where is the ID you specified for tag "<telerik:RadCodeBlock runat="server">
" ??

I'm not sure...Just check it out
medloyl1 6-Mar-13 5:27am    
i try it but i have the same problem
!!!!
This is a javaScipt Error.
So, please review your js files, if there is any error.

You can see the js errors in the console tab of FireBug in Firefox and correct them.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900