开发者

Page postback even after showing validation summary

I have a masterpage, having same old header, footer and content sections. I have different aspx pages bases on this masterpage. But each aspx contains a web user control.

For ex. MasterPage -> SiteMaster.master, ASPX -> CreateBid.aspx, Web Control -> CreateBid.ascx.

I have used validation controls within web controls showing validation summary within the same control. The problem here is that, the page postbacks even if validation fails. The validation summary is also shown, but page is postbacked.

Could someone help me why this is 开发者_运维百科happening?

Although the page is postbacked, no code is executed. For ex. If i am clicking on Submit button, nothing is submitted, i could see the validation summary or messagebox but the page is refreshed. If i am considering simple aspx without masterpage the validation works perfectly without page refresh.

Thanks for sharing your valuable time.


Hai Raza,

Have a look at this it may be your answer Validators on postback

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜