Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET SQL-Server
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 13-Nov-12 21:39pm
Rate this: bad
good
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 !?
  Permalink  
Comments
Software Engineer 892 at 14-Nov-12 4:10am
   
ya
Nelek at 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
good
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 (asp.net handler) passing the user's image url. google for using the ashx handler.
  Permalink  
Rate this: bad
good
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
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:

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 !!
  Permalink  
v2
Comments
Software Engineer 892 at 14-Nov-12 3:41am
   
ya, i want to take the picture from database, so how can i do this ? ?

Please help.
digimanus at 14-Nov-12 5:52am
   
small Google search: here
manasayarlagadda at 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 at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 6,434
1 OriginalGriff 6,178
2 Peter Leow 2,534
3 Abhinav S 2,274
4 Maciej Los 2,268


Advertise | Privacy | Mobile
Web01 | 2.8.150414.1 | Last Updated 14 Nov 2012
Copyright © CodeProject, 1999-2015
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