Last post May 07, 2010 04:34 AM by binypanackal
May 07, 2010 04:34 AM|binypanackal|LINK
I am a beginger to custome user controls. MY aim is to create user controls which is embeded with validations. I created a text box and set a property called IsMandatory if am setting this property true i created a required field validator dynamically
and added to the parent control. Its working fine. NOw i place the control in a grid and my requirement is that i put a check box in each row. Those rows which is checked need to have the validation control added. So am settitng the property IsMandatory =
true on the chlick . and in the row created event i will set the properyt if the check box is checked.
MY problem is when i am checking the checkbox it will go for a post back to add the validation contol by setting the property of the textbox. But when the postback is happening i am losing the controls in all rows whcih is dynamicall added.
If any boby know how to regain the controls once i placed dynamicall it will help me a lot.
Hoping for a fast replay
Biny Balan P