将数据从一个 WebForm 重定向到另一个 WebForm

发布于 2024-07-30 01:49:17 字数 245 浏览 5 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

怎樣才叫好 2024-08-06 01:49:17

您有多种选择:

  1. 您可以参考PreviousPage 属性。 有关详细信息,请参阅 MSDN 中的跨页发帖

  2. 您可以执行 Response.Redirect,然后 URLEncode 您的值并将它们作为 GET 值在 QueryString 中发送,这些值可以从下一页引用。

  3. 您可以更改逻辑,以便使用 MultiView 或 Wizard 控件。

You have a number of options:

  1. You can reference the PreviousPage property in the Page property of WebForm2. See Cross Page Posting in MSDN for more information.

  2. 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.

  3. 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文