Hi,
I have so many problems to run RadControls (Scheduler) in ASP.NET MVC.I have read all Your tutorials and examples, but with no success.One of my last exception was : The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). So I added everything to RadCodeBlock. It took me to another exception: Control 'ctl00_RadScriptManager1' of type 'RadScriptManager' must be placed inside a form tag with runat=server. I am totaly lost, trying to find the way from Your examples.
Can You give me a hint, what I am doing wrong?
This is my master page:
I have so many problems to run RadControls (Scheduler) in ASP.NET MVC.I have read all Your tutorials and examples, but with no success.One of my last exception was : The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). So I added everything to RadCodeBlock. It took me to another exception: Control 'ctl00_RadScriptManager1' of type 'RadScriptManager' must be placed inside a form tag with runat=server. I am totaly lost, trying to find the way from Your examples.
Can You give me a hint, what I am doing wrong?
This is my master page:
| <%@ Master Language="C#" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewMasterPage" %> |
| <!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> |
| <asp:ContentPlaceHolder ID="TitleContent" runat="server" /> |
| </title> |
| <telerik:RadCodeBlock runat="server" ID="zkouska1"> |
| <%= Html.GeneralScript("jquery-1.3.2.min.js")%> |
| <%= Html.GeneralScript("jquery.crm.additionalMethods.js")%> |
| <%= Html.GeneralScript("MicrosoftAjax.js")%> |
| <%= Html.GeneralScript("jquery.cookie.js")%> |
| <%= Html.GeneralScript("jquery-ui-1.7.2.custom.min.js")%> |
| <%= Html.Css("Site.css")%> |
| <%= Html.Css("themes/base/jquery-ui-1.7.2.custom.css")%> |
| <%= Html.Css("menu.css")%> |
| <%= Html.Css("ModalControl.css") %> |
| <%= Html.GeneralScript("formObserver/jquery.formobserver.js")%> |
| <%= Html.GeneralScript("ui/ui.core.js")%> |
| <%= Html.GeneralScript("ui/ui.dialog.js")%> |
| <%= Html.CustomScript("menu/lib/chili-1.7.pack.js")%> |
| <%= Html.CustomScript("menu/lib/jquery.easing.js")%> |
| <%= Html.CustomScript("menu/lib/jquery.dimensions.js")%> |
| <%= Html.CustomScript("menu/jquery.accordion.js")%> |
| <%= Html.RegisterJS(ScriptStyleLibrary.Validation) %> |
| <%= Html.RegisterJS(ScriptStyleLibrary.Tabs) %> |
| </telerik:RadCodeBlock> |
| <telerik:RadStyleSheetManager runat="server" ID="RadStyleSheetManager1"> |
| <StyleSheets> |
| <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.TreeView.css" /> |
| <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Forest.TreeView.Forest.css" /> |
| <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Menu.css" /> |
| <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Forest.Menu.Forest.css" /> |
| </StyleSheets> |
| </telerik:RadStyleSheetManager> |
| <asp:ContentPlaceHolder ID="headerContent" runat="server" /> |
| </head> |
| <body> |
| <script type="text/javascript"> |
| //<![CDATA[ |
| //no conflict with prototype |
| // jQuery.noConflict(); |
| jQuery(document).ready(function() { |
| // second simple accordion with special markup |
| $('#navigation').accordion({ |
| active: false, |
| header: '.head', |
| navigation: true, |
| event: 'dbclick', |
| fillSpace: false, |
| animated: 'easeslide' |
| }); |
| $(".btn-slide").click(function() { |
| $("#historypanel").slideToggle("slow"); |
| $(this).toggleClass("historyactive"); return false; |
| }); |
| }); |
| //]]> |
| </script> |
| <p><a id="top" href="#begin-main-content" class="skip-nav">Skip Navigation</a></p> |
| <div id="pg"> |
| <div id="hd"> |
| <div id="hd-toparea"> |
| <img src="~/Content/Images/headbanner.png" alt="Head banner" runat="server" /> |
| <div id="vistoslogo"> |
| <a href="~/Default.aspx" runat="server"> |
| <img src="~/Content/Images/vistoscrm.png" alt="VISTOS CRM" runat="server" /> |
| </a> |
| </div> |
| <table id="flagbox-position"> |
| <tr> |
| <td> |
| <img id="Img2" src="~/Content/Images/layout/2layout_06.png" alt="Flag box" runat="server" /> |
| </td> |
| <td id="flagbox"> |
| <%= Html.ActionLinkImage<HomeController>(i => i.Language("cs-CZ"), "~/Content/images/flags/cs.png","ÄŒesky")%> |
| <%= Html.ActionLinkImage<HomeController>(i => i.Language("cs-SK"), "~/Content/images/flags/sk.png", "Slovensky")%> |
| <%= Html.ActionLinkImage<HomeController>(i => i.Language("en-US"), "~/Content/images/flags/en.png", "Anglicky")%> |
| <%= Html.ActionLinkImage<HomeController>(i => i.Language("fr-BE"), "~/Content/images/flags/fr.png", "Francouzsky")%> |
| </td> |
| <td> |
| <img id="Img3" src="~/Content/Images/layout/2layout_08.png" alt="Flag box" runat="server" /> |
| </td> |
| </tr> |
| </table> |
| </div> |
| </div> |
| <div id="sd-nav"> |
| <%= Html.Menu("navigation",true) %> |
| </div> |
| <div id="userstatus"> |
| <% Html.RenderPartial("LogOnUserControl"); %> |
| </div> |
| <div class="historyPanelWrap"> |
| <div id="historypanel"> |
| <%= Html.PageVisitsHistory() %> |
| </div> |
| <div class="slide"> |
| <a href="#" class="btn-slide">Historie</a> |
| </div> |
| </div> |
| <div id="main-nav"> |
| <%= Html.ContextMenu("ctxMenu",true) %> |
| </div> |
| <div id="bd"> |
| <div id="content"> |
| <a href="#begin-main-content" title="begin main content" id="begin-main-content"> |
| </a> |
| <asp:ContentPlaceHolder ID="MainContent" runat="server" /> |
| </div> |
| <div id="copyright"> |
| </div> |
| </div> |
| <div id="searchPanel"> |
| </div> |
| </div> |
| <telerik:RadScriptManager runat="server" ID="RadScriptManager1" EnableScriptCombine="true" /> |
| <% Html.jQuery().ScriptManager().Render(); %> |
| </body> |
| </html> |