如何在asp.net中使用发布功能 [英] How to use post function in asp.net

查看:83
本文介绍了如何在asp.net中使用发布功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何在asp.net页面中使用发布功能.我需要这样做,因为如果我将当前表单发布到另一个表单,那么我需要以前的表单输入数据到该表单.
请任何人可以帮助我.
在此先感谢

我已经在按钮中使用单击属性PostbackUrl设置了下一个表单名称.
如果我这样声明,则第一种形式的数据无法保存在数据库中.

<form id="Form1" action="YourNextPage.aspx" method="post"></form>



设置当前页面中每个控件的专有名称属性.在下一页中,您可以在Request中获得所有这些值,如下所示.


Request("controlname").ToString



示例链接 [ ^ ]

希望对您有所帮助.


参考1 [参考-2 [ http://msdn.microsoft.com/en-us/library/ms178139.aspx [ ^ ]

认为这是您的答案


How we can use post function in asp.net page. i required this because if i posted the current form to another form then i need the previous form input data to this form.
please any one can help me.
Thanks in advance

I have use in the button click properties PostbackUrl set the next form name.
if i declare like this then the data of the first form can''t save in the database.

解决方案

Are you referring about form POST method ?

<form id="Form1" action="YourNextPage.aspx" method="post"></form>



Set proper name property of every control in the current page. In the next page you can get all this values in the Request like below.


Request("controlname").ToString



Example link[^]

Hope it helps.

[Edit]
Reference-1[^]

Reference -2[^]
[/Edit]


hi,,


you can use sessions or query strings


hi
http://msdn.microsoft.com/en-us/library/ms178139.aspx[^]

think this is your answer


这篇关于如何在asp.net中使用发布功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆