zoukankan      html  css  js  c++  java
  • dotnetnuke 头像调用 头像缩放

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

  • 相关阅读:
    iOS UITextField 设置内边距
    营造积极的OKR环境
    管理者的五项基本活动
    如何在团队中让OKR深入人心
    项目管理文化:营造积极氛围的里程碑
    OKR文化:用SMART原则量化目标
    成功落地OKR的要诀
    培养一支有 OKR 思想的管理团队
    如何成为一个成功的会议领导者
    项目管理文化:开展有效的总结会议
  • 原文地址:https://www.cnblogs.com/pengfeiwang/p/4373651.html
Copyright © 2011-2022 走看看