简体   繁体   English

将表单数据发布到DNN中的html表

[英]post form data to html table in DNN

I need your help 我需要你的帮助

I have two pages in a DNN site. 我在DNN网站上有两个页面。 1 is a form and 2 is a html table. 1是表格,2是html表。

My question is. 我的问题是。 Is it possible to get the data from page 1 and send it to the table in page 2 in a DNN site? 是否可以从DNN站点的第1页获取数据并将其发送到第2页中的表? If so, do you know where I can find tutorials on how to do this? 如果是这样,您知道在哪里可以找到有关如何执行此操作的教程吗?

Hope to hear from you. 期待您的回复。

Thanks! 谢谢!

If I understoud you right the answer is yes. 如果我理解您的权利,答案是肯定的。 (DNN module development is required) (需要开发DNN模块)

NavigateUrl();

You can pass a TabID in this method to navigate to another page. 您可以在此方法中传递TabID来导航到另一个页面。

will help you reaching your goal. 将帮助您实现目标。 you can add a string array as parameters into this method. 您可以将字符串数组作为参数添加到此方法中。 On page2 you can read out your parameters with the following code: 在第2页上,您可以使用以下代码读取参数:

Page.Request[""];

type in the string of your named parameter. 输入您命名参数的字符串。 This is a good way to transfer strings from page1 to page2. 这是将字符串从page1传输到page2的好方法。

If you want to transfer big object or something I would sugesst you that you should do it with a database or only transfering the string where you can read out your information in the DB. 如果要传输大对象或其他东西,我建议您使用数据库或仅传输可在数据库中读取信息的字符串。

The following link can help you but be carefull this is a VERY old state (about 5 years old created for DNN4 I think). 以下链接可以为您提供帮助,但请注意,这是一个非常古老的状态(我认为为DNN4创建的状态大约是5年)。 Iam not sure if everything in this link is working. 我不确定此链接中的所有内容是否正常运行。

DotNetNuke 4 NavigateURL examples DotNetNuke 4 NavigateURL示例

hope this helps. 希望这可以帮助。 best regards, noone. 最好的问候,没人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM