Template Libraries

by john 8/29/2007 9:31:00 AM

Highlander has a number of "Template Libraries" that make creating basic websites straight forward and easy.

This can be seen in screen shot below 


 The CSS Layouts are templates that let you create css based master-page projects giving you a particular look and feel.


For example this is a content page for the Menu Fixed, Content and  Header Dynamic master page.



Not only are you able to use these in your projects but you can add your own templates.

For example most sites need some kind of password protection, pages to login, change your password and account creation. The Login controls in ASP.Net  and the [CodeGear] membership and role providers make a great starting point. Rather than having to throw together the controls, and remembering what control properties have to be set, wouldn't it be a good idea to instead go "File, New Website." ?

Adding a new template is really easy and the steps are as follows:- 

  • Create the project
  • Create the project template definition
  • Register with the IDE

I created a web application with a login page, change password and account creation page. I also configured web.config to use the membership and role providers. The template definition file is an xml file with the extension bdstemplatelib. Mine looks like

<TemplateLibrary version="1.0" id="Membership">
<Description>Membership Starter Application</Description>
  <Item id="Membership" creator="AspDelphiProjectRepositoryCreator">
     <Name>Membership Starter Application</Name>
      <Category value="ASP.Net 2.0" parent="Borland.Delphi.NET.New">ASP.Net 2.0</Category>

The project is located in a directory relative to the location of the template file. Template registration is performed using the template libraries menu option from the tools menu. The dialog looks like this

 Once registered, anytime I need a starter web application with membership support, its just "File New Membership web application"



 And this is the membership starter application in the IDE ready to go



Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Delphi | Highlander | CodeGear | Providers | ASP.Net 2.0 | Betablogger

Securing your application

by john 8/23/2007 8:41:00 AM

Membership and role management is easier in ASP.Net 2.0 because of the built in membership and role management services.

A great place for videos and tutorials is at ASP.Net

More information can be found with the quick start tutorial Securing Your Application

You can also watch the video Secure my Site using Membership and Roles?

The article and video mention controls such as Login, LoginView, PasswordRecovery, ChangePassword and CreateUserWizard.

 The video is quite short and its easy enough to follow along using Highlander, you can see some of the results in the 2 screen shots below.


Login View



The controls make use of user services built upon the provider model. More information can be found Here. The implementations provided out of the box are pretty limiting, just targeting SQL Server, Sql Server Express and Access. Here is where it gets really interesting and extremely cool because [Codegear] have implemented their own set of providers confirming to the guidelines as laid out in the link above. It's best to read Steve Shaughnessy's blog post here . Which now means you can target Blackfish and other databases through the dbexpress bridge. In the diagram below are the options you have when hooking up a SqlDataSource component.




More to come.. 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Providers | CodeGear | Delphi | Highlander | Betablogger | ASP.Net 2.0

Powered by BlogEngine.NET
Theme by Mads Kristensen

About the author

Name of author John Moshakis
I'm a software developer living in Toronto..

E-mail me Send mail


<<  May 2022  >>

View posts in large calendar


    Recent posts

    Recent comments



    Don't show


      The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

      © Copyright 2022

      Sign in