FastRodas Posted April 20, 2004 Posted April 20, 2004 Hi to all Xtremers, i have a form with some textboxs for a user to fill (a registration form). In the same aspx file i have a datagrid with command buttons. In the registration form i validade the fields with required field validators. The problem is when i execute the command buttons that exist in the datagrid, the code associated with the command buttons does not execute unless i fill the textbox that are required. How can i solve this problem? thx to all Quote
Administrators PlausiblyDamp Posted April 20, 2004 Administrators Posted April 20, 2004 That is the idea of required field validators - they stop the page posting back until the required fields are filled in. If the fields are not required to be filled in then marking them as required will only cause problems. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Moderators Robby Posted April 20, 2004 Moderators Posted April 20, 2004 Change the property .CausesValidation of the button to False. This will allow the page to post back even though the page is not valid. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.