Hi,
i have tried to integrate a 3rd party javascript library and use the widget control, the 3rd party control sends data using POST with data as follows:
{“url”:”postback.wx?sid=1qbm5ll3qcfe2xe3ch5fejpa&x=ewAiAGkAZAAiADoAIgBpAGQAXwAzADkAIgB9AA==/Post”,”method”:”POST”,”data”:{“values”:”{\”STARTDATE\”:\”2020-06-18T08:00:00.000\”,\”ENDDATE\”:\”2020-06-18T08:30:00.000\”,\”AllDay\”:false,\”description\”:\”test2\”,\”SUBJECT\”:\”test\”}”},”dataType”:”text”}
In webrequest event of that widget, I cannot see where are the values of data: went? I cannot see it anymore.
Hope you can help me on this.
Thanks.
Hi Glenn,
Check out the updated attached sample. Widget_WebRequest is hit twice in your sample.
e.Request.Form is populated in the second scenario, it contains the new record.
Let me know if you have any questions about it.
BTW, we also offer the DevExpress DevExtreme control set (as a wrapped C# object, so you don’t have to touch JS) as a premium extension for Technology Partners if you’re interested. Just one of the many cool perks!
Best,
Levie
Please see attached sample project, please take note, in webrequest event, e.Request.Form always zero length list/array.
Thanks.
Hi Glenn,
You received the data in the Widget_WebRequest handler?
You can find the POST data in e.Request.Form.
You can access the GET parameters with e.Request.QueryString.
If you attach a small sample I can help you look at it further!
Best regards,
Levie
Please login first to submit.