How do you pass session values from one page to another ?

Answer Posted / hari

Get the value from Login Page where the Session Iniciated Like

Sesstion["UserID"]

and you may use this value on another page

Like

EnteredBy=Convert.Toint64(Session["UserID"])

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why asp.net is used?

549


Can I have a unique key as foreign key?

530


What is the purpose of master page?

510


What is semantic gap?

610


Why do we need Sessions?

571






Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?

543


Do session use cookies in asp net?

486


How many types of cookies are available in asp?

567


Explain the features that make asp.net more used framework? : asp.net mvc

469


What are the different methods of session maintenance in asp.net?

519


Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?

512


What do you understand from custom control?

599


What is state management techniques in asp.net?

520


Explain the asp.net session state modes.

604


By default, Web API sends HTTP response with which of the following status code for all uncaught exception?

958