Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear Friends,

am working on asp.net, 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.
Thanks.
Posted

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 !?
 
Share this answer
 
Comments
Software Engineer 892 14-Nov-12 4:10am    
ya
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).
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 (asp.net handler) passing the user's image url. google for using the ashx handler.
 
Share this answer
 
you can use "Hide"

you add all the logos to the page but by default their initial status are"hide"
-------------------
Image1.visible = true
or
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:

C#
if usercompanyname == "IBM" then
Image1.visible = true
else
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 !!
 
Share this answer
 
v2
Comments
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.
Herman<T>.Instance 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.
THANKS.

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