在asp.net中将文本值从一页传递到另一页

在asp.net中将文本值从一页传递到另一页

问题描述:

在我的项目中,我需要知道如何将文本框值从一个aspx值传递到另一个
例如..
在一个页面中,提交该页面后,我有两个文本框值(字符),它会检查表是否匹配,如果有匹配项,则行将在grigview控件的另一个aspx页面中显示
怎么可能..
或给出其他想法

In my project i need to know how to pass textbox value from one aspx value to another
eg..
in one page i have two textbox value(character) after submit that page it check tables for matching if any match then rows will displayed in another aspx page in grigview control
how it is possible ..
or give any another idea

此链接看起来很好.

http://msdn.microsoft.com/en-us/library/6c3yckfw.aspx

编辑-

下面的链接具有"ASP.NET状态管理概述" 的列表,用于将数据持久保存在同一页面上以及两个Web页面之间.

http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx
This link looks good to start with.

http://msdn.microsoft.com/en-us/library/6c3yckfw.aspx

Edit -

Below link has list of "ASP.NET State Management Overview" to persist Data on the same Page and in between Two Web Pages.

http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx


最简单的方法是使用状态管理策略,例如查询字符串或会话变量.

如何:在ASP.NET网页之间传递值 [
The easiest way to do this is use a state management strategy like query string or session variables.

How to: Pass Values Between ASP.NET Web Pages[^] discusses some approaches and should help you get started.