473,378 Members | 1,138 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

ASP.Net 2.0: where do you keep login data ?

Hey
I will be creating asp.net 2.0 application and I need to create whole
database stuff... But I have to use SQL S2000 not 05. So first question do
you use default provider ( AspNetSqlProvider or something like this in a
real world applications ? )? What's best approach to keep user data I need
to have a lot of data from users because I will need their names, phones,
photos, some doc-files and so on. And up to know I kept it in one big table
User. But now I can have a fresh start but what's best approach one big
table seems ok for me because all this data are in one place. This default
provider creates some tables for me, but don't ask about anything so... What
would you suggest in my scenario ?
Jarod

Jan 11 '06 #1
4 1303
Yes, use the default provider. Run aspnet_regsql on the database and the
Membership tables will be created. These tables are used by the new 2.0
controls. You can then use 2.0 Profiles defined in the web.config or build
your own tables for unique properties such as phone numbers and so on by
using a key to relate to the aspnet_Users table.

Using Profiles is a trade-off as the data is not normalized and AFIK is
retrieved every time a member logs in whether the data is needed or not but
I have yet to learn if this can or can not be avoided.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/


"Jarod" <bl*****@NOSPAM.gazeta.pl> wrote in message
news:Op****************@tk2msftngp13.phx.gbl...
Hey
I will be creating asp.net 2.0 application and I need to create whole
database stuff... But I have to use SQL S2000 not 05. So first question do
you use default provider ( AspNetSqlProvider or something like this in a
real world applications ? )? What's best approach to keep user data I need
to have a lot of data from users because I will need their names, phones,
photos, some doc-files and so on. And up to know I kept it in one big
table User. But now I can have a fresh start but what's best approach one
big table seems ok for me because all this data are in one place. This
default provider creates some tables for me, but don't ask about anything
so... What would you suggest in my scenario ?
Jarod

Jan 11 '06 #2
Jarod,
You can run the ASPNET_REGSQSL utility on a SQL Server 2000 database and it
will created all the tables and stored procs to handle this.

http://msdn2.microsoft.com/en-us/library/ms229862.aspx

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Jarod" wrote:
Hey
I will be creating asp.net 2.0 application and I need to create whole
database stuff... But I have to use SQL S2000 not 05. So first question do
you use default provider ( AspNetSqlProvider or something like this in a
real world applications ? )? What's best approach to keep user data I need
to have a lot of data from users because I will need their names, phones,
photos, some doc-files and so on. And up to know I kept it in one big table
User. But now I can have a fresh start but what's best approach one big
table seems ok for me because all this data are in one place. This default
provider creates some tables for me, but don't ask about anything so... What
would you suggest in my scenario ?
Jarod

Jan 11 '06 #3
On Wed, 11 Jan 2006 20:39:33 +0100, Jarod wrote:
Hey
I will be creating asp.net 2.0 application and I need to create whole
database stuff... But I have to use SQL S2000 not 05. So first question do
you use default provider ( AspNetSqlProvider or something like this in a
real world applications ? )? What's best approach to keep user data I need
to have a lot of data from users because I will need their names, phones,
photos, some doc-files and so on. And up to know I kept it in one big table
User. But now I can have a fresh start but what's best approach one big
table seems ok for me because all this data are in one place. This default
provider creates some tables for me, but don't ask about anything so... What
would you suggest in my scenario ?
Jarod

I recommend that you look into Application Blocks.
One Application Block pertaining to security, passwords, etc. is

http://msdn.microsoft.com/library/de.../security1.asp

Jan 11 '06 #4
> You can run the ASPNET_REGSQSL utility on a SQL Server 2000 database and
it
will created all the tables and stored procs to handle this.

http://msdn2.microsoft.com/en-us/library/ms229862.aspx


I did it, but do I have to create SqlRoleProvider and SqlMembershipProvider
in web.config ? Or is there another way ? Maybe some nice tool ?
Jarod

Jan 12 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Leader | last post by:
HI All, I created a SQL Server DSN using Windows ODBC Data Source Administrator. While creating the DSN, it asked me about authentication process in reply to which I selected "With SQL Server...
3
by: Paul | last post by:
Hello, First I want to refer to the problem "WebRequest : execute a button" of a few days ago. The way I solved it, I loose my session, and as a consequence my session variables. I don't want...
1
by: Linda Chen | last post by:
Hello, I made a webservice, the user is asked to login to the server before making other calls. I have problem to keep the login state. Inside my web service I have a private boolean called...
3
by: nkoriginal | last post by:
Hello: I tried an script for keep my data form after reload page, but I've some errors. In this momento I runnung my own browser because we've an intranet. And for security reason, our page...
6
by: laredotornado | last post by:
Hi, When a user logs into our site, we create a session variable to denote the session is active and another to denote who is logged in. Once the user closes the browser and re-opens it, the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.