473,811 Members | 2,930 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how use asp login control with oracle databse?

2 New Member
I how to use asp login control with oracle databse..please explain me and source code.
Dec 23 '08 #1
2 2700
Frinavale
9,735 Recognized Expert Moderator Expert
You need to create a Membership Provider that connects to and uses your Oracle database.

Then you need to specify that your custom membership provider should be used instead of the default MySql provider. You can do this by editing your web.config <membership> section.


Check out this article for more information.
Jan 13 '09 #2
sangam56
68 New Member
You can validate the user by retrieving the user's credentials from the table of the oracle database.

In the aspc page:

Expand|Select|Wrap|Line Numbers
  1.  
  2. <asp:Login ID="Login1" runat="server" OnAuthenticate="Login1_Authenticate">
  3. </asp:Login>
  4.  
Now use the OnAuthenticate event of the Login control to validate the user.

Expand|Select|Wrap|Line Numbers
  1.  
  2. protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
  3. {
  4. if(MyFunctionToValidateUser(Login1.UserName,Login1.Password))
  5. {
  6. FormsAuthentication.SetAuthCookie(Login1.UserName, true);
  7.  
  8. //optionally keep the username in the session and treat this as
  9. //the authentication of the user for the whole application
  10. //now redirect to the page you like to 
  11. }
  12. else
  13. {
  14. //give proper messageing...
  15. //either using your own control or accessing the 
  16. //login contrl's error labels
  17. }
  18. }
  19. public bool MyFunctionToValidateUser(string userName, string password)
  20. {
  21. //Use your internal logic to validate user
  22. //You can retrieve the user information from you tables in the database
  23. //and validate against the input user credentials
  24. //return true if validated
  25. //else return false
  26. }
  27.  
Jan 22 '09 #3

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

Similar topics

2
4314
by: Micha³ Trawinski | last post by:
Hi All I'm a student and I've started my experience with Oracle. I must train Oracle Designer, beacuse of this I've instaled Oracle9iDS but if I want to start Oracle designer, it ask's me about username, password and connect string and I don't know what to type in. My question is: Should I have oracle database to use the designer? If not what should I do to use Oracle Designer.
0
1726
by: Cherrish Vaidiyan | last post by:
Hello, I have posted an earler query regarding installation of Oracle 9i on Windows 2003 server. Can anyoone help me out with the steps,precaution i have to take. I have 2 system and a additional hard disk of 200GB which is partitioned into 2 100 GB. I have kep this hard disk as my secondary for the first system. I am using this additional hard disk to store the databse files. ie in short my third hared disk is for databse alone.
4
3927
by: Azhar Bilgrami | last post by:
Dear Hi: Hope to see u in good health. " I want to migrate a database which is currently running Unix as Operating System and Oracle ver 6 as Database, it is also using oracle froms version 3 (text base) as Front End" Now here is what I want to do " I want to migrate that database from Oracle for Unix to Oracle for Linux With retaining all the Forms, in other words all I want
1
1606
by: sailesh | last post by:
I dropped a login from securities list. and when i try to re add that login and give the user access to a particular database the error message "Error 15023: User or role "user" already exists in the current database" . upon enquiry i found out that the PUBLIC role in the databse still contains that user in its list. I cant seem to remove this user from the PUBLIC role. and so im not able to readd this user and give him access to a...
2
1535
by: Mr. Morad Jamal | last post by:
I want to know how to change the default databse "ASPNETDB.MDF" that the login control connects to (by default) ? i want to let it to connect to a different DB !! I also need a link to a refrence or tutorial about this control !! Thanx so much in advance !!
3
2453
by: bala | last post by:
Hi Gurus The scenario A MS Access frontend application with Oracle Backend (Linked Tables). The Database UserID and password is not stored and each user has a unique UserID and password. There is no common database UserID and password. Each time the user logs in, the DSN UserID and Password screen is displayed. It has three input box and they are
1
1373
by: rohitsingh0000 | last post by:
hi, i want to import the tables of a oracle database into the sql database.but i am getting errors importing some tables with certain coulms.so far as i got the problem is that a column named D_O_B in the oracle database table having datatype date ,while its creating problem transfoming in to datetime in sql,as there is not any other type for dates.so plss help me,as i cant understand this problem.The error is ilke this--- Error at...
3
2087
by: zaifi | last post by:
i am working on asp.net project.but i want use asp login control with oracle database.e.g when i login match user id and password with oracle database. .please give me explain..
0
9607
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10653
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10395
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10408
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10137
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7674
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6895
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3876
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3027
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.