Vikram

Vikram

  • 1.5k
  • 276
  • 308.5k

User Control And Properties

Jun 2 2010 2:55 PM
Hi,
   
   In my Application, I am creating a User Control which contain  GridView and Button. In User Control I have defined two Properties, one for UCDSource as DataTable and another SFlag  as Boolean flag. 
   On Button's Click Event I set SFlag to true and make Visible Property of few Columns to false. Now again when I click to the same button's Click Event I won't get the Boolean Property as true its display as false.
   I find all set value lost on the Post back on the Parent Page.
I want all those Property values on the events of Buttons contains in the User Control.
I think I missing something basic about Event handling in the User Control.

Any Help appreciated........

Thanks,
  VIKram

Answers (1)