?
Solved

Usng HttpContext.Current.Session][ to pass values from Controller to View

Posted on 2011-09-24
2
Medium Priority
?
337 Views
Last Modified: 2012-05-12
When I was newer to MVC I used the Session context dictionary to pass any type of variable between the Controller, Model and the View. But then I realized it was not strongly typed. True?

So I began using properties and functions in my ViewModel  to pass data to the View and back to the Controller.  But I am now on a project which already has been using the Session variable.

What is considered Best Practice?

Thanks.
0
Comment
Question by:newbieweb
2 Comments
 
LVL 15

Accepted Solution

by:
Navneet earned 2000 total points
ID: 36594957
0
 

Author Closing Comment

by:newbieweb
ID: 36598820
Thanks!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Introduction to Processes
Loops Section Overview

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question