Updated: November, 14, 2007, 7 pm local time
Today our conference coverage starts with Paul Sheriff’s session, “Introduction to ASP.NET Security”. In brief, the speaker made an overview of all ASP.NET Login controls. Paul shows how to work with Roles (public, members etc.). After define the user’s roles, we can restrict the access to Web Site’s folders according the user role. Paul shows the interesting LoginView control, that allows to hide/show page contents according the user role. The speaker demonstrates how to use the Login control, the Password Recovery to recovery password weather the user forgot it (ASP.NET can send the new credentials by e-mail), and the CreateUserWizard to create new users. Finishing, shows how to create a custom provider for ASP.NET that allows you to use another database instead of SQL Server, to store user information.
Paul Sheriff, now in the “Architeting ASP.NET Applications” session, told about the use of CSS with ASP.NET, to separate layout definition from interface. Can be applied to fonts, colors, layout, positioning. Many developers uses HTML tables for layout positioning, this can be done better with CSS. Se an example of how to use CSS:
Don’t do this:
Paul told about Themes & Skins. This an interesting ASP.NET feature that s allows you to define a “template” to a specific type of control, inside the App_Themes folder. A template in a skin file is basically a markup code (ASPX) where the controls don’t have the ID property, due a logical question. An interesting tip is that themes can be defined at runtime in the Pre_Init event. For example, a user can use a different layout for the Web Site (to do this is necessary to use Profiles with Themes). About session management, Paul shows how to create a “wrapper” class to encapsulate the session’s variables access,with IntelliSense support and avoiding to use a wrong name to a session variable. I really don’t know why Microsoft don’t implements in ASP.NET the variable declaration for session variables in the Web.Config as we use today in Profiles. Finishing, paul tolds about exception handling, configuration and providers.
See you tomorrow!
Paul Sheriff: Introduction to ASP.NET Security
Vishwas Lele : ASP.NET, AJAX and Silverlight – Wich one to use, and when
Paul Sheriff: Architeting ASP.NET Applications