Click here to Skip to main content
13,291,084 members (68,345 online)
Rate this:
Please Sign up or sign in to vote.
Dear Friends,

am working on, C#, SqlServer 2005.

Please solve my problem.....?

I have created a web application. In this application administrator will create users..
so that the users can login with their username and password.

I have company logos in my images folder.

For example: if you are user of some particular company...after you login with your user name and pwd.....
your company logo must be displayed in welcome page...that means this user is from that company who has logged in.

Please help me.
Posted 13-Nov-12 21:39pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

ok just to be clear, you are able to upload the photo to database normally,
but you are not able to display it in your application !?
Software Engineer 892 14-Nov-12 4:10am
Nelek 14-Nov-12 4:40am
Please don't post solutions to add information or to answer a user.
- To add information to your message, you can use the widget "Improve question" at the bottom of your text.
- To answer a user, you can use the widget "Have a question or comment?" (as I am doing right now with you).
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Just keep a user's logo information in the database table. then when a particular user logs in the system just show that file using a ashx ( handler) passing the user's image url. google for using the ashx handler.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

you can use "Hide"

you add all the logos to the page but by default their initial status are"hide"
Image1.visible = true
Image1.Visible = False

and then after the user login, a very simple if command will do,

of you can create a method that gets the user company name and then enable the specific photo or photos!!!

for example:

if usercompanyname == "IBM" then
Image1.visible = true
End if

if you want to get the pic from database ,, you can use the image from the standards tool box and change it accordingly when a user logs in !!
Software Engineer 892 14-Nov-12 3:41am
ya, i want to take the picture from database, so how can i do this ? ?

Please help.
digimanus 14-Nov-12 5:52am
small Google search: here
manasayarlagadda 14-Nov-12 7:27am
Yaeh u can take it....initially specify the location of image in database and provide the same path in the code...
Software Engineer 892 14-Nov-12 3:43am
according to user name..... company logo must be displayed after login...please help.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171207.1 | Last Updated 14 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100