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

asp.net default MembershipProvider and accessing it through code

In Visual Studio 2008, I plan on creating the default membership provider
and rolls in a custom database (through the web admin tool). I need to know
how I would access user/login info and general things like that through
code. More exactly, I have an sql query that will require the userID of the
currently logged in user as a filter for different records. It will also
require that I insert the userID of the created user into the record. So, I
guess I will need to create users on the fly through custom code as well.
Where can I get tutorials and stuff on these ideas?

Jun 27 '08 #1
2 946
Check the QUICKSTARTS section at the ASP.NET web site; it covers most all of
this stuff very nicely.
BTW that would be "roles", not "rolls" - rolls are what you have with
dinner.
Best of luck,
Peter
"Andy B" <a_*****@sbcglobal.netwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
In Visual Studio 2008, I plan on creating the default membership provider
and rolls in a custom database (through the web admin tool). I need to
know how I would access user/login info and general things like that
through code. More exactly, I have an sql query that will require the
userID of the currently logged in user as a filter for different records.
It will also require that I insert the userID of the created user into the
record. So, I guess I will need to create users on the fly through custom
code as well. Where can I get tutorials and stuff on these ideas?
Jun 27 '08 #2
Sorry... mistype...
"Peter Bromberg [C# MVP]" <pb*******@nospammin.yahoo.comwrote in message
news:BC**********************************@microsof t.com...
Check the QUICKSTARTS section at the ASP.NET web site; it covers most all
of this stuff very nicely.
BTW that would be "roles", not "rolls" - rolls are what you have with
dinner.
Best of luck,
Peter
"Andy B" <a_*****@sbcglobal.netwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>In Visual Studio 2008, I plan on creating the default membership provider
and rolls in a custom database (through the web admin tool). I need to
know how I would access user/login info and general things like that
through code. More exactly, I have an sql query that will require the
userID of the currently logged in user as a filter for different records.
It will also require that I insert the userID of the created user into
the record. So, I guess I will need to create users on the fly through
custom code as well. Where can I get tutorials and stuff on these ideas?

Jun 27 '08 #3

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

Similar topics

3
by: Diego | last post by:
I've created a Custom MembershipProvider, in the user creation i have to return somehow the ProviderUserKey but inside the MembershipProvider I have no access to the session to store the info....
5
by: Graham | last post by:
I have created a custom MembershipProvider called "LassieMembershipProvider" that derives from "MembershipProvider". This providor is located in a Businesslogic layer dll called...
1
by: Mark Olbert | last post by:
I've written a custom MembershipProvider and a custom RoleProvider, and am trying to get them to work with the ASP.NET Configuration tool. Which is a royal pain in the butt, because there doesn't...
5
by: ibiza | last post by:
Hi all, I'd like to write my own MembershipProvider for my ASP.NET 2.0 web application but I fear all the code to write. Basically, I only want to add a few functionalities like being able to...
4
by: thomas | last post by:
Hello All, How to change the default Membership Provider during the runtime? I know I can reference any provider I want, e.g.: provider = Membership.Providers but the question is how to...
5
by: ad | last post by:
I have set some limit of MembershipProvider in web.config. <add name="MyMembershipProvider" type="MyMembershipProvider" MaxInvalidPasswordAttempts="3" MinRequiredPasswordLength="6" /> But...
4
by: freeflytim | last post by:
I'm trying to implement a custom MembershipProvider (and RoleProvider) together with a custom MembershipUser class in C#, Asp.Net 2.0, MS Visual Studio 2005. Everything has worked fine so far,...
2
by: Ian Semmel | last post by:
Is the MembershipProvider instance unique to a Session ? ie does each session have its own copy ?
1
by: Andy B | last post by:
I need to have some simple examples of how to do the following: 1. Create an asp.net MembershipProvider from scratch 2. Extend the existing XMLSiteMapProvider that comes with asp.net to include...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.