On Mar 14, 6:23 am, "rcoco" <nc******@yahoo.cawrote:
Hi,
what i mean is that the smilies are in datagrid and they are in the
same column with radiobuttonlist which contains sad moods and Good
Mood radio buttons and one has to select one when it is selected it is
inserted in sql database. I want to do the same for the smilies when
one selects a smiley it is supposed to be inserted into sql database
as my datagrid is for inserting data. How could i go about this.
The behavior is
1. Smileys represent a rating of bad/good.
2. Smileys change the rating.
The design should be following.
You save the rating value to the database, not the smiley. Add a new
column to the database table, name it Rating. You will save there 0
for "sad" and 1 for "good".
In the datagrid locate two ImageButtons, one for bad and one for good
smiley.
Initially, when you don't have any rating value you will show grey-
colored smileys. For rated rows you will show yellow-colored smileys.
So, you should have 4 images: good_grey.gif, good_yellow.gif,
bad_grey.gif, and bad_yellow.gif
I suppose you know how to work with datagrid and imagebuttons, if not,
there are a lot of explaining on how to deal with these controls, for
example:
http://harishmvp.blogspot.com/2005/1...umns-with.html http://harishmvp.blogspot.com/2005/1...s-with_07.html
Hope it helps