[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2011-09-24
2
Medium Priority
?
335 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Simple Linear Regression
Starting up a Project

649 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