Access Provider With LoginAdapter Conflict

Today I discovered that you cannot use the LoginAdapter from the CSS Friendly Adapters with the Sample Access Providers. I am using an Access database for my Membership Provider because I only needed a login form for my administration directory and did not want to go to the trouble of adding the Security, Membership, and Role Management schema to my SQL Server database.

I am also using a fancy theme that styles tables but I did not want this style applied to the login control which renders a table. So I tried to use the LoginAdapter from the CSS Friendly Adapters. This broke my login form and I wasted considerable time trying to figure out what was going wrong.

Eventually I found this forum thread which provided a clue: http://forums.asp.net/t/1043974.aspx. Apparently using a custom MembershipProvider will break some of the CSS Friendly Adapters and the Sample Access Provider qualifies as a custom MembershipProvider. Removing the LoginAdapter fixed my login problem so I created a new theme without the table style sheet and applied this theme to the login page.

No Comments