This question is locked. New answers and comments are not allowed.
Hello all,
I've just downloaded the extensions yesterday and trying out some of the featured. My very first attempt, got an "Index was out of range" error whenever I add the StyleSheetRegistrar() or ScriptRegistrar() onto the page, if I comment them out, the page run just fine. I've added the handlers to the web.config, followed the exact steps in the demos, but still having problems.
This is an MVC 2 Preview 2 project, I've also added the MVC Future DLL (Microsoft.Web.Mvc), below is my Site master page:
<%@ Import Namespace="Telerik.Web.Mvc.UI" %> |
<%@ 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> |
<%= Html.Telerik().StyleSheetRegistrar() |
.DefaultGroup(group => group |
.Add("styles.css") |
.Add("telerik.common.css") |
.Combined(true)) |
%> |
</head> |
<body> |
<h1> |
My MVC Application</h1> |
<div id="logindisplay"> |
<% Html.RenderPartial("LogOnUserControl"); %> |
</div> |
<asp:ContentPlaceHolder ID="MainContent" runat="server" /> |
<% |
Html.Telerik().ScriptRegistrar().Render(); %> |
</body> |
</html> |
Any idea what was wrong? Thank you very much,
Kenny.