Web.UI.AjaxRequestEventArgs' is not defined

5 posts, 0 answers
  1. Jon
    Jon avatar
    30 posts
    Member since:
    Apr 2009

    Posted 25 Jun Link to this post

    I know there have been previous similar old threads to this but I still keep getting this error message

    Doesn't come up all the time but stops the project from building and therefore you cant run it

    it always refers to the same sub on multiple pages

     

    Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Web.UI.AjaxRequestEventArgs)

    various lines of code....

    End Sub

     

    And on the pages in question, in page load I have the following:

     

    Dim manager As RadAjaxManager = RadAjaxManager.GetCurrent(Page)
    AddHandler manager.AjaxRequest, AddressOf RadAjaxManager1_AjaxRequest

    The project is running the latest extensions (2020.2.617) and i have been through the upgrade wizard

    ANY HELP?

     

    really starting to be a pain in the back side!

     

  2. Eyup
    Admin
    Eyup avatar
    3962 posts

    Posted 30 Jun Link to this post

    Hi Jon,

     

    You can resolve this issue using the following approach:

        protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
    
        }
    And at the top of the page:
    using Telerik.Web.UI;
    That should do the trick.

     

    Regards,
    Eyup
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
  3. Jon
    Jon avatar
    30 posts
    Member since:
    Apr 2009

    Posted 30 Jun in reply to Eyup Link to this post

    already have that on the pages in questions

    its real hit and miss doesn't always do it

  4. Eyup
    Admin
    Eyup avatar
    3962 posts

    Posted 03 Jul Link to this post

    Hello Jon,

     

    Make sure to also remove the Web.UI. part from here:

    Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Web.UI.AjaxRequestEventArgs)
    If the issue remains, you can open a formal support ticket and send us a very basic runnable web site to demonstrate the problematic behavior.

     

    Regards,
    Eyup
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
  5. Jon
    Jon avatar
    30 posts
    Member since:
    Apr 2009

    Posted 03 Jul in reply to Eyup Link to this post

    thanks, the main issue is it doesn't happen every time its very hit and miss, but i will try that
Back to Top