HighTechTalks DotNet Forums  

gridview and image

ASP.net Web Controls microsoft.public.dotnet.framework.aspnet.webcontrols


Discuss gridview and image in the ASP.net Web Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Cactus
 
Posts: n/a

Default gridview and image - 06-20-2008 , 10:22 AM






Hi all.

I am using Visual Web Develpoer 2005 Express Edition.
I have a database with a table that has a bit datatype field.
I want that my gridview show an image if the field is true and other image
if the field is false, and if the image is true, that you can click on the
image and go to a concrete web.

Please, help me, i dont know how to search this.

Thanks!



Reply With Quote
  #2  
Old   
Peter Bucher [MVP]
 
Posts: n/a

Default Re: gridview and image - 06-20-2008 , 06:13 PM






Hello Cactus

Quote:
I am using Visual Web Develpoer 2005 Express Edition.
I have a database with a table that has a bit datatype field.
I want that my gridview show an image if the field is true and other image
if the field is false, and if the image is true, that you can click on the
image and go to a concrete web.
Use the RowDataBound event to evaluate wheter the field is true or false.
Uppon then you can display your desired data.

--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET



Reply With Quote
  #3  
Old   
Peter Bucher [MVP]
 
Posts: n/a

Default Re: gridview and image - 06-20-2008 , 06:13 PM



Hello Cactus

Quote:
I am using Visual Web Develpoer 2005 Express Edition.
I have a database with a table that has a bit datatype field.
I want that my gridview show an image if the field is true and other image
if the field is false, and if the image is true, that you can click on the
image and go to a concrete web.
Use the RowDataBound event to evaluate wheter the field is true or false.
Uppon then you can display your desired data.

--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET



Reply With Quote
  #4  
Old   
Peter Bucher [MVP]
 
Posts: n/a

Default Re: gridview and image - 06-20-2008 , 06:13 PM



Hello Cactus

Quote:
I am using Visual Web Develpoer 2005 Express Edition.
I have a database with a table that has a bit datatype field.
I want that my gridview show an image if the field is true and other image
if the field is false, and if the image is true, that you can click on the
image and go to a concrete web.
Use the RowDataBound event to evaluate wheter the field is true or false.
Uppon then you can display your desired data.

--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.