userinfo.aspx

来自「一个简单的网上书店」· ASPX 代码 · 共 113 行

ASPX
113
字号
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/HT.master" CodeFile="userInfo.aspx.cs" Inherits="userInfo" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <div style="z-index: 101; left: 22px; width: 804px; position: absolute; top: 0px;
        height: 597px">
         <table style="width: 670px">
            <tr class="category">
                <td style="width: 670px;" align="center" valign="middle">
                  <span style="color: #000066; font-family: 宋体; font-size:15px;">用户详细信息</span></td>
            </tr>
            <tr>
                <td style="width: 670px" align="center" valign="middle">
                    <asp:DetailsView ID="dlvuserInfo" runat="server" AutoGenerateRows="False" Height="50px"
                        Width="624px">
                        <Fields>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <table cellspacing="0" cellpadding="5">
                    <tbody>  
                         <tr class="category">
                            <td  colspan="2" align="left"></td>
                         </tr>
                        <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px;" class="subject" align="center">
                                编号:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7;" align="left" valign="top">
                                <%#Eval("Id") %></td>
                        </tr>
                        <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px; height: 20px;" class="subject" align="center">
                                用户名:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7; height: 20px;" align="left" valign="top">
                                <%#Eval("LoginId") %></td>
                        </tr>
                          <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px; height: 16px;" class="subject" align="center">
                                昵称:</td>
                            <td style="width: 300px; background-color:#f7f7f7; height: 16px;" align="left" valign="top">
                                <%#Eval("Name") %></td>
                        </tr>
                        <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px;" class="subject" align="center">
                                密码:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7; height: 16px;" align="left" valign="top">
                                <%#Eval("LoginPwd") %></td>
                        </tr>
                         <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="height: 20px" align="center" class="subject">
                            地址:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7; height: 20px;" align="left"><%#Eval("Address") %></td>
                         </tr>
                        <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px;" class="subject" align="center">
                                电子邮箱:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7;" align="left" valign="top">
                               <%#Eval("Mail") %></td>
                        </tr>
                        <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px;" class="subject" align="center">
                                用户角色:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7;" align="left" valign="top">
                                <asp:DropDownList ID="cboRole" runat="server" Width="126px" DataSourceID="objRole" DataTextField="Name" DataValueField="Id">                                   
                                </asp:DropDownList><asp:ObjectDataSource ID="objRole" runat="server" SelectMethod="selRole"
                                    TypeName="CommBLL.SelDataSouce"></asp:ObjectDataSource>
                            </td>
                        </tr>
                         <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px;" class="subject" align="center">
                                用户状态:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7;" align="left" valign="top">
                                <asp:RadioButtonList ID="rdblst" runat="server" DataTextField="Name" DataValueField="Id" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="1" Selected="True">启用</asp:ListItem>
                                    <asp:ListItem Value="2">禁止</asp:ListItem>
                                    <asp:ListItem Value="3">非法</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                                    </tr>

                                </tbody>
                                </table>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Fields>
                    </asp:DetailsView>
                            </td>
                            </tr>
                           <tr class="category">
                            <td  colspan="2" align="center"><asp:Button ID="Button2" runat="server" Text="修改" OnClick="Button2_Click" />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;
                            <asp:Button ID="Button1" runat="server" Text="删 除" OnClick="Button1_Click" />
                                </td>
                         </tr>
            
            </table>
        
    </div>
</asp:Content>

⌨️ 快捷键说明

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