- 4
- 0
- 约5.44千字
- 约 49页
- 2016-08-23 发布于河南
- 举报
chap13
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.Ta
原创力文档

文档评论(0)