——此文章摘自《ASPNET +SQL Server网络应用系统开发案例精解》定价¥特价¥ 详细>>http://tracklinktechcn/?m_id=dangdang&a_id=A&l=&l_type= width= height= border= nosave> 单击用户管理即可进入用户管理界面STManagerLoginaspx如图所示 http://developcsaicn/dotnet_ASP/images/gif> 图 用户管理界面 .TManagerLoginaspx的HTML主要代码DataGrid控件用来向用户展示已有的用户信息同时提供添加修改和删除用户信息的操作 <!—注册用户控件> <%@ Register TagPrefix=uc TagName=STManagerMiddle Src=/STControls/STManagerMiddleascx%> <%@ Register TagPrefix=uc TagName=STManagerHeader Src=/STControls/STManagerHeaderascx %> <%@ Register TagPrefix=uc TagName=STFooter Src=/STControls/STFooterascx %> <!—引用控件> <uc:stmanagerheader id=STManagerHeader runat=server></uc:stmanagerheader> <TABLE id=Table style=ZINDEX: ; LEFT: px; TOP: px; HEIGHT: px cellSpacing= cellPadding= width= align=center border=> <TR> <TD style=WIDTH: px vAlign=top align=center><uc:stmanagermiddle id=STManagerMiddle runat =server></uc:stmanagermiddle><FONT face=宋体></FONT></TD> <TD vAlign=top align=center><FONT face=宋体> <!—DataGrid控件> <asp:datagrid id=STmyGrid runat=server OnPageIndexChanged=STmyGrid_Page AllowPaging=True PageSize= AutoGenerateColumns=False OnCancelCommand=STmyGrid_cancel OnDeleteCommand=STmyGrid_delete OnEditCommand=STmyGrid_edit OnUpdateCommand=STmyGrid_update DataKeyField=STUserID Width=%> <!—列> <Columns> <asp:BoundColumn DataField=STUserID HeaderText=用户ID></asp: BoundColumn> <asp:BoundColumn DataField=STNickName HeaderText=登录名称></asp: BoundColumn> <asp:BoundColumn DataField=STUserPwd ReadOnly=True HeaderText=用户密码 DataFormatString=******></asp:BoundColumn> <asp:BoundColumn DataField=STUserName HeaderText=真实姓名></asp: BoundColumn> right>[] [http://developcsaicn/dotnet_ASP/htm>] [http://developcsaicn/dotnet_ASP/htm>] [http://developcsaicn/dotnet_ASP/htm>] [http://developcsaicn/dotnet_ASP/htm>] |