Solved

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

Posted on 2011-09-24
2
328 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:
navneethegde earned 500 total points
ID: 36594957
0
 

Author Closing Comment

by:newbieweb
ID: 36598820
Thanks!
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

821 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