c# - storing a js value from 1 ActionResult to use in another ActionResult -


i've got controller, , in 1 of actionresults, there javascript value being returned can access via:

request.querystring["frequency"] 

but need use same variable in actionresult. how can this?

i know can't set

string frequency = ""; 

at top of controller, , set in 1st actionresult.

http stateless, every request has it's own state , controller instance.

you can use tempdata use session delete value after read it.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -