Obtaining User Information From Asp.Net
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Apprentice
- Posts: 6
- Joined: Fri Jan 05, 2007 4:28 pm
Obtaining User Information From Asp.Net
I have a client that is using the Joomla 1.0.11 stable for their CMS system. They are having me write them a new portion of their website in asp.net. They want me to capture the user informaion from Joomla with in the asp.net application. I have no clue on how joomla works and am trying to find someone who knows how to do this. I need to be able to query the information from joomla with in the asp.net website.
Thank you for any help.
Thank you for any help.
-
- Joomla! Apprentice
- Posts: 6
- Joined: Fri Jan 05, 2007 4:28 pm
Re: Obtaining User Information From Asp.Net
I did figure out how to do this if anyone else would like to know....
-
- Joomla! Fledgling
- Posts: 4
- Joined: Mon Oct 29, 2007 5:18 pm
Re: Obtaining User Information From Asp.Net
i would love to know my website is http://www.specialforcesguild.com
-
- Joomla! Apprentice
- Posts: 29
- Joined: Tue Aug 14, 2007 5:14 pm
Re: Obtaining User Information From Asp.Net
ASP.net and PHP (what Joomla! runs) don't share data very well, so your best bet would be to see what you can pass via cookies and write code to get what other info you need out of the database.
Of course, if there is no actual technical need for ASP.net, it would work best to keep the language consistent across the site.
Of course, if there is no actual technical need for ASP.net, it would work best to keep the language consistent across the site.
Motoko-chan
Marketing Agent / Assistant Project Manager
Simple Machines
Marketing Agent / Assistant Project Manager
Simple Machines
-
- Joomla! Apprentice
- Posts: 6
- Joined: Fri Jan 05, 2007 4:28 pm
Re: Obtaining User Information From Asp.Net
Hello,
It was very easy, I used mysql with in asp.net and it connected just fine to joomla. I was able to verify them logging in against the joomla database. You will also have to look up asp.net on the encryption they use on their passwords. But the encrytion type they use is built right in to asp.net. If you need more help with it let me know. I was able to connect to joomla and read, update and even write into joomla right from my backend code in asp.net.
It was very easy, I used mysql with in asp.net and it connected just fine to joomla. I was able to verify them logging in against the joomla database. You will also have to look up asp.net on the encryption they use on their passwords. But the encrytion type they use is built right in to asp.net. If you need more help with it let me know. I was able to connect to joomla and read, update and even write into joomla right from my backend code in asp.net.
-
- Joomla! Apprentice
- Posts: 6
- Joined: Fri Jan 05, 2007 4:28 pm
Re: Obtaining User Information From Asp.Net
Here is the code on how to do it.
Remember that joomla uses a MD5 encryption on the password. So you will have to go out on the internet and search on MD5 aps.net and there is sites out there with the code you can use. You will need to run their password thru the aps.net MD5 function and then compare it to the password you get from joomla.....
Dim conn As MySQLConnection = New MySQLConnection(New MySQLConnectionString("Put IP Address Here For Joomla", "database name", "userid", "password").AsString)
conn.Open()
Dim cmd As MySQLCommand = New MySQLCommand("select name from jos_users", conn)
Dim reader As MySQLDataReader = cmd.ExecuteReaderEx()
While (reader.Read())
Response.Write("Low Level - Host:" + reader.GetString(0) + " , User:" + reader.GetString(1))
End While
reader.Close()
cmd.Dispose()
Remember that joomla uses a MD5 encryption on the password. So you will have to go out on the internet and search on MD5 aps.net and there is sites out there with the code you can use. You will need to run their password thru the aps.net MD5 function and then compare it to the password you get from joomla.....
Dim conn As MySQLConnection = New MySQLConnection(New MySQLConnectionString("Put IP Address Here For Joomla", "database name", "userid", "password").AsString)
conn.Open()
Dim cmd As MySQLCommand = New MySQLCommand("select name from jos_users", conn)
Dim reader As MySQLDataReader = cmd.ExecuteReaderEx()
While (reader.Read())
Response.Write("Low Level - Host:" + reader.GetString(0) + " , User:" + reader.GetString(1))
End While
reader.Close()
cmd.Dispose()
- indrajitch
- Joomla! Apprentice
- Posts: 16
- Joined: Wed Dec 03, 2008 9:25 am
Re: Obtaining User Information From Asp.Net
hi Chief,
Can you tell me how to authenticate a Joomla user through ASP.net ?
We are able to connect to the MySQL database through ASP.net but cant figure out how do we pick and identify the sessions of individual users. We want to authenticate the loged in Joomla users so that they can directly log into other applications running on ASP.net.
any idea?
Can you tell me how to authenticate a Joomla user through ASP.net ?
We are able to connect to the MySQL database through ASP.net but cant figure out how do we pick and identify the sessions of individual users. We want to authenticate the loged in Joomla users so that they can directly log into other applications running on ASP.net.
any idea?
-
- Joomla! Fledgling
- Posts: 2
- Joined: Thu Nov 19, 2009 7:02 am
Re: Obtaining User Information From Asp.Net
You can check this link below, it very simple !
http://blog.microsync.net/web-developme ... lications/
http://blog.microsync.net/web-developme ... lications/
-
- Joomla! Fledgling
- Posts: 2
- Joined: Thu Nov 19, 2009 7:02 am
Re: Obtaining User Information From Asp.Net
Hi,
Sorry about this post but I can not find "Edit" button on post above !
My blog change a little, here is new link: http://blog.microsync.net/asp-net/authe ... lications/
Thanks !
Sorry about this post but I can not find "Edit" button on post above !
My blog change a little, here is new link: http://blog.microsync.net/asp-net/authe ... lications/
Thanks !
- kurchania
- Joomla! Hero
- Posts: 2070
- Joined: Mon Sep 21, 2009 6:56 am
- Location: indore,india
- Contact:
Re: Obtaining User Information From Asp.Net
Hi,
why don't you call some web service?than you can access your data from anywhere
why don't you call some web service?than you can access your data from anywhere
abhijeet kurchania
The future depends on what you do today
The future depends on what you do today