开发者

Cancel control postback

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜