以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  代码问题  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=129331)

--  作者:zhangjian222200
--  发布时间:2018/12/26 13:04:00
--  代码问题
    wb.AppendHTML("bt3","<p style=\'text-align:center\'><strong><span style=\'color:#ff0000;font-family:SimHei;font-size:25px;\'>视频教程</span></strong> </p>")


上述代码执行后,服务器错误记录:
2018-12-26 12:09:34.8856
调用的目标发生了异常。
   在 System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   在 System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   在 Foxtable.UserFunctions.Execute(String Name, Object[] Args)
从字符串“<p style=\'text-align:center\'><st”到类型“Boolean”的转换无效。
   在 Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean(String Value)
   在 UserCode.AxxuBBMi6aGEE7Cgn(Object[] Args)
输入字符串的格式不正确。
   在 Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
   在 Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean(String Value)
[此贴子已经被作者于2018/12/26 13:04:24编辑过]

--  作者:有点蓝
--  发布时间:2018/12/26 14:13:00
--  
这段代码没有问题,检查其他代码
--  作者:有点甜
--  发布时间:2018/12/26 20:35:00
--  
AppendHTML 改成 insertHTML