This question is locked. New answers and comments are not allowed.
Hi,
The screen shot enclosed shows what happens when I select page forwarding from the following code.
This is the MasterPage ....
This is the aspx page .....
This is the ascx page .....
I cannot figure out what I am missing ?
I have also included a screen shot a view of my expanded solution members ?
Thanks for your time .....
The screen shot enclosed shows what happens when I select page forwarding from the following code.
This is the MasterPage ....
| <%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title> |
| <script src="../../Scripts/MicrosoftAjax.debug.js" type="text/javascript"></script> |
| <script src="../../Scripts/MicrosoftMvcAjax.debug.js" type="text/javascript"></script> |
| <link href="../../Content/Site.css" rel="stylesheet" type="text/css" /> |
| <!-- iqworks for telerik --> |
| <%= Html.Telerik().StyleSheetRegistrar() |
| .DefaultGroup(group => group.Add("Work.css") |
| .Add("telerik.common.css") |
| .Add("telerik.hay.css") |
| .Combined(true) |
| ) %> |
| </head> |
| <body> |
| <div class="page"> |
| <div> |
| <h1>MemberNo: <%=TempData["vdMemberNo"]%></h1> |
| <h1>Body Composition Analysis for : <%= TempData["vdDisplayName"]%></h1> |
| </div> |
| <div id="menucontainer"> |
| <ul id="menu"> |
| <li><%= Html.ActionLink("Home", "Index", "Home")%></li> |
| <li><%= Html.ActionLink("About", "About", "Home")%></li> |
| </ul> |
| </div> |
| <div id="main"> |
| <asp:ContentPlaceHolder ID="MainContent" runat="server" /> |
| </div> |
| <div id="footer"> |
| </div> |
| <%-- THE SCRIPTMANAGER - Either in the masterpage or in the child pages --%> |
| <%-- <%= Html.Telerik().ScriptRegistrar() %> --%> |
| <%= Html.Telerik().ScriptRegistrar() |
| .DefaultGroup(group => group |
| .Add("telerik.common.js") |
| .Add("telerik.grid.js") |
| .Add("telerik.grid.filtering.js")) |
| %> |
| </body> |
| </html> |
This is the aspx page .....
| <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Work.Master" |
| Inherits="System.Web.Mvc.ViewPage" %> |
| <asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server"> |
| Home Page |
| </asp:Content> |
| <asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server"> |
| <h2>GridAndTabStrip</h2> |
| <% Html.Telerik().TabStrip() |
| .Name("AdminTab") |
| .Items(tabstrip => |
| { |
| tabstrip.Add() |
| .Text("Goals") |
| .LoadContentFrom("LoadOnDemandDocument", "Work"); |
| tabstrip.Add() |
| .Text("Issues") |
| .LoadContentFrom("LoadOnDemandDocument", "Work"); |
| tabstrip.Add() |
| .Text("Company") |
| .LoadContentFrom("CompanyGrid", "Work"); |
| tabstrip.Add() |
| .Text("CompanyNix") |
| .LoadContentFrom("CompanyNix", "Company"); |
| }) |
| .Render(); |
| %> |
| </asp:Content> |
This is the ascx page .....
| <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<BCAnalytics.Models.Company>>" %> |
| <% Html.Telerik() |
| .Grid(Model) |
| .Name("Companies") |
| .PrefixUrlParameters(false) |
| .Columns(columns => |
| { |
| columns.Add(c => |
| { |
| %> |
| <%= Html.ActionLink("Edit", "Edit", new { id = c.coCompanyNo })%> |
| <%= Html.ActionLink("Delete", "Delete", new { id = c.coCompanyNo })%> |
| <% |
| }).Title("Action"); |
| columns.Add(c => c.coMemberNo).Width(20); |
| columns.Add(c => c.coCompanyNo); |
| columns.Add(c => c.coCompanyName); |
| columns.Add(c => c.coContact); |
| columns.Add(c => c.coEmail); |
| columns.Add(c => c.coGroupCode); |
| }) |
| .Filterable() |
| .Sortable(sort => sort.SortMode(GridSortMode.MultipleColumn)) |
| .Pageable() |
| .Scrollable(scrolling => scrolling.Height(200)) |
| .Render(); %> |
| <p><%= Html.ActionLink("Create New", "Create") %></p> |
I cannot figure out what I am missing ?
I have also included a screen shot a view of my expanded solution members ?
Thanks for your time .....