把用户提交的客信息保存在会话状态变量中.docVIP

  • 1
  • 0
  • 约2.46千字
  • 约 2页
  • 2019-07-16 发布于江苏
  • 举报

把用户提交的客信息保存在会话状态变量中.doc

// 把用户提交的客户信息保存在会话状态变量中 private void btnSubmit_ServerClick(object sender, System.EventArgs e) { Session[Name] = txtName.Value; if( rbMale.Checked ) Session[Sex] = rbMale.Value; else Session[Sex] = rbFemale.Value; Session[City] lstCity.Items[lstCity.SelectedIndex].Text; Session[Address] = txtAddress.Value; Session[Email] = txtEmail.Value; Session[Intro] = txtIntro.Value; // 把用户上载的图像文件保存起来 // 然后把文件名保存在状态变量中 HttpPostedFile pf = File1.PostedFile; string filename = System.IO.Path.GetDirectoryName(this.Request.PhysicalPath) + \\ + System.IO.

文档评论(0)

1亿VIP精品文档

相关文档