Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to fetch the firstname from database on the on the basis of the username entered in the textbox n then display the first name on the another page that is login area....
Posted

1 solution

Save the username (or userid, depending on how you identify your users internally to your database) in the session state, then have a stored procedure to retrieve the user's first name from the database when supplied with the userid/username.

Call this stored procedure in the page load event for the pages where required.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900