Need help with Demo Code

4 posts, 0 answers
  1. LJ
    LJ avatar
    5 posts
    Member since:
    Nov 2010

    Posted 17 Nov 2010 Link to this post

    I am trying to use the demo code from this page:
    http://demos.telerik.com/aspnet-ajax/spell/examples/googlespell/defaultvb.aspx

    I have created a new project in VS2010 and added a new item (DefaultVB.aspx).

    I then copied the entire aspx code and vb code into the respective files.  I did remove the code not needed:
    <%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
     
    <qsf:HeadTag runat="server" ID="Headtag1"></qsf:HeadTag>
     
    <qsf:Header ID="Header1" runat="server" NavigationLanguage="VB"></qsf:Header>
     
    <qsf:Footer ID="Footer1" runat="server"></qsf:Footer>

    I am getting an error message from VS (and the project won't build).  The error is:
    'RadSpell1' is not declared.  It may be inaccessible due to its protection level. on Line 22

    This is that code block (which includes the line causing the error:
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
            RadSpell1.SpellCheckProviderTypeName = _
           GetType(GoogleSpellCheckProvider).AssemblyQualifiedName
    End Sub

    Any advice on what I am doing wrong?

    Thanks,

    LJ
  2. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 17 Nov 2010 Link to this post

    Hi LJ,

    I am not sure what the problem is, but I created for you and attached a sample working project that demonstrates the Custom Google spellcheck provider.

    Greetings,
    Rumen
    the Telerik team
    Browse the vast support resources we have to jumpstart 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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. LJ
    LJ avatar
    5 posts
    Member since:
    Nov 2010

    Posted 17 Nov 2010 Link to this post

    I get the same error.  I added DefaultVB  using Add -> Existing Item and copied over my web.config with yours.

    Same error.
  5. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 17 Nov 2010 Link to this post

    Hi LJ,

    Can you please confirm that the problem is reproducible with the project attached to my earlier reply?

    If you are using an older version of RadControls, it is highly recommended to upgrade to the latest Q3 2010 release, ver. 2010.3.1109 of RadControls for ASP.NET AJAX.



    Greetings,
    Rumen
    the Telerik team
    Browse the vast support resources we have to jumpstart 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