tags:

views:

56

answers:

2

from my controller I want to assign a value to an application variable much like I would a session variable.

I assumed I could just use:

Application("MyValue") = "test"
A: 

If you are trying to use this to pass data from the controller to the view, use the ViewData.

ViewData("MyValue") = "test"

If not, please give more context as to what you are trying to accomplish.

JMs
+2  A: 
HttpContext.Application["MyValue"] = test
Chad Moran
lol, I was trying to do httpcontext.current.application - doh! - thanks!
Slee