Need query ???

Joined
Sep 5, 2009
Messages
4
Reaction score
0
hi.. see

i have query like this

Select name,id,subid from sample where id=@id

here the @id is the parameter ie: get it from Querystring

so here i want to show the images like Green / Red either one

as per conditions ie: i have the other value getit from Database, assume.ie:mad:getid

so if the subid = @getid i have to show Green image else show Red Image

I dont want to written the code on Gridview_RowDatabound as its a performance issue , is it possible to do in Query..how give the sample query ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top