以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  网页插入标题与自定义函数的问题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=98706)

--  作者:douglas738888
--  发布时间:2017/4/5 15:20:00
--  网页插入标题与自定义函数的问题

老师,我在自定义函数写入统计代码,在httprequest写入如下代码,要插入标题,只显示了要插入的标题,没有自定义函数中生成的内容

 

Select Case e.Path
    Case "saletj.htm"
        Dim  wb1 As New WeUI
             wb1.InsertHTML("<h3 align=\'center\' style=\'margin-top:5px\'>数据统计</h3>")
             wb1.AddForm("","form1","saletj.htm")
         With wb1.AddInputGroup("form1","ipg1")
             .Attribute = "style=\'margin-top:5px\'"
         End With
        e.WriteString(wb1.Build)
        Functions.Execute("saletj",e)
End  Select


--  作者:有点色
--  发布时间:2017/4/5 15:44:00
--  

 你要把你要写入的html合并起来,一次性用e.writestring写入,不能分开写。

[此贴子已经被作者于2017/4/5 15:48:01编辑过]

--  作者:有点色
--  发布时间:2017/4/5 15:46:00
--  

 注意项:e.WriteString只有早一次的有效,也就是只能写一次。