1. Create the interface
2. Create the User Controller (WebUserControl). In user controller I add two button field, those button used to change the visibility of label in Default.aspx class
Button commands call to DoJob method.
This DoJob method call to the Interface and pass the value
3. I used User Controller (WebUserControl) in Default.aspx page
In Default.aspx code behind class I implement the Interface (IControler)
4. According to the command this can control the visibility of the lable (lblName)
I create Code class and add Enum (Commands) to save to constant value.(Optional)
No comments:
Post a Comment