·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> 网站建设开发 >> ASP.NET网站开发 >> 存储过程 两种方法的实例
1: PRotected void btnSend_Click(object sender, EventArgs e)
2: {
3: int temp = -1;
4: int exhibitionID = int.Parse(Request.QueryString["ConList"]);
5: int exhibitorType = 0;
6:
7: int mCustomerID = 0;
8: if (session["UserID"] != null)
9: {
10: ViewState["CID"] = myShare.GetAObject(true, 1, "CustomerID", "Customers", "UserID='" + Session["UserID"].ToString() + "'").ToString();
11: if (!string.IsNullOrEmpty(ViewState["CID"].ToString()))
12: {
13: mCustomerID = Convert.ToInt32(ViewState["CID"].ToString());
14: }
15: }
16: string company = this.txtCompay.Text.Trim();
17: string name = this.txtName.Text;
18: string tel = this.txtTel.Text;