How stupid did I feel today? Very, that's what.
In my perfectly working application, I add a new tab to the tabcontainer, and add some link buttons in it, but when running, the buttons would not work - they wouldn't run the code behind - I was completely perplexed as to why this was happening.
Eventually a colleague said to me "are you using the CausesValidation" - AH!!! Somewhere else on the application there is a requiredfieldvalidator, and that was telling the page that navigation couldn't take place, but the field was required - but in this case, it was allowed to happen. So, setting the property of CausesValidation = false, solved the problem.
No comments:
Post a Comment