⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 view-userprofile.ascx

📁 cnForums是功能强大的论坛。开发语言c#,三层结构。模块设计很值得学习
💻 ASCX
字号:
<%@ Control Language="C#" %>
<%@ Register TagPrefix="Forums" Namespace="AspNetForums.Controls" Assembly="AspNetForums.Controls" %>
<%@ Import Namespace="AspNetForums" %>
<%@ Import Namespace="AspNetForums.Components" %>
<table cellPadding="2" cellspacing="0" width="100%">
    <tr>
        <td align="left">
          <span class="forumName"><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_Title")%></span>
          <br>
          <span class="forumThread"><asp:Literal ID="UserName" Runat="server" /></span>
        </td>
    </tr>

    <tr>
        <td>
        &nbsp;
        </td>
    </tr>
</table>
<table border="0" cellPadding="3" cellSpacing="1" class="tableBorder" width="100%">
    <tr>
        <td class="column" colspan="2">
            <%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_About")%>
        </td>
    </tr>
    <tr>
        <td class="f" width="35%">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_Joined")%></b>
            <br>
            <%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_JoinedDescription")%>
        </td>
        <td class="fh" width="65%">
            <asp:Literal id="JoinedDate" runat="server" />
        </td>
    </tr>
    
    <tr>
        <td class="f">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_LastLogin")%></b>
            <br>
            <%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_LastLoginDescription")%>
        </td>
        <td class="fh">
            <asp:Literal id="LastLoginDate" runat="server" />
        </td>
    </tr>

    <tr>
        <td class="f">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_LastVisit")%></b>
            <br>
            <%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_LastVisitDescription")%>
        </td>
        <td class="fh">
            <asp:Literal id="LastActivityDate" runat="server" />
        </td>
    </tr>

    <tr>
        <td class="f">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_Timezone")%></b>
            <br>
            <%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_TimezoneDescription")%>
        </td>
        <td class="fh">
            <asp:Literal id="TimeZone" runat="server" /> GMT
        </td>
    </tr>

    <tr>
        <td class="f">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_Location")%></b>
        </td>
        <td class="fh">
            <asp:Literal id="Location" runat="server" />
        </td>
    </tr>

    <tr>
        <td class="f">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_Occupation")%></b>
        </td>
        <td class="fh">
            <asp:Literal id="Occupation" runat="server" />
        </td>
    </tr>

    <tr>
        <td class="f">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_Interests")%></b>
        </td>
        <td class="fh">
            <asp:Literal id="Interests" runat="server" />
        </td>
    </tr>

    <tr>
        <td class="f">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_WebAddress")%></b>
        </td>
        <td class="fh">
            <asp:HyperLink id="WebURL" runat="server" />
        </td>
    </tr>

    <tr>
        <td class="f">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_BlogAddress")%></b>
        </td>
        <td class="fh">
            <asp:HyperLink id="BlogURL" runat="server" />
        </td>
    </tr>
</table>

<P>

<table border="0" cellPadding="3" cellSpacing="1" class="tableBorder" width="100%">
    <tr>
        <td class="column" colspan="2">
            <%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_AvatarPostSignature")%>
        </td>
    </tr>
    
    <tr>
        <td class="f" width="35%">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_Avatar")%></b>
        </td>
        <td class="fh" width="65%">
            <forums:UserAvatar Visible="False" PadImage="False" Border="1" id="Avatar" runat="server" />
        </td>
    </tr>

    <tr>
        <td class="f">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_Theme")%></b>
        </td>
        <td class="fh">
            <asp:Literal id="Skin" runat="server" />
        </td>
    </tr>

    <tr>
        <td class="f">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_Signature")%></b>
        </td>
        <td class="fh">
            <asp:Literal id="Signature" runat="server" />
        </td>
    </tr>

</table>

<P>

<table border="0" cellPadding="3" cellSpacing="1" class="tableBorder" width="100%">
    <tr>
        <td class="column" colspan="2">
            <%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_Signature")%>
        </td>
    </tr>
    <tr>
        <td class="f" width="35%">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_Email")%></b>
        </td>
        <td class="fh" width="65%">
            <asp:HyperLink id="Email" runat="server" />
        </td>
    </tr>

    <tr>
        <td class="f">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_MsnIm")%></b>
        </td>
        <td class="fh">
            <asp:Literal id="MSNIM" runat="server" />
        </td>
    </tr>

    <tr>
        <td class="f">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_AolIm")%></b>
        </td>
        <td class="fh">
            <asp:Literal id="AOLIM" runat="server" />
        </td>
    </tr>

    <tr>
        <td class="f">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_YahooIm")%></b>
        </td>
        <td class="fh">
            <asp:Literal id="YahooIM" runat="server" />
        </td>
    </tr>

    <tr>
        <td class="f">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_IcqIm")%></b>
        </td>
        <td class="fh">
            <asp:Literal id="ICQ" runat="server" />
        </td>
    </tr>
</table>

<P>

<table border="0" cellPadding="3" cellSpacing="1" class="tableBorder" width="100%">
    <tr>
        <td class="column" colspan="2">
            <%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_PostStats")%>
        </td>
    </tr>
    <tr>
        <td class="f" width="35%">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_TotalPosts")%></b>
        </td>
        <td class="fh" width="65%">
            <asp:Literal id="TotalPosts" runat="server" />
        </td>
    </tr>
    
    <tr>
        <td class="f">
            <b><%=AspNetForums.Components.ResourceManager.GetString("ViewUserProfile_PostRank")%></b>
        </td>
        <td class="fh">
            <asp:Literal id="Rank" runat="server" />
        </td>
    </tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -