We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,464 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

read Username from database

hello!!

i want to read username from database then pass the username in session how its possible using c# in asp.net??

2
Contributors
1
Reply
17 Minutes
Discussion Span
1 Year Ago
Last Updated
2
Views
mani508
Junior Poster in Training
54 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Your c# code for reading from a DB wil be slightly different based on the DB (sql, oracle, MS Access, etc...) and your approach (having the SQL select in your web app vs runing a stored procedure and having the SQL code in your DB).

For the session...

Session["someValue"] = assign the value that you read from the DB.

JorgeM
Industrious Poster
4,173 posts since Dec 2011
Reputation Points: 297
Solved Threads: 569
Skill Endorsements: 119

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0737 seconds using 2.68MB