I have a ASP.NET project and PostgreSQL database. In my database, I have table named user
and that table has attributes: password
and nick
.
I want use the Login component in my ASP.NET project, but I do not know how can I configure it for my own databse. In the project I use an empty ASP.NET web page. And for the connection I use ODBC
or NpgSQL
.
maybe i have to ues membership provaider... How can i use it with postgreSQL ????
Thanks a lot.
I've been attempting the same thing: using ASP.NET membership, except with PostgreSQL instead of SQL Server. I found this project on the web, developed by one of the NpgSQL developers, with some instructions:
http://dev.nauck-it.de/projects/aspsqlprovider/wiki/Install
Summary of instructions (from the above link):
Sample code is available on the project's wiki page.
I know this is an older question but someone else might find this helpful.
The easiest thing to do it to swap out the microsoft provider with a postgresql provider that basically does the same job. That way you can use all of the examples that the microsoft people and bloggers have created. You will also be able to use the login objects.
I like it better than the nauck provider. I think it is more up to date. It has been upgraded so that you don't even need to run the sql script to get it started, it will create the tables for you.
PGprovider at code.google.com
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With