Required field validators and tab panels--bug?
This might be of interest to people trying to make the C# version work. On the AddEditUser page there is an Ajax tab container and tab panels.
On the first tab panel there are several Required field validators tied to textboxes for updating user information. On the second tab there is a
Button for updating Roles checked off on the same tab.
Now this button will simply not work i.e. clicking the button doesn't trigger the onclick event to update roles. What I found out was that if some
fields are not filled in on the first tab this is the reason that the button on the second tab will not work. So it seems that if you have field validators
on a tab this will effect buttons on other tabs. You cannot see the required field warnings when you are on another tab than where the field validators
are. Clicking on buttons on other tabs will simply not work when the fields on other tabs are blank. A work around is to have the fields validated in the
"update" link (and it's onclick event) on the first tab rather than have required field validators.
|