开发者

How do I wire up a custom C# ASP.Net WebControl to post back a custom __EVENTARGUMENT?

开发者 https://www.devze.com 2023-01-31 04:13 出处:网络
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 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 开发者_如何学Golink on the selecond level rows that posts back with custom data.


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消