This blog is a personal outlet to share some things I encounter during my coding adventures and would like to share with the world, so that others (hopefully) can profit by it.

This blog does not express in any way the views and opinions of the companies I work for!

Happy reading and of course leave your comments where you see fit!

donderdag 24 december 2009

Embedded WebBrowser - window.status problem in IE7

The WebBrowser component, is in essence a Internet Explorer window which can be embedded into a Windows application.

Until now, the easiest way to communicate with your host application from an embedded WebBrowser script was through the use of the window.status property. Assigning a value to it would cause the TWebBrowser.OnStatusTextChange event to fire in your application. Unfortunately...

zondag 1 november 2009

Simple role controlled menu system

NET 2.0 has the wonderfull user and role provider system, called Membership, which make login, access and role control quite simple. I used this feature in some occasions to full satisfaction. Drawback of the providers is that you either need to incorporate special user/role tables into your database, or write your own provider classes if you want to use your own user/role tables.

One feature I’m particulary fond of is the way the menu component adapts itselfs to the access rules you define for your users. In this post I’m going to explain how to set up a menu system which is controlled by roles without having to use the user/role providers.

Labels