read data from an aspx page

4 posts, 0 answers
  1. Jon
    Jon avatar
    24 posts
    Member since:
    Apr 2009

    Posted 08 Jul 2013 Link to this post

    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?
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 10 Jul 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Jon
    Jon avatar
    24 posts
    Member since:
    Apr 2009

    Posted 10 Jul 2013 Link to this post

    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
  5. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 12 Jul 2013 Link to this post

    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!
Back to Top
Kendo UI is VS 2017 Ready