登录到应用程序后显示用户comapny徽标 [英] Display Users comapny logo after login to application

查看:98
本文介绍了登录到应用程序后显示用户comapny徽标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

正在使用asp.net,C#,SqlServer2005.

请解决我的问题.....?

我已经创建了一个Web应用程序.管理员将在此应用程序中创建用户..
以便用户可以使用其用户名和密码登录.

我的图片文件夹中有公司徽标.

例如:如果您是某个特定公司的用户...使用您的用户名和密码登录后.....
您的公司徽标必须显示在欢迎页面中...这意味着该用户来自已登录的公司.

请帮帮我.
谢谢.

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.

推荐答案

好,请清楚,您可以将照片正常上传到数据库,
但是您无法在应用程序中显示它!?
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 !?


只需将用户的徽标信息保留在数据库表中.然后,当特定用户登录系统时,只需使用ashx(asp.net处理程序)显示该文件并传递该用户的图片网址即可. google以使用ashx处理程序.
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.


您可以使用隐藏"

您将所有徽标添加到页面,但是默认情况下,它们的初始状态为隐藏"
-------------------
Image1.visible = true

Image1.Visible = False
-------------------

然后在用户登录后,将执行一个非常简单的if命令,

您可以创建一个获取用户公司名称的方法,然后启用特定的照片!!!


例如:

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 !!


这篇关于登录到应用程序后显示用户comapny徽标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆