|
| |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
Start! 下面是创建存储过程 CREATE PROCEDURE select_forum AS select * from forum Go xx.aspx <%@ Page Language=\"VB\" %> <%@ Import Namespace=\"System.Data\" %> <%@ Import Namespace=\"System.Data.SQL\" %> <% dim conn as SQLConnection dim cmd as SQLCommand dim myreader as SQLDataReader conn=new SQLConnectio(\"server=localhost;uid=sonysce;pwd=1netsg;database=1net\") cmd=new SQLCommand(\"select_forum\",conn) cmd.CommandType=CommandType.StoredProcedure conn.Open() cmd.Execute(myreader) while myreader.Read() Response.Write(myreader(\"content\")&\"<br>\") end while myreader.Close() conn.CLose() %> End 返回类别: 教程 上一教程: 利用.NET框架简化发布和解决DLL Hell问题(2) 下一教程: 通过事例学习.net的WebForms技术(二) 您可以阅读与"ASP中是如何使用存储过程的"相关的教程: · ASP.NET中如何调用存储过程 · 如何在aspx中得到在存储过程中的的数值(兼答jspfuns的问题) · ASP.NET中利用存储过程实现模糊查询 · 在.net中调用存储过程的另一种方式 · 如何使用asp+ 动态创建页面元素 |
| 快精灵印艺坊 版权所有 |
首页 |
||