你好朋友,我正在创建一个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 / zh-CN / library / ms228046.aspx 获取ID页面按请求加载[Id]; hello buddy you can use this Link msdn.microsoft/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 。 www.dotnetperls/querystring [ ^ ] 希望它能为您提供帮助。 Hi there, you can use QueryString : follow this tutorial about QuerString. www.dotnetperls/querystring[^] Hope it will help you.
更多推荐
如何将Id信息从一个页面传递到另一个页面
发布评论