MVCGrid.Net icon indicating copy to clipboard operation
MVCGrid.Net copied to clipboard

How to get session value when client side api call?

Open ajayvpatelce opened this issue 11 years ago • 3 comments

Hi,

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

ajayvpatelce avatar Jul 03 '15 05:07 ajayvpatelce

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

biclon avatar Jul 15 '15 13:07 biclon

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.

ajayvpatelce avatar Jul 15 '15 14:07 ajayvpatelce

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

topdev01 avatar Aug 06 '18 11:08 topdev01