Jul 09, 2015 12:27 PM|Mikesdotnetting|LINK
How can I specify ~/images/thumbs which refers to a directory when I've got the image in a SQL CE database?
You need to create a separate cshtml file whose sole responsibility is to retrieve the bytes from the database and send them to the browser. Then you use the name of the file as the URL for the src attribute of your img element, and pass in the ID of the
image in the database as a querystring parameter. The technique is illustrated in this article: http://www.mikesdotnetting.com/article/148/save-and-retrieve-files-from-a-sql-server-ce-database-with-webmatrix
The article you referenced featuring a GridView is irrelevant to you. That's a Web Forms server control which you can't use in Web Pages.