strConnectString = Application("PlatDBConnectString") Set Connection = Server.CreateObject("ADODB.Connection") Connection.Open(strConnectString) SQLStmt = "select msg_id, needs_approval, internal_title, description, msg_from, msg_subject, msg_html from SPBU_emailer where msg_id = 212"
Set RS = Connection.Execute(SQLStmt)
If Not RS.EOF Then strMsgfrom = RS("msg_from") strMsgSubject = RS("msg_subject") strMsgHTML = RS("msg_html") response.Write(RS("msg_html")) response.Write(RS("msg_html")) response.Write(RS("msg_subject")) End If 不知道为什么书不出RS("msg_html"),数据库里面可以查询到该值!! 该字段类型为nvarchar(MAX),内容为HTML,为何书不出该内容!!应该是可以的,看看你的 html 内容是不是没有内容,只有标记 有内容的啊。内容是HTML和文本! 检查你的 html 内容,看看是不是把字体颜色设置成背景色了;
或者: If Not RS.EOF Then strMsgfrom = RS("msg_from") strMsgSubject = RS("msg_subject") strMsgHTML = RS("msg_html") response.Write(RS("msg_html")) response.Write len(strMsgHTML)&"<---字串长度是多少??" response.Write(RS("msg_html"))
SqlConnection conn = CsDB.sqlcon(); SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......
Microsoft JET Database Engine '80040e07' 标准表达式中数据类型不匹配。 \wwwroot\update.asp, line 20 -------------------------------------------------------------------------------- Ho ......