Chinaunix首页 | 论坛 | 博客
  • 博客访问: 26188149
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188150
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188151
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188152
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188153
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188154
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188145
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188156
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188157
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188158
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188159
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188160
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188161
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188162
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188163
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188164
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188165
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188166
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188167
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188168
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188169
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188160
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188171
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188172
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188173
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188174
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188175
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188176
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188177
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188178
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188179
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188180
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188181
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188182
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188183
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188184
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188175
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188186
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188187
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188188
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188189
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188190
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188191
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188192
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188193
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188194
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188195
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188196
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188197
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188198
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188199
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

ASP生成XML数据-hkebao-ChinaUnix博客

  • 博客访问: 26188190
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-05-21 10:55:09

1.       XML

XML文档中的所有文本都会被解析器解析。只有在CDATA部件之内的文本会被解析器忽略。我理解:不被解析就是你写的是什么就显示什么。比如你写的是 2 < 3 就打印出来2 < 3出来了。如果被解析了的话就会报错的。如果文本包含了很多的"<"字符和"&"字符——就象程序代码一样,那么最好把他们都放到CDATA部件中。一个 CDATA 部件以"" 标记开始,以"]]>"标记结束:

2.       编写DBConnection.asp 连接DB的代码

<%

'返回连接DB对象

Function ConnOpenNewConnectionClub

       Dim Conn

       Set Conn = Server.CreateObject("ADODB.Connection")

       If Err.Number <> 0  Then

           Set ConnOpenNewConnectionClub = Nothing

           Exit Function

       End If

       login_user = Application("Connection_RuntimeMyTianyaUserName")   '定义到了asa文件中去了。

       login_passwd = Application("Connection_RuntimeMyTianyaPassword")

       conn.ConnectionTimeout = Application("Connection_ConnectionTimeout")

       conn.CommandTimeout = Application("Connection_CommandTimeout")    '设置游标属性

       conn.Open "DSN=hkebao;PASSWORD="&login_passwd&";USER="&login_user&";",login_user , login_passwd  '密码存在文件中

       If Err.Number <> 0  Then

          Set ConnOpenNewConnectionClub = Nothing

       Else

          Set ConnOpenNewConnectionClub = conn                 '返回回来一个连接对象

       End If

End Function

Dim oConn

Set oConn = ConnOpenNewConnectionClub()                     '引用此函数得到一个连接对象

%>    返回出来一个连接对象

3.       开始编写XML数据生成

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92929) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92928) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92927) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92926) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92925) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92924) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92923) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92922) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92921) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92920) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92919) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92918) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92917) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92916) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92915) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92914) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92913) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92912) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92911) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92910) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92909) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92908) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92907) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92906) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92905) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92904) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92903) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92902) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92901) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92900) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92899) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92898) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92897) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92896) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92895) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92894) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92893) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92892) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92891) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92890) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92889) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92888) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92887) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92886) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92885) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92884) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92883) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92882) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92881) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92880) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92879) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

<%

Response.ContentType = "text/xml"

%>

<%

'========================================

'生成接口数据,接收参数bbs表的ID

'输出XML数据: User_Name,Topic,Content

'========================================

%>

<%

       Dim strId               '传入ID

       Dim strSQL,strUserName,strTopic,strContent,strOut

       strId = Trim(Request.QueryString("id"))     

       response.Write "" &vbCrLf     

       If IsNumeric(strId) = False Then

                     response.write "传入参数异常 ]]>"

                     response.End

       End If

       strSQL = "SELECT User_Name,Topic,Content FROM bbs WHERE ID = "&strId

       If oConn Is Nothing Then

              response.write "数据库连接异常请检查数据库连接 ]]>"

              response.End

       End If

       Set bbs_rs = Server.CreateObject("ADODB.RecordSet")

       'response.End

       bbs_rs.open strSQL,oConn,1,1

       If bbs_rs Is Nothing Then

              response.write "对不起数据连接出现错误无法完成当前操作。请重试或和网站管理员联系]]>"

              Response.End

       End If

       '连接没问题开始遍历

       If bbs_rs.eof Or bbs_rs.bof Then

              response.write "对不起目前没有您要的数据]]>"

              response.End

       Else

              response.Write ""&vbcrlf

              Do While not bbs_rs.eof

                     strUserName = Trim(bbs_rs("User_Name"))

                     strTopic = Trim(bbs_rs("Topic"))

                     strContent = Trim(bbs_rs("Content"))

                     strOut = ""

                     strOut = strOut & "" &vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&""&vbCrLf

                     strOut = strOut & ""&vbCrLf

                     response.write strOut

                     bbs_rs.moveNext

              Loop

              response.write ""

       End If

       '关闭DB连接

       oConn.close

       Set oConn = Nothing

%>

这样做将DB封装得非常不错。


阅读(92878) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~