473,385 Members | 1,813 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,385 software developers and data experts.

Logins

5
Greetings.......

I am working on a website in ASP.net 2.0.(using Visual Web Developer Express Edition and SQL Management Studio) I am also utilizing a SQL DB to store all my data. The website should enable students to view courses from a course list and select courses they want to register. I have created the aspx pages to enable the students to view the course list. Now the problem i am having is how to make my application distinguish which specific user is currently logged in and grab their unique Student_ID and supply it to a stored procedure to add their selected courses to the StudentCourses table that stores what student is registered to what class?
Sep 28 '07 #1
3 1112
Frinavale
9,735 Expert Mod 8TB
Greetings.......

I am working on a website in ASP.net 2.0.(using Visual Web Developer Express Edition and SQL Management Studio) I am also utilizing a SQL DB to store all my data. The website should enable students to view courses from a course list and select courses they want to register. I have created the aspx pages to enable the students to view the course list. Now the problem i am having is how to make my application distinguish which specific user is currently logged in and grab their unique Student_ID and supply it to a stored procedure to add their selected courses to the StudentCourses table that stores what student is registered to what class?
Look into Forms Authentication.
It's really pretty easy to do.

To get you started I recommend you watch this video found on this site.

I'd also suggest looking up forms authentication in the MSDN Library. It contains a lot of useful information and tutorials etc.

Hope this gets you pointed in the right direction :)

-Frinny
Sep 28 '07 #2
kakas
5
Finny,

Thanks for your response, i have watched the video, it was very informative but it didn't help me becuase the users and roles he creates in the video have no relationship to the users in my Students table. How can i link the user in the ASP Membership tables and the users in my student table?
I about to read the other website it looks very promising.
Thanks
kakas

Look into Forms Authentication.
It's really pretty easy to do.

To get you started I recommend you watch this video found on this site.

I'd also suggest looking up forms authentication in the MSDN Library. It contains a lot of useful information and tutorials etc.

Hope this gets you pointed in the right direction :)

-Frinny
Sep 28 '07 #3
Frinavale
9,735 Expert Mod 8TB
Finny,

Thanks for your response, i have watched the video, it was very informative but it didn't help me becuase the users and roles he creates in the video have no relationship to the users in my Students table. How can i link the user in the ASP Membership tables and the users in my student table?
I about to read the other website it looks very promising.
Thanks
kakas

Somehow I knew you were going to ask this.

There is a way to create a custom MembershipProvider and MembershipUser that you can implement to utilize your own DataBase store.

All you really have to do is create the classes that Inherit the MembershipUser or MembershipProvider and build upon this.

I was able to implement a custom Provider and User in a couple of hours..from knowing nothing about membership. It's quite easy. Check out what MSDN has on Membership and these classes for more information on how to do this. They have excellent examples on how to create your own Membership classes.

Keep me updated on your progress.

-Frinny
Sep 28 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Albe V° | last post by:
On a huge Sql-Server 7 installation, we have various client applications distributed along the Lan, accessing one main database. Each application accesses the db using one out of around ten...
1
by: Dave | last post by:
I am doing a complete backup on a sql 7 db and then doing a complete restore (with overwrite existing db) on a sql 2000 server. This is now our hot standby server. I have the process automated and...
2
by: Len Svitenko | last post by:
How can I get a list of all SQL server logins that are on a given sql server? What sql query would get me that? Or is there an sp that gives me that. Also, if it could list what db they have...
1
by: David McGeorge | last post by:
I am confused about windows account, win dimain account, sql login accoun and sql database user account.... can you give me a fresh example to show the exact relationship between them and how they...
4
by: tchangmian | last post by:
Hi, I would like to create an auto-lock out module where users are unable to continue login attempt after 3-5 unsuccessful logins. In addition, the user account are automatically suspended after...
3
by: mgPA | last post by:
Short: How can I limit the number of concurrent logins to Access (2000) DB? Long: I seem to be having the problem discussed in previous postings of having more than 9 or 10 concurrent logins. ...
4
by: Burt | last post by:
Hi All, I need to develop an C# internet app with logins, eg you create a username and password, the password can be emailed to you if you forget it, you can change the password etc. Before I...
2
by: happyjenny52 | last post by:
Hi, I work as an IT Administrator and part of my job role is to use Enterprise Manager and Query Analyzer to backup the logins and permissions for each database on our SQL Servers. This...
8
by: Simon Gorski | last post by:
I have a large problem, and I believe there is not yet a way to solve this using IIS and ASP.NET. I hope someone has a solution which we couldn't find. The current situation When a user logs...
3
by: Inna | last post by:
Hello all, I am looking for the script, which I believe exists already.I need to be able to populate the script for security of one database and apply it to another database, even if it is located...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.