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): 30728/ 74

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-2021 ASPAlliance.com  |  Page Processed at 2021-03-02 9:40:31 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search