473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Imagebuttons

Hi everyone,

I'm using smilies in a datagrid so that when a user selects one smiley
it is installed into sqlserver how could i go about this? The smiley
is an ImageButton.
Thanks

Mar 13 '07 #1
6 1563
"rcoco" <nc******@yahoo.cawrote in message
news:11**********************@n33g2000cwc.googlegr oups.com...
when a user selects one smiley it is installed into sqlserver
I appreciate that English is not your first language, so can you please
confirm what you mean...?

It looks like when a user selects an ImageButton, the ImageButton is added
to SQL Server somehow... Is that what you mean...? If so, presumably you
want to add the image from the ImageButton into a varbinary field...?
Mar 13 '07 #2
My guess you are developing some kind of rating system.

the phrase "smiley is installed into sqlserver" is a bit confusing.
I would create a filed in the table - rating type integer
and then rating = 0 means sad smile
rating = 1 means no smile
rating = 2 means happy smile.

George

"rcoco" <nc******@yahoo.cawrote in message
news:11**********************@n33g2000cwc.googlegr oups.com...
Hi everyone,

I'm using smilies in a datagrid so that when a user selects one smiley
it is installed into sqlserver how could i go about this? The smiley
is an ImageButton.
Thanks

Mar 13 '07 #3
On Mar 13, 6:16 pm, "George Ter-Saakov" <gt-...@cardone.comwrote:
My guess you are developing some kind of rating system.

the phrase "smiley is installed into sqlserver" is a bit confusing.

I would create a filed in the table - rating type integer
and then rating = 0 means sad smile
rating = 1 means no smile
rating = 2 means happy smile.

George

"rcoco" <nclau...@yahoo.cawrote in message

news:11**********************@n33g2000cwc.googlegr oups.com...
Hi everyone,
I'm using smilies in a datagrid so that when a user selects one smiley
it is installed into sqlserver how could i go about this? The smiley
is an ImageButton.
Thanks- Hide quoted text -

- Show quoted text -
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.

Thank you all.

Mar 14 '07 #4
"rcoco" <nc******@yahoo.cawrote in message
news:11**********************@e1g2000hsg.googlegro ups.com...

"when one selects a smiley it is supposed to be inserted into sql database"

What does this *actually* mean...?

How do you intend to insert a smiley into a database...?

Do you mean the string of the markup e.g. "asp:ImageButton..."?

Or do you mean the image behind the smiley...?
Mar 14 '07 #5
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

Mar 14 '07 #6
Thanks,
I have two smilies, and a radiobuttonlist of two radiobutton(Good mood
and Bad Mood) that are in the same columns. The user is supposed to
select one of them and the output should actually be like The image
which represent Good Mood or Bad Mood(from radiobuttonlist) is
supposed to appear along with the word Good Mood or Bad Mood in the
same column. right now I'm getting only the word Good mood or Bad Mood
but the image is not appearing on the data grid that is after
inserting data. I'm actually getting confusion eighther I'm supposed
to use Image button or image. I intended to be selecting RadioButton
of Good mood or of Bad Mood and as I finish the inserting
process(Edit,insert,cancel process in datagrid), on the datagrid
should show Good Mood and Bad Mood at the same time a smiley(Image)
that corresponds eighther of the two(Good Mood or Bad Mood). On the
designing form I placed Both the Images and RadioButtonList in
EditItemTemplate, and in Itemtemplate I placed there a Label. Hope
this will help.

Thank you all.

Mar 14 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Martin | last post by:
Hi, I want to use Imagebuttons () to submit a form, as following: <form ....> <Input name="buttonEdit" type=Image onclick="ActionHandle("2")> <Input name="buttonnew" type=Image ...
3
by: David P. Donahue | last post by:
This is a 2-part question: 1) I have a web form with multiple ImageButtons on it. I'd like them all to do the same thing. Basically, in english-code, the function would be as follows: Set...
0
by: Nedu N | last post by:
Hi, I have one got image button which will make calendar control visible for date selection, the problem that face is very often i am not getting the click event responding (meaning that i am not...
2
by: flyAway | last post by:
HI In my first asp.Net Homepage I have the following problem: There are some ImageButtons, witch ImageURL constantly changes. Now I would like to create an array, so that I can assign the...
2
by: charliewest | last post by:
I am dynamically creating my datagrid, building each column in real-time via code-behind (using c#). The only way i have read to add ImageButtons to my grid dynamically is by creating a separate...
3
by: martin | last post by:
I have a page with a imagebuttons on it - works fine on my dev machien IIS5 I ahve deployed to test server IIS6 and button does not fire at all in IE. It has rendered a html input tag. I open...
5
by: Varangian | last post by:
ImageButton ship; ship = new ImageButton; for (int i=0; i<5; i++) { ship.ImageUrl = pathofImage; ship.ID = "ShipNo" + i.ToString(); ship.Click += new...
1
by: graphicsxp | last post by:
Hi, I have a few ImageButton controls on my form. One of them is the save one, on which I want the form to be submited. Other imageButtons trigger a postback, but they should not cause form...
0
by: Gileno | last post by:
Hi! I Have a gridView with a TemplateField, with this code: <asp:TemplateField> <ItemTemplate> <img alt="Editar" src="./imagens/icon_editar.gif" /> <%#...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.