Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-17-2006, 12:39 PM   #1 (permalink)
rikb53
Registered User
 
Join Date: Jan 2006
Posts: 29
rikb53 is on a distinguished road
switch a .gif image in asp.net datagrid

quick question for all you datagrid gurus out there.
ive got a button column that runs a procedure based on the e.item.cells(2)
of another column.
that other column basically is a YES / NO Column.

and on the button column im using a .gif image.

is it possible to switch out the .gif image as i click and run that procedure that changes the yes to a no and visa versa.

im thinking this cant be done since the path of the button image is basically hard coded in the Text Property of the Button column itself.
code is below
thanks for any help

<asp:ButtonColumn ButtonType="LinkButton" Text="&lt;img src=Images/Enable.gif border=0&gt;" HeaderText="Enable" CommandName="Enable"></asp:ButtonColumn>
rikb53 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 02:36 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting