Last post Jul 19, 2012 10:30 PM by audi0slave
Jul 19, 2012 10:30 PM|audi0slave|LINK
Hi guys! First of all i have to say that im new in asp.net and this community, so hi to everyone again and thanks in advance for your time and your help!. Second of all, sorry for my english is not my first language! However i'll do my best to explain what
my problem is.
Ok, im developing a web that works with users accounts. At the moment I've created the database in MySQL and I have one table called account_table.
I have a Site.master page with a Menu which has a login form for guests users and 2 buttons, 1 called "My Account" and the other for log out.
The first button takes the authenticated user to some kind of control panel (called MyAccount.aspx) which has information about account, like the last login date, last login ip, etc. etc.
I must tell you guys how the site is "organized".
I have a default.aspx which master page is Site.master. Then i have a "Account_Data" folder which has another master page called MyAccount.master which links also to Site.master. Then, MyAccount.aspx (the one with the control panel) has as master page MyAccount.master.
The thing is:
When the user enters into default.aspx the Page_load from site.master creates a connection to MySQL server and do all the authentication stuff. Well, now the user wants to see his account data and here comes the problem.
How can I get the data from the database and show it on myaccount.aspx web? Suppose that I have to make the connection to the database again, how can I select the data from a specific user if I dont longer have the user and password information?
Hope you guys can understand my question.
Thanks again for your time.