相关文章  
  • 加固Windows Server 2003 IIS 服务器(2)
  • 一步步教你在Win2003下安装IIS组件
  • Win2003下实现Web虚拟网站之概述篇
  • 保障Web服务的安全(图)
  • Win2003服务器组网、安全管理全攻略一
  • Win2003服务器组网、安全管理全攻略二
  • Apache+php+mysql在windows下的安装与配置图解
  • 有备无患 教你建立多Web服务器备份
  • Win2000 IIS安全构建指南
  • 基于网格的面向专业的Web信息检索体系
  •   推荐  
      科普之友首页   专利     科普      动物      植物        天文   考古   前沿科技
     您现在的位置在:  首页 >>文献 >>培训

    用IE的Web服务建立ASP.NET应用程序5

    ion = new SqlConnection(connString);
      try
      {
      DataSet employeeDataset = new DataSet("EmployeesRoot");
      
      //把需要执行的存储过程的名字和SqlConnection 对象作为参数传递进来
      SqlDataAdapter adapter = new SqlDataAdapter();
      SqlCommand command = new SqlCommand("Select * from Employees Where EmployeeID ="+    employeeID.ToString(),sqlConnection);
      
      //设置SqlCommand对象的属性
      command.CommandType = CommandType.Text;
      adapter.SelectCommand = command;
      
      //使用存储过程返回的值填充数据集
      adapter.Fill(employeeDataset,"Employees" );
      XmlDocument xmlDoc = new XmlDocument();
      xmlDoc.LoadX

    页码:[1] [2] [3] [4] [5] [6]5页、共6页

         

          设为首页       |       加入收藏       |       广告服务       |       友情链接       |       版权申明      

    Copyriht 2007 - 2008 ©  科普之友 All right reserved