如何连接自定义 C# ASP.Net WebControl 来回发自定义 __EVENTARGUMENT?

发布于 2024-10-07 15:24:47 字数 192 浏览 0 评论 0原文

我正在创建一个自定义 ASP.Net GridView,我希望能够更改 __EVENTARGUMENT 值,但我不知道如何捕获服务器端的返回值。

我正在创建具有可折叠表示的功能,因此第一级是标准 GridView,如果它们展开第一级行,我将通过 JavaScript 插入其他行。

我的问题是如何在使用自定义数据回发的第二级行上创建链接。

I'm creating a custom ASP.Net GridView and I want to be able to alter the __EVENTARGUMENT value but I can't figure out how to capture the returned value on the server side.

I'm creating the ability to have a collapsible representation, so the first level is the standard GridView and I will insert additional rows via JavaScript if they expand the first level row.

My problem is how to create a link on the selecond level rows that posts back with custom data.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

盗琴音 2024-10-14 15:24:47

我相信 RaisePostBackEvent 是该值被传递到的地方; GridView 基类允许您覆盖它,因此您应该能够在那里利用它。

这是 IPostBackEventHandler 接口的一部分。

HTH。

I believe the RaisePostBackEvent is where this value gets passed into; the base GridView class allows you to override it, so you should be able to tap into it there.

This is a part of the IPostBackEventHandler interface.

HTH.

想念有你 2024-10-14 15:24:47

使用 __dopostback 从 javascript 引发回发。使用正确的参数,以便将其映射到正确的事件

Use __dopostback to raise the postback from javascript. Use the correct parameters so that this will be mapped to the right event

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