This is a migrated thread and some comments may be shown as answers.

Web.UI.AjaxRequestEventArgs' is not defined

4 Answers 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 2
Veteran
Jon asked on 25 Jun 2020, 11:05 AM

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!

 

4 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 30 Jun 2020, 08:43 AM

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.
0
Jon
Top achievements
Rank 2
Veteran
answered on 30 Jun 2020, 09:25 AM

already have that on the pages in questions

its real hit and miss doesn't always do it

0
Eyup
Telerik team
answered on 03 Jul 2020, 06:03 AM

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.
0
Jon
Top achievements
Rank 2
Veteran
answered on 03 Jul 2020, 07:50 AM
thanks, the main issue is it doesn't happen every time its very hit and miss, but i will try that
Tags
General Discussions
Asked by
Jon
Top achievements
Rank 2
Veteran
Answers by
Eyup
Telerik team
Jon
Top achievements
Rank 2
Veteran
Share this question
or