——此文章摘自《ASPNET +SQL Server网络应用系统开发案例精解》定价¥特价¥ 详细>>http://tracklinktechcn/?m_id=dangdang&a_id=A&l=&l_type= width= height= border= nosave> 单击用户信息即可进入用户界面STUserInfoaspx如图所示 http://developcsaicn/dotnet_ASP/images/gif> 图 一般用户自己信息管理界面 .STUserInfoaspx的HTML主要代码<!—注册用户控件> <%@ Register TagPrefix=uc TagName=STMiddle Src=/STControls/STMiddleascx %> <%@ Register TagPrefix=uc TagName=STHeader Src=/STControls/STHeaderascx %> <%@ Register TagPrefix=uc TagName=STFooter Src=/STControls/STFooterascx %> <!—头控件> <uc:stheader id=STHeader runat=server></uc:stheader> <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><FONT face=宋体><uc:stmiddle id=Stmiddle runat=server></uc:stmiddle></FONT></TD> <TD style=HEIGHT: px align=center valign=top> <FONT face=宋体> <!—DataGrid控件> <asp:DataGrid id=STmyGrid runat=server OnPageIndexChanged=STmyGrid_Page AllowPaging=True PageSize= AutoGenerateColumns=False DataKeyField=STUserID Width=%> <!—列> <Columns> <asp:BoundColumn DataField=STUserID HeaderText=用户ID></asp:BoundColumn> <asp:BoundColumn DataField=STNickName HeaderText=登录名称> </asp:BoundColumn> <asp:BoundColumn DataField=STUserName HeaderText=真实姓名> </asp:BoundColumn> <!—模板列> <asp:TemplateColumn HeaderText=管理权限> <ItemTemplate> <%# DataBinderEval(ContainerDataItemSTNoAdmin)ToString()==? <font color=red>是</font>:否 %> </ItemTemplate> </asp:TemplateColumn> </Columns> <PagerStyle NextPageText= HorizontalAlign=Right Mode=NumericPages> </PagerStyle> right>[] [http://developcsaicn/dotnet_ASP/htm>] |