Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共4 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:首页网址连接

1楼
zhuxinhui 发表于:2024/5/14 11:39:00
  '第80到第94行代码用于生成首页。      
    Case "", "default.htm" '首页
        wb.AddPageTitle("", "pageheader", "智能管理系统", "由二八科技有限公司开发")
        With wb.AddGrid("", "g1")
            .Add("c1", "销售开单", "./images/button.png").Attribute = ""
            .Add("c2", "采购入库", "./images/cell.png", "AddNew.htm")            
            .Add("c15", "退出", "./images/exit.png", "exit.htm") '退出登录
        End With
        '第80到第94行代码用于生成首页。
End Select
e.WriteString(wb.Build) '生成网页


下面二句的网址这样写可以吗?
.Add("c2", "采购入库", "./images/cell.png", "AddNew.htm")     其中:   AddNew.htm   
.Add("c15", "退出", "./images/exit.png", "exit.htm")               其中:   exit.htm
2楼
有点蓝 发表于:2024/5/14 11:42:00
可以。
3楼
zhuxinhui 发表于:2024/5/14 12:13:00
这个可以,应该是调用自定函数的函数出问题了

这个是自定义的函数,名为:one
Dim e As RequestEventArgs = Args(0)
Select Case e.path
    Case ""
        Functions.Execute("ahome", e)
    Case Else
        Dim dr As DataRow = DataTables("控制台").SQLfind("path='" & e.Path.Replace("'", "''").Replace("", "''") & "'")
        If dr IsNot Nothing Then
            If dr("IsAsync") = True Then
                e.AsyncExecute = True
                Functions.AsyncExecute(dr("function"), e)
            Else
                Functions.Execute(dr("function"), e)
            End If
        Else
            Dim wb As New weui
            wb.InsertHTML("<h3>页面丢失了!!</h3>")
            wb.AppendHTML("<script>console.warn('" & e.Path & "不在httpcase表,请检查是否没有设置.')</script>")
            e.WriteString(wb.Build)
        End If
End Select

我在HttpRequest事件,直接调用这个函数

Functions.Execute("one", e)



4楼
有点蓝 发表于:2024/5/14 13:31:00
学会调试

Dim e As RequestEventArgs = Args(0)
msgbox(e.path)
Select Case e.path
    Case ""
        Functions.Execute("ahome", e)
    Case Else
        Dim dr As DataRow = DataTables("控制台").SQLfind("path='" & e.Path.Replace("'", "''").Replace("", "''") & "'")
        If dr IsNot Nothing Then
msgbox(dr("function"))
            If dr("IsAsync") = True Then

共4 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .01563 s, 2 queries.