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

read data from an aspx page

3 Answers 42 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 2
Veteran
Jon asked on 08 Jul 2013, 03:30 PM
I am new to kendo UI and have started to migrate a desktop web site for a client into a mobile app.

I have a aspx page that is being loaded into a remote view.

in the non mobile world i would submit the page back to itself and get the submitted form values and continue.

But I have been told in the mobile would I shouldn't really start using postbacks as it would/could cause issue, so is a Data source what I need to use as I need to query a mysql db to get the price for the given values from the form?

I cant find any easy answers as I am NOT using MVC and dont want to......

Anyone got any pointers on how I might do this?

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 10 Jul 2013, 09:07 AM
Hello Jon,

Your understanding is correct, using postbacks will break the SPA concept used by the Mobile Application. The communication with the server should be established via Ajax requests. Remote transport of the DataSource uses jQuery.ajax to send or retrieve remote data from the server.

For more information I suggest you to check this tutorial:

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jon
Top achievements
Rank 2
Veteran
answered on 10 Jul 2013, 09:31 AM
thanks, yes i had already found this and I have now managed to create a web service to query my data and it all works well

The next issue  i have is that the web service is now not secure as anyone can access it as its all there in the JS code client side so anyone could exploit it
0
Alexander Valchev
Telerik team
answered on 12 Jul 2013, 07:16 AM
Hello Jon,

I am afraid that your new question is not directly related to Kendo UI and as such is out of the scope of our standard support service. Security questions are related to general programming knowledge, you will notice exactly the same issue if you use standard jQuery.ajax request.

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
Jon
Top achievements
Rank 2
Veteran
Answers by
Alexander Valchev
Telerik team
Jon
Top achievements
Rank 2
Veteran
Share this question
or