将数据从一个 WebForm 重定向到另一个 WebForm
我正在使用 ASP.NET 的 Infragistics 工具。
我有一个 WebForm,webform1
,我在其中放置了一个基础设施的 WebDataGrid 控件。 现在,我希望用户选择该行并将数据重定向到另一个 WebForm webform2
上的文本框。
如何将所选行从 webform1
获取到 webform2
?
I'm using the Infragistics tool for ASP.NET.
I have a WebForm, webform1
, where I placed a WebDataGrid control of infragistics. Now, I want a user to select the row and have it redirect the data to a textbox on another WebForm, webform2
.
How can I get the selected row from webform1
to webform2
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有多种选择:
您可以参考PreviousPage 属性。 有关详细信息,请参阅 MSDN 中的跨页发帖。
您可以执行 Response.Redirect,然后 URLEncode 您的值并将它们作为 GET 值在 QueryString 中发送,这些值可以从下一页引用。
您可以更改逻辑,以便使用 MultiView 或 Wizard 控件。
You have a number of options:
You can reference the PreviousPage property in the Page property of WebForm2. See Cross Page Posting in MSDN for more information.
You could do a Response.Redirect and then URLEncode your values and send them in the QueryString as GET values which can be referenced from the next page.
You can change your logic so that you encapsulate all of the functionality you require onto one Web Form, using either a MultiView or Wizard control.