The dynamic control generation is always done by the help of 'createchildcontrols' function. Here we must handle the postback event to avoid the creation of control at each and every time. For that in asp we use
if(!ispostback)
like that here
we use
if(!page.ispostback)