can't get to display image in gridview
-
i have this table TBLImageTest ID int Path nvarchar(MAX) then i upload a image to server (local). image id and path saved to database. like: Id = 1, Path = C:\Documents and Settings\MyUserAccount\My Documents\Visual Studio 2005\WebSites\MyImageTest\UploadedImages\TestImage.jpg these exact things are saved into database. then in my allImages.aspx i have this code:
SelectCommand="SELECT \[Path\] FROM \[TBLImageTest\]">
this doesn't show any image, it doesn't give any error too. can someone help me with this
-
i have this table TBLImageTest ID int Path nvarchar(MAX) then i upload a image to server (local). image id and path saved to database. like: Id = 1, Path = C:\Documents and Settings\MyUserAccount\My Documents\Visual Studio 2005\WebSites\MyImageTest\UploadedImages\TestImage.jpg these exact things are saved into database. then in my allImages.aspx i have this code:
SelectCommand="SELECT \[Path\] FROM \[TBLImageTest\]">
this doesn't show any image, it doesn't give any error too. can someone help me with this
make sure all images can be accessed from IIS. but not in local. e.g. you can put images to a directory under IIS root. like \images, please you can access it like http:\\localhost\images\someimage1.jpg. if it show normally, then you can display it in anywhere. please check image path, e.g. c:\images\someimage1.jpg in asp.net webpage doesnot work.
Glad to discuss with you and best wishes.