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

How do I know if AJAX call is generated by user or by code?

1 Answer 41 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Derrick
Top achievements
Rank 1
Derrick asked on 15 Mar 2012, 05:23 PM
I'm trying to handle AJAX calls differently in ASP.NET, depending on whether they are made by the end user or through my own code.

I'm using the Telerik RAD drop down and Telerik date picker control in my page.

Both have Client events that can be triggered and handled.

Are these client events only able to be triggered via user interaction?

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 20 Mar 2012, 01:42 PM
Hello Derrick,

Can you please elaborate on which events exactly you have in mind? In case their source cannot be captured, you could use hidden fields or flags in your functions to mark when you use code that would raise an event.

Kind regards,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
Derrick
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or