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-21-2006, 10:50 AM   #1 (permalink)
rikb53
Registered User
 
Join Date: Jan 2006
Posts: 29
rikb53 is on a distinguished road
Template col w/Command and img path

I’ve got a quick question concerning Some Rather Tricky work in the Microsoft Datagrid.

Ive got a templated column – that will display one of two paths (i.e.: Images/myGif.gif) depending on a sql statement.
Its based on a Boolean field so it will be a zero or a one and switch – gifs accordingly. This works great
However, my boss has requested that I add a Command to this Template such as [OnItemCommand="GetMyCondition"]
, so you can click on the actual Image and have it post back to the server and Change the 0 to 1 or 1 to 0 and display the image accordingly.

I do have another button column that does this just fine but, he wants it to be that column itself which fires the command and makes the switch.
Ive told him that as far as I know this isn’t possible and hopefully someone will know that.


Rik


<asp:TemplateColumn HeaderText="Enabled">
<ItemTemplate>
<asp:image Runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "EnabledImg") %>'></asp:image>
</ItemTemplate>
</asp:TemplateColumn>
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return Path not shown in mail header konkhra PHP 3 07-25-2005 08:48 AM
Setting the path for python scripting Intensegutwound All Other Coding Languages 7 11-23-2004 06:32 AM
Easy Template System randy PHP 0 05-27-2003 08:33 AM


All times are GMT -8. The time now is 07:14 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