开发者

How do I force a full postback from codebehind?

开发者 https://www.devze.com 2022-12-16 02:53 出处:网络
I\'d like to programmatically force a full page postback to occur after an event is fired by one of the child controls.I can\'t add any triggers to make th开发者_StackOverflow社区is work so it will ha

I'd like to programmatically force a full page postback to occur after an event is fired by one of the child controls. I can't add any triggers to make th开发者_StackOverflow社区is work so it will have to be done via code. Thanks.


Sorry, don't understand. By the time an event in codebehind is running, a postback has already happened.


If you mean a client side event then setup OnClientClick to call what is returned by the following after your other client side functionality:

Page.ClientScript.GetPostBackEventReference(control, "")

(It will be something like __dopostback)

0

精彩评论

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