how can we use the session object in asp.net

I moved your post from JSP to ASP.NET section as these two technologies are very different. So solution from JSP will not work for in ASP.NET

u just declare session["name"] ="value"in first page,and in next page u get the value for session["name"]="value",u need not pass any thing from one page to another,try it u r self
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.