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??
17 Minutes
Discussion Span
Related Article: Read XML File using Asp.net,c#
is a solved ASP.NET discussion thread by bhagawatshinde that has 6 replies and was last updated 4 months ago.
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