|
| |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
< %@ Import Namespace=\"System.Data\" %> <%@ Import Namespace=\"System.Data.SQL\" %> <html> < script language=\"C#\" runat=\"server\"> public DataSet dsCustomer; protected void Page_Load(Object Src, EventArgs E ) { SQLConnection myConnection = new SQLConnection SQLDataSetCommand CustomersDSCommand = new SQLDataSetCommand(\"select * from customers\", myConnection);
foreach (DataRow Customer in dsCustomer.Tables[\"Customers\"].Rows) { Response.Write(Customer[\"CustomerId\"].ToString() + \"<br> \" ); } } </script> <body> </body>
返回类别: 教程 上一教程: .Net的精髓-XML和SOAP(一) 下一教程: 部署ASP.NET的三大技术(5) 您可以阅读与"ASP+联结数据库"相关的教程: · ASP.NET中数据库的操作初步(1) · 在ASP+中访问数据库 · ASP.NET 2.0轻松实现数据库应用开发 · asp+中是如何连接数据库ado+的 · ASP.NET 链接数据库基础 |
| 快精灵印艺坊 版权所有 |
首页 |
||