您目前尚未登陆,请选择【登陆】或【注册
首页->全站代码->小范企业管理源码>>admin/product_type_add.aspx.cs>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:小范企业管理源码


当前文件路径:XiaoFanWeb/admin/product_type_add.aspx.cs 文件类型
普通视图
		            
1using System; 2using System.Data; 3using System.Configuration; 4using System.Collections; 5using System.Web; 6using System.Web.Security; 7using System.Web.UI; 8using System.Web.UI.WebControls; 9using System.Web.UI.WebControls.WebParts; 10using System.Web.UI.HtmlControls; 11 12using System.Data.OleDb; 13public partial class admin_product_type_add : System.Web.UI.Page 14{ 15 protected void Page_Load(object sender, EventArgs e) 16 { 17 18 } 19 protected void Button1_Click(object sender, EventArgs e) 20 { 21 OleDbConnection oledbcon = new OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;data source=" + HttpContext.Current.Server.MapPath(@"~/App_Data/dbs.mdb")); 22 string InString = "insert into FZ_Product_Type(Name,Ord,Pid)values('" + TextBox1.Text.ToString() + "','" + TextBox2.Text.ToString() + "','" + DropDownList1 .SelectedValue+ "')"; 23 oledbcon.Open(); 24 OleDbCommand cmd = new OleDbCommand(InString,oledbcon); 25 cmd.ExecuteNonQuery(); 26 oledbcon.Close(); 27 OKmessage.Text = "(" + TextBox1.Text.ToString() + ")→信息添加成功!"; 28 OKmessage.Visible = true; 29 30 } 31} 32
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:小范企业管理源码

- asp.net漂亮弹出对话框控件源..

- 南充人NET文章系统开源版

- Maolz个人展示网站源码

- 天风文章V1.2.0 新闻/文章类..

- 丫丫饰品商城网站源码

- 小爱学习(asp.Net)新闻系统 V0.1

- 云南旅游网全站源码

- 邓西网站在线帮助系统V2.0(A..

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号