public static string GetProfileImage(int userId, int width, int height)
        {         
            return "~/profilepic.ashx?userid=" + userId.ToString() + "&w=" + width.ToString() + "&h=" + height.ToString();
        }

参与网站

http://www.ventrian.com/blog/getting-user-profile-image-paths-in-dotnetnuke

Luckily, this is a fairly trivial task with DotNetNuke:

protected string GetProfileImage(int userId)
{
return Page.ResolveUrl("~/profilepic.ashx?userid=" + userId.ToString());
}

By default, it looks to be restricted to a maximum width and height of 55px. However, you can pass in parameters to control the width & height.

protected string GetProfileImage(int userId, int width, int height)
{
return Page.ResolveUrl("~/profilepic.ashx?userid=" + userId.ToString() & "&w=" & width.ToString() & "&h=" & height.ToString());
} http://www.ventrian.com/blog/better-profile-pictures-in-dotnetnuke
<img alt="Profile Avatar" src="/profilepic.ashx?userId=[USER:USERID]&h=64&w=64" width="64" height="64">

最新文章

  1. php $CI =&amp; get_instance();
  2. CUDA1.1-函数类型限定符与变量类型限定符
  3. acpi和btrfs-安装opensuse时的选项
  4. STM32学习笔记(十) CAN通讯测试(环回模式)
  5. Excel定位对象(按钮等)
  6. FindResource函数错误代码:1813-找不到映像文件中指定的资源类型 与LoadResource函数错误代码:1812-指定的映像文件不包含资源区域
  7. 快速设置IP的脚本
  8. PHP之路——大文件上传
  9. 如何利用Win32API取得另一支程式中的ListView內的所有值(RegisterHotKey,ReadProcessMemory,WindowFromPoint和VirtualAllocEx)
  10. C/C++遍历目录下的所有文件(Windows篇,超详细)
  11. 苹果新的编程语言 Swift 语言进阶(四)--字符串和收集类型
  12. 驰骋开源的asp.net工作流程引擎java工作流 2015 正文 驰骋工作流引擎ccflow6的功能列表
  13. easyui datagrid使用按钮
  14. Nodejs基础(5-6)HTTP概念进阶
  15. sql 指定数据库中的信息操作
  16. MongoDB索引的种类与使用
  17. 关于Centos7 firewalld防火墙开放端口后仍不能访问ftp和nginx的问题解决
  18. Intellij Idea搭建Spark开发环境
  19. List&amp;Map&amp;Set的操作和遍历
  20. CSS定位DIV(一)一列样式

热门文章

  1. Filter过滤器机制
  2. 5、Java并发性和多线程-相同线程
  3. linux 卸载php mysql apache
  4. PKU 3667 Hotel (线段树,区间合并,最长连续区间)
  5. lua的函数初识
  6. 躁动不安的const
  7. 微信公众号H5用户授权
  8. 在SAE搭建Python+Django+MySQL(基于Windows)
  9. poj-1635 Subway tree systems(推断两个有根树是否同构)-哈希法
  10. Linuxserver沦陷为肉鸡的全过程实录