如何将Id信息从一个页面传递到另一个页面 [英] How to Pass Id Information from One Page To Another
问题描述
你好朋友,我正在创建一个Web应用程序,在那个用户输入他的名字和地址,我创建了不向用户显示的AutoId。在下一个表单中有几个复选框。我想从表单1传递此AutoId表格2以及存储在Gridview中的信息,表格3中存在。
示例 - 表格1
名字 - 约翰
地址 - 英国
表格2
复选框C#
复选框Asp.Net
复选框VB
表格3
存储在Gridview中。
Hello Friends , I Am Creating A Web Application , In That User Enter His Name And Address And I Created AutoId Which Is Not Display To User.In Next Form There Is Several Checkbox .I Want To Pass This AutoId From form 1 To Form 2 And Along With This Information Stored In Gridview which Is Present On Form 3 .
Example- Form 1
Name-John
Address-UK
Form 2
Checkbox C#
Checkbox Asp.Net
CheckBox VB
Form 3
Stored In Gridview.
推荐答案
你好伙伴你可以使用这个链接
https:// msdn .microsoft.com / zh-CN / library / ms228046.aspx
获取ID页面按请求加载[Id];
hello buddy you can use this Link
https://msdn.microsoft.com/en-us/library/ms228046.aspx
Get Id Page load By Request["Id"];
我建议你看一下使用会话对象 [ ^ ] - 你可以用一个cookie,但由于它们存储在客户端计算机上,它们可能更具持久性,您希望登录ID为。
I'd suggest you look at using the Session object[^] - you could use a cookie, but as they are stored on the client computer, they are probably more persistent that you want a login id to be.
您好,可以使用 QueryString :
按照本教程关于 QuerString 。
http://www.dotnetperls.com/querystring [ ^ ]
希望它能为您提供帮助。
Hi there, you can use QueryString :
follow this tutorial about QuerString.
http://www.dotnetperls.com/querystring[^]
Hope it will help you.
这篇关于如何将Id信息从一个页面传递到另一个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!