Sponsored By
DataConverter
Advertise with Us
Advertisement
Advertise with Us
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Mindstick
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit an Article | Submit Blog
Report Abuse Form
Reason:    
   

Home >> .Net >> ASP.NET MVC >> Passing values from one view to another view.
Author Post

James Smith


Total Post: 48
Member Since: 3/16/2011
Points: 270
Passing values from one view to another view.
Posted On: 9/7/2011 1:06:56 AM
Hi....
I want to pass values of one view to another view in mvc. For example suppose I have a view which have fields EmployeeID and EmployeeName. When I click on Submit button then those values will display on another page.
I can do it by using ViewData or ViewBag property but I would like to do it without help of these properties.

Please help me.
Author Post

Rohit Kesharwani


Total Post: 54
Member Since: 8/8/2011
Points: 385
Re: Passing values from one view to another view.
Posted On: 9/9/2011 12:35:10 AM

Hello James,

You can use Model class properties or objects to pass data from one view to another instead of using ViewBag, ViewData and TempData properties.

Thanks.

Report Abuse Form
Reason:    
 
Total Online Users: 5031
Advertisement
MindStick DataConverter
Advertise with Us
  
Copyright © 2009 - 2013MindStick. All Rights Reserved.