locked
How to add a custom HTML form for user to input data in Grid app?

    Question

  • Hi, I've created a Windows app by using Grid app template. The data in the Grid app is displayed from a .txt file.

    Now I want to add a custom HTML form for user to key in some data to store in SQL Server DB.

    How do I add or modify my app to add the HTML form? Please advice.

    Thank you!

    Saturday, August 10, 2013 4:15 PM

Answers

  • Hi Mike

    If my understanding is correct, you are reading the data from a txt file locally, and now you want to save and read the data to/from a remote SQL database.

    Normally the suggestion is to create a Windows Runtime Component by C# and then you will be able to use it in Javascript. In your custom HTML form, you could use javascript call a DB connection, and store the data in SQL server side.

    This link is the example for you: https://github.com/doo/SQLite3-WinRT. By using this library, you will be able to communite with a SQLite database. If my understanding is correct, this will help you for your issue.

    Best Regards,


    James He
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, August 12, 2013 8:00 AM
    Moderator