登录后从SQL Server加载图片以进行标记. [英] load a picture from SQL server to tag after login.
本文介绍了登录后从SQL Server加载图片以进行标记.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道如何从SQL Server加载图片以标记< img>登录后.登录成功后,将其用作用户图标.
谁能帮我!
感谢
i dont know How to load a picture from SQL server to tag <img> after login. I use it for user icon after login successful.
who can help me!
thanks
推荐答案
试试这个:
Hi,
Try this:
<img src='<%# Eval("ImageUrl")%>' runat="server" id="imgsrv" />
在您的表中,ImageUrl是一个保存图像地址的字段.
您可以在身份验证后重定向到的默认页面的每个页面中使用此代码.
希望对您有帮助,
欢呼
In your table, ImageUrl is a field which holds image addresses.
You can use this code in every page which is your default page which is redirected to, after authentication.
I hope it helps,
Cheers
这些是此页面上的一些好的解决方案:
http://www.aspdotnet-suresh.com/2011/03/how-to-save-images-into-folder-and.html [
these are some good solution from this page:
http://www.aspdotnet-suresh.com/2011/03/how-to-save-images-into-folder-and.html[^]
这篇关于登录后从SQL Server加载图片以进行标记.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文