Scriptmanager error

2 posts, 0 answers
  1. John
    John avatar
    41 posts
    Member since:
    Jun 2008

    Posted 20 Dec 2014 Link to this post

    Hi:

    Just struggling tog et a very simple RadTabStrip POC working, am now getting an error:

    Control 'ScriptManager1' of type 'ScriptManager' must be placed inside a form tag with runat=server.

    However when I look at the code (pasted below) it seems to me the Scriptmanager tag is very clearly inside the form tag with the runat=server tag. Can anyone offer any suggestions?

    John.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <!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></title>
       </head>
    <body>
        <form id="form1" runat="server">

        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
        <div style="z-index: 102; left: 0px; width: 800px; position: absolute; top: 0px; height: 1000px">
          <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="692px" Width="798px">
            <telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0">
              <Tabs>
                <telerik:RadTab runat="server" Selected="True" Text="Store Information" PageViewID="RadPageView1">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="General Information" PageViewID="RadPageView2">
                </telerik:RadTab>
                <telerik:RadTab runat="server" BackColor="#CCC0DA" Text="Fruits">
                </telerik:RadTab>
                <telerik:RadTab runat="server" BackColor="#C4BD97" Text="Nuts &amp; Ginseng">
                </telerik:RadTab>
                <telerik:RadTab runat="server" BackColor="#C4D79B" Text="Vegetables">
                </telerik:RadTab>
                <telerik:RadTab runat="server" BackColor="#B7DEE8" Text="Fish &amp; Shell Fish">
                </telerik:RadTab>
                <telerik:RadTab runat="server" BackColor="#E6B8B7" Text="Beef &amp; Veal">
                </telerik:RadTab>
              </Tabs>
            </telerik:RadTabStrip>
            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" Height="365px" SelectedIndex="0">
              <telerik:RadPageView ID="RadPageView1" runat="server" Height="360px" Width="787px">
                <asp:Label ID="Label1" runat="server" Font-Bold="True" Text="Store Information"></asp:Label>
                <asp:Label ID="Label2" runat="server" Font-Bold="True" Text="Store Name:"></asp:Label><asp:TextBox ID="txtStoreName" runat="server"></asp:TextBox>
                <asp:Label ID="Label3" runat="server" Font-Bold="True" Text="Store ID Number:"></asp:Label><asp:TextBox ID="txtStoreID" runat="server"></asp:TextBox>
                <asp:Label ID="Label4" runat="server" Font-Bold="True" Text="Corporate Name:"></asp:Label><asp:TextBox ID="txtCorpName" runat="server"></asp:TextBox>
                <asp:Label ID="Label5" runat="server" Font-Bold="True" Text="Store Address:"></asp:Label><asp:TextBox ID="txtAddress1" runat="server"></asp:TextBox>
                <asp:Label ID="Label6" runat="server" Font-Bold="True" Text="City, State, Zip:"></asp:Label><asp:TextBox ID="txtCityStateZip" runat="server"></asp:TextBox>
                <asp:Label ID="Label7" runat="server" Font-Bold="True" Text="Store Phone Number:"></asp:Label><asp:TextBox ID="txtStorePhone" runat="server"></asp:TextBox>
                <asp:Label ID="Label8" runat="server" Font-Bold="True" Text="PACA License #:"></asp:Label><asp:TextBox ID="txtPACA" runat="server"></asp:TextBox>
              </telerik:RadPageView>
              <telerik:RadPageView ID="RadPageView2" runat="server" Height="360px" Width="787px">
              </telerik:RadPageView>
            </telerik:RadMultiPage>      
          </telerik:RadAjaxPanel>


        </div>
        </form>
    </body>
    </html>
  2. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 24 Dec 2014 Link to this post

    Hi John,

    This works perfectly fine. Please verify that the thrown error is not on a
    different page. Clean and Rebuild your project, it is possible that Visual Studio has cached the latest compiled assembly.

    Regards,
    Hristo Valyavicharski
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top