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

連鎖中心配送系統:連鎖店模塊的管理[5]

2022-06-13   來源: .NET編程 
    ——此文章摘自《ASPNET +SQL Server網絡應用系統開發案例精解》定價 特價 詳細>>http://tracklinktechcn/?m_id=dangdang&a_id=A&l=&l_type= width= height= border= nosave>

                       STcmdParametersAdd(new SqlParameter(@STDepMasterSqlDbTypeVarChar));
                       STcmdParametersAdd(new SqlParameter(@STDepInfoSqlDbTypeVarChar));
                       //給參數賦值
                       STcmdParameters[@STDepName]Value=STDeNameText;
                       STcmdParameters[@STDepMaster]Value=STDeMasterText;
                       STcmdParameters[@STDepInfo]Value=STDeInfoText;
                       STcmdConnectionOpen();
                       try
                       {
                                //執行sql語句
                                STcmdExecuteNonQuery();
                                //提示添加成功
                                STDe_warnText=添加成功;
                                //設置提示信息的字體
                                STDe_warnStyle[color]=red;
                                ResponseRedirect(STManagerDepaspx);
                       }
                       catch(SqlException)
                       {
                                STDe_warnText=添加失敗;
                                STDe_warnStyle[color]=red;
                       }
                       STcmdConnectionClose();
             }
    }
    //重填連鎖店信息
    private void STDe_reset_Click(object sender SystemEventArgs e)
    {
             ResponseRedirect(STAddDepaspx);
    }

right>[http://developcsaicn/dotnet_ASP/htm>]  [http://developcsaicn/dotnet_ASP/htm>]  [http://developcsaicn/dotnet_ASP/htm>]  [http://developcsaicn/dotnet_ASP/htm>]  []  


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