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