Click here to Skip to main content
15,921,643 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends,
im tryin to make a simple application where i want to show the image on the image control on the basis of the image name stored in the database..
but the main thing is im not using any fully databound control..
i want the know how to do it in coding??
where we can fetch the image name from database and store it in datatable and how we can pass that image name to the image control??
is it possible??
im doing it in c sharp..
thanks :)
Posted
Updated 25-Jan-10 18:40pm
v2

arvinder_aneja wrote:
dis kinda thing???
can ne 1 help bout dis???


Don't talk like a retard. You're not in a room of 5 year olds.

Are you doing a web app ? It doesn't seem like it, you didn't say so, but if you have an image name in a database, it seems likely to me that you are. A data bound control is definitely the best way to do this, a repeater gives you full control over how they are rendered. If you only want to show one image, then get the path to the image from the DB and bind it to a control that shows an image. If you have more than one, use a data bound control, or explain why you have a good reason not to do so.
 
Share this answer
 
MSIL
hey crystian your answer is not helping me.
i think dis advice can also be given to me by a 15 year old boy..
so be a software devolper and not a kid...


OK, let's recap

1 - I asked you some questions that need answering in order to help you further
2 - I asked you not to talk like a moron, but you still are
3 - you pushed the 'answer' button, yet what you posted is not an answer.

How about we start again ? Edit your post to include the detail I asked for, use real English ( bad English is accepted here, but txt speak is for children, not adults ), and we'll see if I can't help you.
 
Share this answer
 
Wow - none of my questions are answered. Is this a web application ? How many images do you want to show ? If it's just one, what is the issue ? if it's more than one, why do you want to not use a databound control ? What are you trying to achieve ?
 
Share this answer
 
Hi.

Looking to your previously posted questions, I can suggest you are developing some webapp.

It looks like your question is about dynamic image rendering.
The most simple solution in this case is to use extra .aspx page that will render image you need. You can find more information on this here:
Create Dynamic Images in ASP.NET[^]
This is the first article I came to using search engine..

But there are also number of technics how to render it without .aspx. In this case you'll require much more experience in Asp.net internals. Let me know if need such solution and I'll check if I still have one in my repository.

Hope this helps..
Regards,
Alexey
 
Share this answer
 
Btw.

In your previous question
http://www.codeproject.com/answers/53012/how-to-upload-and-display-an-image.aspx[^]
You have really good answer that should cover also your current question..
 
Share this answer
 
"i just asked you to help me but your behaviour is not so good to me..
what you mean by "do not talk like a retard??"
why did n't you only answer me instead of saying these things in addition?
i do n't want your help..
thanks.."

I didn't answer you because you didn't ask a clear question. If you had asked a clear question, and tagged it properly, I'd still have asked you not to speak like a moron, but I would have answered you. I asked for more info, it seems other people were willing to take the time to dig through your old questions to work out the answers for themselves. If you want help, it helps to give people the info they need. I gave you as much help as I could, without searching your old questions to try to find the answers that you refused to give me.

I could care less if you want my help, you've not hurt my feelings at all. However, if in future you post well asked questions, where it's possible to read them and know what you're asking, I'll be glad to try to help in future. I'm still not sure that you have the answer you want, if not, then try to think about what you're asking, and try to actually provide the info that I asked for. Do you want to show more than one image ? If not, what is the problem, the task is trivial. If so, why don't you want to use a data bound control ? These are the reasons I didn't give you more of an answer, you didn't tell me what you wanted, you didn't even bother to tell me your app was a web app, when I asked you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900