1 Replies - 1162 Views - Last Post: 07 March 2009 - 09:17 AM Rate Topic: -----

#1 blakpower  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 26
  • Joined: 09-February 09

Viewing Image on aspx page from sql server database (ASP.NET,C#, SQL S

Posted 07 March 2009 - 07:01 AM

Hi

I have stored my image path in a sql server database. - "C:\images\image.png"

i was wondering how i could view it on my aspx page if i want to display it in a gridview

Thank you
Is This A Good Question/Topic? 0
  • +

Replies To: Viewing Image on aspx page from sql server database (ASP.NET,C#, SQL S

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1659
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Viewing Image on aspx page from sql server database (ASP.NET,C#, SQL S

Posted 07 March 2009 - 09:17 AM

You would pull the path from the database and use it in the src of the image

<img src='<%#Eval("ImagePath")%>' />



Other than that

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1