——此文章摘自《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>] [] |