Syntax error Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_

13 posts, 0 answers
  1. Charles
    Charles avatar
    5 posts
    Member since:
    Nov 2010

    Posted 11 Nov 2010 Link to this post

    Hi,

    I'm new here. Please help.

    I'm trying to add a captcha but I always get a Javascript error like this

     

    Message: Syntax error
    URI: http://test/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.2.929.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen%3a59f173b0-ff20-435c-8399-1ee5d3741dba%3a16e4e7cd%3a86526ba7%3a874f8ea2%3a11e117d7


    This is my code

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="captchaTelerik.aspx.vb" Inherits="captchaSound" %>
    <%@ 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">
      
    <head runat="server">
        <title>Untitled Page</title>
        <style type="text/css">
            .divCaptcha
            {
                float: left;
                height: 220px;
                width: 433px;
                background-image: url('pic/captcha_back.png');
                background-repeat: no-repeat;
                padding-top: 1px;
            }
            .rcCaptchaAudioLink
            {
                margin-left: 20px;
                font-size: 16px;
                float: left;
                color: White;
                display: block;
                line-height: 1.5em;
                background-image: url('pic/audio_but.png');
                background-repeat: no-repeat;
                height: 30px;
                padding-left: 40px;
                margin-top: 12px;
                width: 120px;
            }
            .rcCaptchaAudioLink:hover
            {
                color: #F0F0F0;
            }
            .rcCaptchaImage
            {
                float: left;
            }
            .qsfPanel
            {
                float: right;
            }
            .errorMessage
            {
                margin-left: 30px;
                line-height: 20px;
            }
        </style>
      
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All"
            Skin="Hay" />
        <div class="divCaptcha">
            <table>
                <tr>
                    <td style="height: 20px;">
                        <asp:Label ID="lblErrorMessage" runat="server" ForeColor="Red" CssClass="errorMessage"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 100%; text-align: center; padding-left: 30px; padding-top: 3px;">
                        <telerik:RadCaptcha ID="RadCaptcha1" runat="server" ErrorMessage="Page not valid. The code you entered is not valid."
                            ValidationGroup="vgAudio" ValidatedTextBoxID="rcTextBox1" Display="None">
                            <CaptchaImage EnableCaptchaAudio="true" RenderImageOnly="true" ImageCssClass="rcCaptchaImage" BackgroundColor="#609f0a" TextColor="White" BackgroundNoise="None" />
                        </telerik:RadCaptcha>
                    </td>
                </tr>
                <tr>
                    <td style="padding-left: 100px; padding-top: 10px;">
                        <br />
    <asp:Label ID="rcLabel1" runat="server" AssociatedControlID="rcTextBox1" Text="Type the code from the image:"
    ForeColor="#005000"></asp:Label>
                        <br />
                        <asp:TextBox ID="rcTextBox1" runat="server" MaxLength="5" Width="170px"></asp:TextBox>   
                        <asp:Button ID="captchaButton" runat="server" ValidationGroup="vgAudio" Text="Submit" OnClick="validateTelerikCaptcha"/>
                    </td>
                </tr>
            </table>
        </div>
        
        <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
      
            <script type="text/javascript">
                //<![CDATA[
              /* function pageLoad()
                {
                    var captchaTextBox = document.getElementById("<%= rcTextBox1.ClientID %>");
                    captchaTextBox.setAttribute("autocomplete", "off");
                }*/
                //]]>
            </script>
      
      
        </telerik:RadScriptBlock>
      
        </div>
        </form>
    </body>
    </html>
    Did I miss something?

    Thx
     

  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 12 Nov 2010 Link to this post

    Hello Charles,

    Could you please check if the httpHandler serving the RadCaptcha image, and RadScriptManager's scripts, is registered in the web.config file of your application?

    You can use the RadCaptcha's or RadScriptManager's smart tag to enable the handler, or manually register them in the web.config as shown in the following help article: http://www.telerik.com/help/aspnet-ajax/radscriptmanager.html.

    I tried to reproduce the problem with the provided code, but didn't manage to. Please provide code that will help us observe the issue locally, along with detailed reproduction steps.

    Kind regards,
    Pero
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Charles
    Charles avatar
    5 posts
    Member since:
    Nov 2010

    Posted 12 Nov 2010 Link to this post

    Thanks for the answer.

    This is my web.config. Can you tell me what is missing?

    Thanks
    Charles

    <?xml version="1.0"?>
      
    <configuration>
      
        
      <configSections>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
            <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
              <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
              <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
              <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
              <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
            </sectionGroup>
          </sectionGroup>
        </sectionGroup>
      </configSections>
      
      <system.web>
      
        <compilation debug="true" strict="false" explicit="true" >
      
          <assemblies>
            <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      
      
            <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
      
            <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      
      
          </assemblies>
      
        </compilation>
      
      
        <httpHandlers>
          <remove verb="*" path="*.asmx"/>
          <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
        </httpHandlers>
        <httpModules>
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </httpModules>
      
        <siteMap defaultProvider="SamplesSiteMap">
          <providers>
            <add name="SamplesSiteMap" type="System.Web.XmlSiteMapProvider" siteMapFile="~/Samples.sitemap"/>
            <add name="WalkthroughsSiteMap" type="System.Web.XmlSiteMapProvider" siteMapFile="~/Walkthroughs.sitemap"/>
          </providers>
        </siteMap>
      
        <globalization culture="en-us" uiCulture="en" />
      </system.web>
      
      <system.codedom>
        <compilers>
          <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
                    type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
            <providerOption name="CompilerVersion" value="v3.5"/>
            <providerOption name="WarnAsError" value="false"/>
          </compiler>
          <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4"
                    type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
            <providerOption name="CompilerVersion" value="v3.5"/>
            <providerOption name="OptionInfer" value="true"/>
            <providerOption name="WarnAsError" value="false"/>
          </compiler>
        </compilers>
      </system.codedom>
      
      <!-- 
            The system.webServer section is required for running ASP.NET AJAX under Internet
            Information Services 7.0.  It is not necessary for previous version of IIS.
        -->
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules>
          <remove name="ScriptModule" />
          <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </modules>
        <handlers>
          <remove name="WebServiceHandlerFactory-Integrated"/>
          <remove name="Telerik_Web_UI_WebResource_axd"/>
          <remove name="ScriptHandlerFactory" />
          <remove name="ScriptHandlerFactoryAppServices" />
          <remove name="ScriptResource" />
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
               type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode"
               type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>  
        </handlers>
      </system.webServer>
      
      <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
    </configuration>
  5. Bill
    Bill avatar
    1 posts
    Member since:
    Mar 2009

    Posted 16 Nov 2010 Link to this post

    Did you find an answer? I'm experiencing the same issue.

    Thanks!
  6. Charles
    Charles avatar
    5 posts
    Member since:
    Nov 2010

    Posted 16 Nov 2010 Link to this post

    Hi,

    I made a change in web.config and it's working. Hope this will help.
    <?xml version="1.0"?>
    <!-- 
        Note: As an alternative to hand editing this file you can use the 
        web admin tool to configure settings for your application. Use
        the Website->Asp.Net Configuration option in Visual Studio.
        A full list of settings and comments can be found in 
        machine.config.comments usually located in 
        \Windows\Microsoft.Net\Framework\v2.x\Config 
    -->
    <configuration>
        <configSections>
            <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                        <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
                        <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                        <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/></sectionGroup></sectionGroup></sectionGroup></configSections>
        <appSettings/>
        <connectionStrings/>
        <system.web>
            <!-- 
                Set compilation debug="true" to insert debugging 
                symbols into the compiled page. Because this 
                affects performance, set this value to true only 
                during development.
            -->
            <!--
                Set compilation debug="true" to insert debugging
                symbols into the compiled page. Because this
                affects performance, set this value to true only
                during development.
            --><compilation debug="true">
                <assemblies>
                    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
            <!--
                The <authentication> section enables configuration 
                of the security authentication mode used by 
                ASP.NET to identify an incoming user. 
            -->
            <authentication mode="Windows"/>
            <pages>
                <controls>
                    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                    <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/></controls></pages>
            <httpHandlers>
                <remove verb="*" path="*.asmx"/>
                <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
                <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
                <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
                <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
                <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
                <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/></httpHandlers>
            <httpModules>
                <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/></httpModules>
            <!--
                The <customErrors> section enables configuration 
                of what to do if/when an unhandled error occurs 
                during the execution of a request. Specifically, 
                it enables developers to configure html error pages 
                to be displayed in place of a error stack trace.
      
            <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                <error statusCode="403" redirect="NoAccess.htm" />
                <error statusCode="404" redirect="FileNotFound.htm" />
            </customErrors>
            -->
        </system.web>
        <system.web.extensions>
            <scripting>
                <webServices/></scripting></system.web.extensions>
        <system.webServer>
            <validation validateIntegratedModeConfiguration="false"/>
            <modules>
                <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/></modules>
            <handlers>
                <remove name="WebServiceHandlerFactory-Integrated"/>
                <remove name="ChartImage_axd"/>
                <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
                <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
                <remove name="Telerik_RadUploadProgressHandler_ashx"/>
                <remove name="Telerik_Web_UI_WebResource_axd"/><add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
                <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
                <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
                <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
                <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/></handlers></system.webServer>
    </configuration>
  7. wayne
    wayne avatar
    5 posts
    Member since:
    Aug 2010

    Posted 22 Dec 2010 Link to this post

    Hmmm, i've got a report from one of our users getting this as well.  See screenshot attached.

    The page that is getting this is fairly basic.  

    (Aspx code)

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ActivityReminders.aspx.cs" Inherits="ActivityRemindersPage" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <head>
    <base target="_self" />
        <title></title>
     
        <script>
            document.title = "Reminders";
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <!-- Manages the download of any required scripts caused by ajax actions -->
            <telerik:RadScriptManager runat="server" ID="RadScriptManager1">
                <Scripts>
                    <asp:ScriptReference Name="MicrosoftAjax.js" />
                </Scripts>
            </telerik:RadScriptManager>
     
            <!-- Our AJAX loader to use when saving/loading etc -->
            <telerik:RadAjaxLoadingPanel ID="ajaxLoadingPanel" runat="server" />
     
            <!-- StyleSheet download management -->
            <telerik:RadSkinManager runat="server" ID="RadSkinManager1" Skin="Office2007" PersistenceKey="Skin" PersistenceMode="Session" Visible="true" />
     
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="pnlControls">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="pnlControls" />
                            <telerik:AjaxUpdatedControl ControlID="gridActivities" LoadingPanelID="ajaxLoadingPanel" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
             
             
            <asp:Panel runat="server" ID="pnlControls">
            <table>
                <col width="50px" />
                <col width="140px" />
                <col width="50px" />
                <col width="50px" />
     
                <tr>
                    <td colspan="4" valign="top"><div><img src="/CTWebImages/Calendar/Reminder.jpg" width="32px" height="32px" align="left" /><asp:Label runat="server" ID="lblActivityDesc"></asp:Label></div><div><asp:Label runat="server" ID="lblActivityTime"></asp:Label></div></td>
                </tr>
     
                <tr>
                    <td colspan="4">
                        <telerik:RadGrid ID="gridActivities" runat="server" AutoGenerateColumns="False"
                            GridLines="None" Height="150px" Width="400px" OnSelectedIndexChanged="SelectedRow_Changed">
                            <MasterTableView ClientDataKeyNames="UniqueId">
                            <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
     
                            <RowIndicatorColumn>
                            <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>
     
                            <ExpandCollapseColumn>
                            <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridTemplateColumn DataField="Subject"   UniqueName="Subject" HeaderText="Reminders" HeaderStyle-Width="100%">                                   
                                        <ItemTemplate>
                                            <%#GetRelatedCustomerName(Container.DataItem)%><%#Eval("Subject") %>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
     
                                    <telerik:GridTemplateColumn UniqueName="Due" HeaderText="Due" HeaderStyle-Width="110px">
                                        <ItemTemplate>
                                            <%#GetDueText(Container.DataItem) %>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                            </MasterTableView>
     
                            <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
                                <Selecting AllowRowSelect="true" />
                                <ClientEvents  />
                                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                            </ClientSettings>
     
                            
                        </telerik:RadGrid>
                    </td>
                </tr>
     
                <tr>
                    <td>
                        <asp:Button ID="btnDismissAll" runat="server" Text="Dismiss All"
                            onclick="btnDismissAll_Click" />
     
                            <asp:Button ID="btnCreateActivities" runat="server" onclick="btnCreateActvities_Click" Visible="false" Text="Create Some" />
                    </td>
                    <td>
                          
                    </td>
                    <td>
                        <asp:Button ID="btnOpen" runat="server" Text="Open" onclick="btnOpen_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnDismiss" runat="server" onclick="btnDismiss_Click" Text="Dismiss" />
                    </td>
                </tr>
     
                <tr>
                    <td colspan="4">
                        <asp:Label ID="lblSnooze" runat="server" Text="Click Snooze to be reminded again in:"></asp:Label>
                    </td>
                </tr>
     
                <tr>
                    <td colspan="3">
                        <telerik:RadComboBox ID="cmbSnoozeTime" Runat="server" Width="100%"
                            AppendDataBoundItems="True" MaxHeight="100px">
     
                            <Items>
                                <telerik:RadComboBoxItem Text="5 minutes before start" Value="5_MINUTES_BEFORESTART" />
                                <telerik:RadComboBoxItem Text="10 minutes before start" Value="10_MINUTES_BEFORESTART" />
                                <telerik:RadComboBoxItem Text="15 minutes before start" Value="15_MINUTES_BEFORESTART" />
     
                                <telerik:RadComboBoxItem Text="5 minutes" Value="5_MINUTES_FROMNOW" />
                                <telerik:RadComboBoxItem Text="10 minutes" Value="10_MINUTES_FROMNOW" />
                                <telerik:RadComboBoxItem Text="15 minutes" Value="15_MINUTES_FROMNOW" />
                                <telerik:RadComboBoxItem Text="30 minutes" Value="30_MINUTES_FROMNOW" />
     
                                <telerik:RadComboBoxItem Text="1 hour"  Value="1_HOURS_FROMNOW" />
                                <telerik:RadComboBoxItem Text="2 hours" Value="2_HOURS_FROMNOW" />
                                <telerik:RadComboBoxItem Text="4 hours" Value="4_HOURS_FROMNOW" />
                                <telerik:RadComboBoxItem Text="5 hours" Value="5_HOURS_FROMNOW" />
                                <telerik:RadComboBoxItem Text="8 hours" Value="8_HOURS_FROMNOW" />
                                <telerik:RadComboBoxItem Text="12 hours" Value="12_HOURS_FROMNOW" />
     
                                <telerik:RadComboBoxItem Text="1 day"  Value="1_DAYS_FROMNOW" />
                                <telerik:RadComboBoxItem Text="2 days" Value="2_DAYS_FROMNOW" />
                                <telerik:RadComboBoxItem Text="3 days" Value="3_DAYS_FROMNOW" />
                                <telerik:RadComboBoxItem Text="4 days" Value="4_DAYS_FROMNOW" />
                                <telerik:RadComboBoxItem Text="1 week" Value="7_DAYS_FROMNOW" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
     
                    <td>
                        <asp:Button ID="btnSnooze" runat="server" onclick="btnSnooze_Click" Text="Snooze" />
                    </td>
                </tr>
            </table>
     
            </asp:Panel>
        </form>
    </body>
    </html>
  8. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 23 Dec 2010 Link to this post

    Hello Wayne,

    I examined the ASPX code, but could not find a RadCaptcha control on the page. Also there does not seem to be problem with the RadScriptManager control. Could you please open a new support ticket and send us a sample project that demonstrates the issue? Make sure you open the ticket for the specific product (if the problem is with the ScriptManager, send the ticket in the RadScriptManager's section).
    Please provide us with any information that you think might help us debug the issue, screenshots, video, live url.

    Kind regards,
    Pero
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  9. Paul
    Paul avatar
    5 posts
    Member since:
    Mar 2011

    Posted 29 Mar 2011 Link to this post

    I'm getting the same error with the Ajax/Dynamic Ajax Settings demo that installed with Q3 2010 Live Examples.

    /radcontrols_aspnetajax/ajax/examples/manager/dynamicajaxsettings/defaultcs.aspx

    Occurs when trying to edit or add new user and am unable to properly load the HTML editor.
  10. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 31 Mar 2011 Link to this post

    Hello Paul,

    I installed the Q3 2010 Live demos to try to reproduce the issue locally, but to no avail. I also tested the demo online, and still I can't reproduce any problems. Could you please provide a detailed reproduction steps (like step by step what action should be performed)? I might be doing something wrong and that's why could not see any problems.

    Kind regards,
    Pero
    the Telerik team
  11. Paul
    Paul avatar
    5 posts
    Member since:
    Mar 2011

    Posted 06 Apr 2011 Link to this post

    Nothing special. Just trying out the various controls for editing/adding employee data. I've since installed on a new server and am getting similar problems.

    Load the page, click either Add New Employee or Edit link and get a RadEditor control with blue background (no write area) and no Delete/Update/Insert buttons. Click either link again and the controls load fine. Click Insert or Update.

    Then click to Edit newly added or another user and get the following:

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
    Timestamp: Wed, 6 Apr 2011 05:40:51 UTC

    Message: Sys.WebForms.PageRequestManagerServerErrorException: String was not recognized as a valid DateTime.
    Line: 6
    Char: 62099
    Code: 0
    URI: http://localhost:8301/RadControls_AspNetAjax/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3afec40ae8-2c1f-4db6-96ca-d6c61af2dc7f%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a62e881c6-518e-447d-b6e7-1af83cb2d164%3a16e4e7cd%3af7645509%3a24ee1bba%3af46195d3%3a1e771326%3aaa288e2d%3aed16cbdc%3a874f8ea2%3a19620875%3a490a9d4e%3abd8f85e4%3a58366029%3aa7e79140

    Note that the error only occurs with some users. I haven't had the time or inclination to work which or why. :)

  12. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 08 Apr 2011 Link to this post

    Hi wayne,

    It seems that is some problem with the culture and parsing the DateTime. In the different cultures the date and time format is different and for some reason it is not parsed properly. But I am not able to determinate what is causing this issue based only on the provided information. Could you make some further investigation on when this problem occurs. Is this happens in all browsers? Does this happen every time for a given user or just sometimes? Tell us all other information that could be relevant.

    All the best,
    Vasil
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  13. Paul
    Paul avatar
    5 posts
    Member since:
    Mar 2011

    Posted 10 Apr 2011 Link to this post

    The following binding in ..\Ajax\Examples\Manager\dynamicajaxsettings\EmployeesGrid.ascx explicitly uses US date format for the BirthDate field. I guess it's chucking a wobbly when it encounters an invalid date such as 31/07/2010.

    78        if (e.Column.IsBoundToFieldName("BirthDate"))
    79        {
    80            ((GridBoundColumn)e.Column).DataFormatString = "{0:MM/dd/yyyy}";

    Again, I don't have the time or inclination to fully fully debug this. The source code should be widely available. :)

    Have only run the demos under IE8 on Windows Servr 2003 R2 (x64) SP2.

    Update:

    OK, I've done a little more testing and, in addition to what's already been stated, can confrim the following behaviour.

    If I manually enter an invalid dd/MM/yyyy date and update the record, the updated info switches the values so that 27/04/1900 becomes 04/27/1900. Any record update in this manner becomes uneditable and throws the "String was not recognized as a valid DateTime" error above.

    Bear in mind that some records actually thow this error to begin with and do not become selected when clicked.

    Hope that helps.
  14. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 12 Apr 2011 Link to this post

    Hello Paul,

    There was an error in inserting logic in this demo. In EmployeesGridCS.ascx, the employeesTable.Rows.Add(newRow); should be inside the Try statement. This will ensure that no record will be added if the input date is invalid. I have fixed this locally and in a few days the online demos will be also updated.

    This is the corrected code:
    protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e)
    {
        DataTable employeesTable = this.EmployeesData.Tables["Employees"];
        DataRow newRow = employeesTable.NewRow();
        try
        {
            foreach (DataColumn column in employeesTable.Columns)
            {
                switch (column.ColumnName)
                {
                    case "FirstName":
                        newRow[column.ColumnName] = (this.Page.FindControl(column.ColumnName) as RadTextBox).Text;
                        break;
                    case "LastName":
                        newRow[column.ColumnName] = (this.Page.FindControl(column.ColumnName) as RadTextBox).Text;
                        break;
                    case "Title":
                        newRow[column.ColumnName] = (this.Page.FindControl(column.ColumnName) as RadTextBox).Text;
                        break;
                    case "TitleOfCourtesy":
                        newRow[column.ColumnName] = (this.Page.FindControl(column.ColumnName) as RadComboBox).SelectedValue;
                        break;
                    case "BirthDate":
                        newRow[column.ColumnName] = (this.Page.FindControl(column.ColumnName) as RadDatePicker).SelectedDate;
                        break;
                    case "Notes":
                        newRow[column.ColumnName] = (this.Page.FindControl(column.ColumnName) as RadEditor).Content;
                        break;
                    default:
                        break;
     
                }
            }
            //As this example demonstrates only in-memory editing, a new primary key value should be generated
            //This should not be applied when updating directly the database
            newRow["EmployeeID"] = (int)employeesTable.Rows[employeesTable.Rows.Count - 1]["EmployeeID"] + 1;
            employeesTable.Rows.Add(newRow);
            this.EmployeesData.Tables["Employees"].AcceptChanges();
        }
        catch (Exception ex)
        {
            RadGrid1.Controls.Add(new LiteralControl("Unable to insert into Employees. Reason: " + ex.Message));
            e.Canceled = true;
            e.Item.OwnerTableView.IsItemInserted = false;
        }           
        e.Item.OwnerTableView.Rebind();
        this.Page.FindControl("pnlExternalForm").Visible = false;
    }

    Best wishes,
    Vasil
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

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