UrlAdapter cannot fetch the data from server side

the cshtml:



the server side:



it hints "bad request" and the http code is 400, I just write the code as the demo

3 Replies

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team November 23, 2017 04:40 PM UTC

Hi Empox, 

Thanks for contacting Syncfusion Support. 

We have checked your query and we need some additional information to find the cause of the issue. Please share us the following details given below. 

1. Please ensure that you have added proper Url path that maps  the server side. 

2. Please ensure whether path triggers for external actions other than grid. If so please share us the screenshot. 

3. Share us the screenshot/Video to replicate the issue. 

The provided details will helps us to analyze and provide you solution as early as possible.    
 
Regards,  
 
Farveen sulthana T  







EM empox November 28, 2017 04:04 AM UTC

Thanks for your reply, I have figured out my issue which is caused by CSRF-TOKEN validation in my server side. I should provider the CSRF-TOKEN in the request header just like the bellow screenshot


and also need to define a method to get the token just as below


I hope this information can help others who also have the same issue

Best Regards,
Empox


FS Farveen Sulthana Thameeztheen Basha Syncfusion Team November 29, 2017 12:49 PM UTC

Hi Empox, 
  
Thanks for your valuable information. Please get back to us if you need any further assistance. 
  
Regards, 
  
Farveen sulthana T 


Loader.
Up arrow icon