ID 自動編號
標題 字符串
署名 字符串
正文 備注
<%@ Import Namespace=
<%@ Import Namespace=
<html><head>
<style>
<!
body{font
p{font
td{font
//
</style>
<title>留言本</title></head>
<body>
<p align=right><font size=
<script language=vb runat=server>
Sub Page_Load(Source As Object
Dim myConn As New OleDbConnection(
Dim myAdapter As New OleDbDataAdapter
Dim myOleDbCommandBuilder As OleDbCommandBuilder = New OleDbCommandBuilder(myAdapter)
Dim DS As DataSet = New DataSet
myAdapter
myconn
myAdapter
ml
ml
end sub
</script>
<ASP:DataGrid id=
Width=
BorderColor=
ShowFooter=
CellPadding=
CellSpacing=
Font
Font
HeaderStyle
EnableViewState=
>
<Columns>
<asp:HyperLinkColumn
DataNavigateUrlField=
DataNavigateUrlFormatString=
text=
Target=
/>
</Columns>
</asp:DataGrid>
<br><br><font size=
<form method=post action=send
標題:<input type=text name=title><br>
署名:<input type=text name=name><br>
內容:<textarea name=body></textarea><br>
<input type=submit>
</form>
<%@ Import Namespace=
<%@ Import Namespace=
<script language=vb runat=server>
Sub Page_Load(Source As Object
Dim myConn As New OleDbConnection(
Dim myInsertQuery As String =
Dim myOleDbCommand As New OleDbCommand(myInsertQuery)
myOleDbCommand
myConn
myOleDbCommand
myOleDbCommand
response
end sub
</script>
<html><head>
<style>
<!
body{font
p{font
td{font
//
</style>
<title>察看留言</title></head>
<body>
<p align=right><font size=
<%
id=request(
set cn=server
cn
set rs=server
rs
%>
ID:<% = id %><BR>
標題:<% = rs(
署名:<% = rs(
內容:<Br><% = rs(
<a >返回</a>
From:http://tw.wingwit.com/Article/program/net/201311/13000.html