Solved

Display Azure Blob in ASP.NET GridView

Posted on 2013-06-22
3
966 Views
Last Modified: 2014-11-12
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.

Thanks.
0
Comment
Question by:gerrystrat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
lenordiste earned 500 total points
ID: 39269172
Why do you need the container to be private? Sounds like this is why it is not working. If you do need the container to remain private, but require some users (logged in?) to access blob ressources than look at this link which provides a great explanation on how to work around the issue inherent with blob storages:
http://blogs.msdn.com/b/eugeniop/archive/2010/04/13/windows-azure-guidance-using-shared-key-signatures-for-images-in-a-expense.aspx
0
 
LVL 11

Expert Comment

by:lenordiste
ID: 39269173
to the above information, i would add a 4th option: you may want to consider maintaining two separate containers, one for public contents (images for example) and one for private contents.
0
 

Author Comment

by:gerrystrat
ID: 39269329
Thanks, lenordiste.  My customers are regulated electric utilities and all of their data, regardless of how sensitive it is, must be private.

I'm going to pursue the shared key access approach you suggested.  Thanks, again.
0

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Setting up a 2016 Server Standard and Hyper V 6 74
asp.net figure out error 3 45
how to demote a DC microsoft server 2016 13 138
Validation for a field in asp.net 3 30
Many CHPs use the buzzword ‘Cloud Hosting’ to sell the idea of reliability. Most consumers have the opinion that cloud hosting is easily scalable and can handle just about anything. Further, most CHPs are not transparent and hide the underlying arch…
Many of the companies I’ve worked with have embraced cloud solutions due to their desire to “get out of the datacenter business.” The ability to achieve better security and availability, and the speed with which they are able to deploy, is far grea…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question