显示控件chap13要领.pptVIP

  • 1
  • 0
  • 约2.5万字
  • 约 71页
  • 2017-06-22 发布于湖北
  • 举报
 WEB数据显示技术 第13章 回顾 异常处理 读取和访问BLOB大数据 分页技术 数据访问安全 目标 Web数据显示 数据绑定 数据绑定控件 数据绑定数据源 使用HTML标记显示数据 方式1: public string strTest; input type=text size=14 value =%=strTest % 代码文件中定义了变量 strTest,页面文件通过HTML显示strTest变量 方式2: Response.Write(INPUT type=text size=24 value =+strTest+); 与方式1完全相反的过程;将完成在代码中输出HTML标记从而实现数据的动态显示 使用Web服务器控件显示数据 Table1.Rows.Add(new TableRow()); for(int i=0;ids.Tables[0].Columns.Count;i++) { TableCell tempTc=new TableCell(); tempTc.BorderWidth=1; tempTc.Text=ds.Tables[0].Columns[i].Caption; Table1.Rows[0].Cells.Add(tempTc); } for(int i=0;ids.Tab

文档评论(0)

1亿VIP精品文档

相关文档