Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to retrieve value from dataset object and assigned in session variables
and show on other page in asp.net
Posted

1 solution

C#
Session["name"]=dsMyDataset.Tables[0].Rows[0]["name"].ToString();


The answer was smaller than your question. Instead you should have tried to Google and learn learn some basics of asp.net, ado.net and C#
get values from dataset[^]
bind values to session[^]
 
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