Display Azure Blob in ASP.NET GridView
Posted on 2013-06-22
I have an existing Microsoft ASP.NET web forms application that I am migrating to Azure web sites. The application displays images in a gridview. In the current application, the file path for the gridview is stored in a SQL Server database and the images are stored on the same network as the web server.
The new application will utilize Azure web sites, SQL Azure and Azure storage. I already have the Azure web site running and connected to a SQL Azure database. The application can successfully upload blobs to my Azure storage container, but I am not sure how to bind them to the gridview.
The container must be private. The gridview uses a stored procedure to get the blob names to be displayed.
I have looked all over for an example on how to do this and I am beginning to think my approach is wrong. Can someone point me to a good example or suggest a better approach.