Do more with your ASP.NET Page Template
page 9 of 9
by Sajid Rehman
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 31901/ 46

How do I do it? Button functionality

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


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-03-29 7:38:18 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search