如何将Id信息从一个页面传递到另一个页面

编程入门 行业动态 更新时间:2024-10-26 07:23:09
本文介绍了如何将Id信息从一个页面传递到另一个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好朋友,我正在创建一个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信息从一个页面传递到另一个页面

本文发布于:2023-05-25 10:57:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/226653.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:词库加载错误:Could not find file 'D:\淘小白 高铁采集器win10\Configuration\Dict_Sto

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!