开发者

Cancel control postback

开发者 https://www.devze.com 2022-12-08 16:33 出处:网络
Is there any way to cancel OnTextChanged postback when it meets certain c开发者_StackOverflowondition at code behind without using javascript??you just contradicted yourself:

Is there any way to cancel OnTextChanged postback when it meets certain c开发者_StackOverflowondition at code behind without using javascript??


you just contradicted yourself:

cancel OnTextChanged postback

and

when it meets certain condition at code behind

you can't get to code behind unless you PostBack

p.s. what's the problem with using javascript? give more details on your scenario, and you might get some help here.


Since you don't want to do it client-side, you would have to use OnTextChanged in codebehind on the server side, but by then it's too late; the postback has already occurred.

So you can't cancel the postback, but you can redisplay the page.

0

精彩评论

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