Last post Mar 14, 2008 04:51 PM by jlea
Mar 13, 2008 09:23 PM|jlea|LINK
I built a very simple web site without the CSS friendly adapters and went through the usual WAT/login control process and all is good. I do the same basing a test site on the CSS friendly adapters template, did the WAT/login control and no good: I can't
get authenticated. I did this several times with no luck.
Is there a trick in using the Login control (and the others) when using CSS friendly adpaters?
"CSS Friendly Control Adapters"
Mar 14, 2008 02:09 PM|MikeJ83|LINK
There is no trick, they should work for you right away. How are you installing the CSS Friendly adapters?
Mar 14, 2008 02:19 PM|jlea|LINK
I downloaded the install file (from
http://www.asp.net/cssadapters/), installed it, created a web site (http) with the Tutorial template and then a site using the normal CSS friendly adpater template, did the WAT steps to enable roles, use internet for authentication type, added a user to
the role, dropped a login control on a new Login.aspx page, viewed this page in the browser, tried to login and I get the "login unsuccessful..." message.
I do the identical using the asp.net template and it works just fine. I've done this steps numerous times.
I'm using Vista, VS 2005, I have SQL Server 2005 installed.
Thanks for the response.
btw - I've also removed the LoginAdapter.cs file and the reference to it in the browser file with no luck. I've compared the source view of the login.aspx page built in the CSS adpater project (with the changes I just mentioned) and the source view from
the asp.net project and the rendered HTML is the same. I'm baffled.
Mar 14, 2008 02:31 PM|MikeJ83|LINK
The version of the CSS Adapters you are using is out of date, please use the latest version (http://www.codeplex.com/cssfriendly/Release/ProjectReleases.aspx?ReleaseId=2159).
You can download just the DLL and the browser file, put it into your ASP.NET project that is has working authentication, and you should be good to go.
Mar 14, 2008 02:35 PM|jlea|LINK
Mike - I'll download the new version and proceed as you have instructed and let you know how things go.
Mar 14, 2008 03:10 PM|jlea|LINK
I downloaded the browser file and the dll.
I tried to get the web project (that does not authenticate) that was constructed starting from the CSS friendly template (I deleted all files, the MDF file, etc.) and added a new default.aspx, reconfigured security, droppoed a new login control on the page
with no success. I give.
I then added the browser file and the dll to the project built from the asp.net template, added the link, etc. tag to the head tag and I'm still able to login - good!!
The login control however loses its pretty professsion look and now it looks very plain - any idea how to make it look nice (using the auto format option) or do I need to CSS it?
Finally, it looks like once you start a web site project from the old CSS friendly template there isn't a way to "undo" whatever it does to make security not work??
Mar 14, 2008 03:32 PM|MikeJ83|LINK
I would not recommend using the CSS Friendly templates. To make the control look nice you will have to modify your css so that whatever was applied to it before is applied to it now.
Mar 14, 2008 04:51 PM|jlea|LINK
I agree re the template. Thanks for your help. Jon.