joeharrison714 / MVCGrid.Net

http://mvcgrid.net
MIT License
74 stars 55 forks source link

How to get session value when client side api call? #19

Open ajayvpatelce opened 9 years ago

ajayvpatelce commented 9 years ago

Hi,

How to get session value in MVCGridConfig.cs file when you use client side api call?

biclon commented 9 years ago

What session value are you trying to retrieve? What are you trying to accomplish?

ajayvpatelce commented 9 years ago

Hello, Get GridContext.CurrentHttpContext.Session["uid"] value null when you short column or any client side api call in mvcgrid.

Get value when first-time page load.

I have no idea. How to pass session values when ajax call?

I want show data in grid based on user login.

topdev01 commented 6 years ago

I had the same problem and used the CurrentHttpContext.User object instead. if you want the user information, try the CurrentHttpContext.User object,