Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Reply
Populate A Placeholder For An Image From Database
Old 09-29-2009, 01:58 PM Populate A Placeholder For An Image From Database
mb2000inc's Avatar
Super Talker

Posts: 140
Name: Mark
Location: Ohio
Trades: 0
Ok, so I'm toying around with the idea that I want to create a social network from scratch. (look forward to many posts from me)

Right now, I'm just mapping out the functionality and not really writing code, yet. So, the first order of business is to try to populate a user's profile page with their image and some other bio stuff.

What I truly want to do is have an image placeholder that populates with the appropriate image stored in the database and will be called when a user clicks on a link that directs them to the selected user's homepage. How do I populate that placeholder with the appropriate image?

1) would I use <asp:img>?
2) would I use <asp : Placeholder>?
3) how do I pass that parameter? (typical query string?)
4) in the codebehind, (pagename.aspx.vb) would I create a function that pulls the info from the database (pageload event)
5) What about telling the placeholder what image name and location to use.
6) how would that look on the front end? (<asp : Placeholder id="...." otherinfo="...">)
__________________
Need a vacation.
mb2000inc is offline
Reply With Quote
View Public Profile Visit mb2000inc's homepage!
 
 
Register now for full access!
Old 02-03-2010, 01:27 PM Re: Populate A Placeholder For An Image From Database
Novice Talker

Posts: 10
Name: Adam
Trades: 0
Try to read this article how to display images using HttpHandlers ref
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
Adam_Keith is offline
Reply With Quote
View Public Profile
 
Old 02-04-2010, 08:13 PM Re: Populate A Placeholder For An Image From Database
Novice Talker

Posts: 10
Name: Dean
Trades: 0
why not use the image control? and set the Location Property in the page load
__________________

Please login or register to view this content. Registration is FREE
- My Horror Movie Site
wren is offline
Reply With Quote
View Public Profile
 
Old 02-05-2010, 02:21 PM Re: Populate A Placeholder For An Image From Database
Extreme Talker

Posts: 246
Trades: 0
Why do you have to store the images in a database?

Otherwise try this: http://www.aspfree.com/c/a/ASP.NET/U...e--C---Part-I/

There is a part 2 as well.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
stbuchok is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Populate A Placeholder For An Image From Database
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13433 seconds with 12 queries