Button functionality can be provided in your Page Template by –
- Including boolean properties in your PageTemplate class for each button. These properties are used in the Render() method to show/hide the respective button.
- This property is set in the code-behind of your aspx.
Advantages
- Developers need not bother about rendering of buttons on a page. Boolean properties control the display of buttons. This is most useful in wizard style pages.
- Setting up buttons & their functionality in the template avoids problems arising out of some developers using absolute paths & others using relative paths.
You can also add more features to the template based on the needs of your site.
You can download a sample application by clicking here
Send your comments to sajidrehman@email.com