Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MVC Core controller State Managment #6

Open
mandloikunal opened this issue Sep 14, 2021 · 0 comments
Open

MVC Core controller State Managment #6

mandloikunal opened this issue Sep 14, 2021 · 0 comments

Comments

@mandloikunal
Copy link

I am working on Webhooks Concept. Since Webhooks act like an trigger. It will be firing an event like Update or Insert takes place. Its a MVC application and I have two Controller Home and Webhook Controller. I am passing argument through Query String on Home controller. I have tried Session,TempData, Cookies for passing variable from home to Webhooks HttpContext.Session.SetString("UserName", Request.Query["UserName"].ToString());

and getting session value on webhook controller

HttpContext.Session.GetString("UserName");

Also tried the same for TempData

Issue is On webbooks Controller its coming null.

I need to store parameter (User Name ,password) and reused the same for database related operation

Kindly guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant