——此文章摘自《ASPNET +SQL Server网络应用系统开发案例精解》定价¥特价¥ 详细>> <TR> <TD style=WIDTH: px; HEIGHT: px><FONT face=宋体>连锁店名</FONT></TD> <TD style=WIDTH: px; HEIGHT: px> <!DropDownList控件> <asp:dropdownlist id=STDepName runat=server> </asp:dropdownlist><FONTface=宋体></FONT></TD> <TD style=HEIGHT: px><FONT face=宋体 color=#ff size=>必选</FONT></TD> </TR> <TR> <TD style=WIDTH: px; HEIGHT: px><FONT face=宋体>管理权限</FONT></TD> <TD style=WIDTH: px; HEIGHT: px> <asp:dropdownlist id=STNoAdmin runat=server> <asp:ListItem Value=>一般用户</asp:ListItem> <asp:ListItem Value=>管理员</asp:ListItem> </asp:dropdownlist><FONT face=宋体></FONT></TD> <TD style=HEIGHT: px> <FONT face=宋体 color=#ff size=> 必选</FONT></TD> </TR> <TR> <TD align=center colSpan=><asp:button id=ST_ok runat=server Text=确定> </asp:button><FONT face=宋体> </FONT> <asp:button id=ST_cancel runat=server Text=取消></asp:button> <asp:label id=ST_Warn runat=server></asp:label><FONT face=宋体></FONT></TD> </TR> </TABLE> <P align=center><FONT face=宋体 color=#ff size=>默认密码与用户名相同</FONT> </P> </FONT> </TD> </TR> </TABLE> <uc:stfooter id=STFooter runat=server></uc:stfooter> .STAddUseraspxcs的主要代码及其解释 此代码实现了添加用户信息的功能如下所示 private void Page_Load(object sender SystemEventArgs e) { if(Session[STNickName] != null) { string STconnection = ConfigurationSettingsAppSettings[strconnection]; STconn = new SqlConnection(STconnection); [] [] [] [] |