以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  这样写对吗  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=141574)

--  作者:yetle
--  发布时间:2019/10/5 9:00:00
--  这样写对吗

                        .Add("btn6", "查货", "submit", "ch.htm?chid=\'" & e.PostValues("id") & "\'" ).FormAction = "ch.htm"
将chid传递到ch.htm

--  作者:有点酸
--  发布时间:2019/10/5 11:32:00
--  
不可以。
既然是输入框,何必多次一举,id值会自动post到服务端的

--  作者:yetle
--  发布时间:2019/10/5 13:37:00
--  

那如果,在当前页通过
.AddHiddenValue("id",e.GetValues("id"))
已经将id值获取过来了  
接收页面要引用的话,是不是还是需要再次获取 
                With wb.AddInputGroup("form1","ipg1","查货")
                    .AddHiddenValue("id",e.GetValues("id"))
                End With
才能在下面代码引用
            Dim dr2 As DataRow = DataTables("派发工序表").SQLFind("_identify=" & e.PostValues("id"))       
[此贴子已经被作者于2019/10/5 13:59:10编辑过]

--  作者:有点酸
--  发布时间:2019/10/5 15:05:00
--  
在当前页通过
.AddHiddenValue("id",e.GetValues("id"))

后续接收页面:
Dim id As Value = e.GetValues("id")
根据id进行处理的代码....