S
S
Sergei Gorbulev2016-02-26 21:26:46
ASP.NET
Sergei Gorbulev, 2016-02-26 21:26:46

How to access session from user control constructor?

As I understand it, the session is not available in the constructor of the self-made control.
Can someone tell me how to get around this issue?
(I have a control that receives data from the session on load)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kovalsky, 2016-02-26
@dmitryKovalskiy

Dig into HttpContext.Current . There and request and cookies and session. But in my opinion the idea is not very good.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question