HTML5 Server data

105881
105881 used Ask the Experts™
on
I'm an ASP developer trying to understand how HTML5 gets data to display.
With ASP.NET you run server code to query a database and fill a data grid and display it.

If I'm using HTML5 how do I get data in my (SQL Server) database into a HTML5 table or grid?
Do I have to have an API on the server and read JSON data from the API or does HTML5 have functions to read directly from a SQL server database?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Fixer of Problems
Most Valuable Expert 2014
Commented:
No, HTML5 is still HTML and only displays data in the web browser.  You still use ASP to get and deliver the data.  ASP.NET unfortunately does a lot to hide the fact that you are populating an HTML page but that is what you are doing.  Browsers only display HTML no matter which version it is.

To see what I'm talking about, take a simple ASP.NET page and compare the ASP source code and the source code you see in the browser using "View Source".

Author

Commented:
I have an HTML page and want to add a SQL server data table to the page. So I still need an ASP or PHP server page to supply the SQL data to the HTML page?

Author

Commented:
Thanks I understand now.
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
You're welcome, glad to help.  Server side code with ASP or PHP is still needed to generate the HTML code from the SQL data.  Even techniques like AJAX depend on a server program to deliver the data to the page.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial