熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

連鎖中心配送系統:用戶信息的添加[2]

2022-06-13   來源: .NET編程 
    ——此文章摘自《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=宋體>&nbsp;&nbsp;&nbsp;
    </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);

[]  []  []  []  


From:http://tw.wingwit.com/Article/program/net/201311/15718.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.