by Johnny the Hat on Wednesday, April 23rd - 8:05 AM
Hi All, This is my first post so appologies is I have not followed proper protocol.
I am also very new to ASP.NET
My problem is this. I have created a small SQL2005 express database and have run the utility to set up the members table in my database (aspnet_regsql.exe). I have added some of the login controls to my pages and all loks good. I click login an it takes me to the login page where I have a Login control, Create user control and a forgot password control. I create a user or if one is already created I logon with the userid and password. This action takes me back to the default.aspx page where I display using user.identity.name the currently logged on user. All is well. I even have another page where you can change the password and this page also shows the curent logged on user.
Now I upload the pages to the server and put my database on the DB server which is a also an SQL 2005 express DB server. I goto my site and default page is displayed fine saying no user is logged on so I click on the logon link and it take me to the logon page and I logon (the users are already in the database) and I am taken back to the default.aspx page and is says no user is logged on. WHY! I am so confused. Not difficult I hear some say.
I know it is accepting the user id and password as if i enter then wrongly I get a message telling me so.
I am sure this is aserver side setting but which one's and what should they be.
If anyone has a clue as to what is going wrong please let me know.