Last post Dec 14, 2014 04:49 PM by AidyF
Dec 14, 2014 01:58 PM|daveharney|LINK
Comparing the performance of an HTML page to an ASPX page where the HTML page uses the Web API (with JSON) to get data (to populate a table) from xxxController.vb (or .cs) code and the ASPX page using a Gridview control to get data from a code behind page.
Assuming pretty much the same type of data access from an SQL Server DB, would we expect either one to display the result in the browser faster than the other? In other words, is the Web API inherently faster or slower in making the connection to the DB access
code and delivering the result to the HTML page than the Gridview scenario delivering data to an ASPX page?
Dec 14, 2014 04:49 PM|AidyF|LINK
An ajax solution will vary depending on the browser and hardware the person is using, a gridview solution less so. However the ajax solution will at least get "something" back to the user quicker, and they'll get a loading animation while the data is retrieved.
Also if you construct a table from raw json using js then it might transmit less data over the wire than creating a table with all it's <tr><td> tags etc.