A
Arulraja
Hi,
Hello,
I have a question regarding Custom server Controls event handling.
The problem I am facing is, I have created 2 Controls say
BrandContainer and FamilyContainer.
1. The FamilyConatiner renders a table with a Button Control on it.
2. The BrandContainer renders a table with a FamilyContainer on it.
3. In the FamilyContainer-> Button's OnClick event I wrote some
validations and do some business logics.
4. Then it should renders the page again with the changed value.
But the problem is, if I click the button, it calls the
BrandContainer's CreateChildControls method.Then it build all the
child controls, including the FamilyContainer, then it call's the
OnClick event of the FamilyContainer.
So, my page renders before all the validations and business logics
have done.
I don't know how to handle this. If it fires the onClick event of the
child control first then I can handle the Parents CreateChildControls
Method without any problem.
Thanks for ur help.
-Livingston
Hello,
I have a question regarding Custom server Controls event handling.
The problem I am facing is, I have created 2 Controls say
BrandContainer and FamilyContainer.
1. The FamilyConatiner renders a table with a Button Control on it.
2. The BrandContainer renders a table with a FamilyContainer on it.
3. In the FamilyContainer-> Button's OnClick event I wrote some
validations and do some business logics.
4. Then it should renders the page again with the changed value.
But the problem is, if I click the button, it calls the
BrandContainer's CreateChildControls method.Then it build all the
child controls, including the FamilyContainer, then it call's the
OnClick event of the FamilyContainer.
So, my page renders before all the validations and business logics
have done.
I don't know how to handle this. If it fires the onClick event of the
child control first then I can handle the Parents CreateChildControls
Method without any problem.
Thanks for ur help.
-Livingston