---
title: "Passing values from one view to another view."  
description: "Passing values from one view to another view."  
author: "James Smith"  
published: 2011-09-07  
updated: 2011-09-09  
canonical: https://www.mindstick.com/forum/299/passing-values-from-one-view-to-another-view  
category: "asp.net mvc"  
tags: ["asp.net mvc"]  
reading_time: 1 minute  

---

# Passing values from one view to another view.

Hi....\
I want to pass [values](https://www.mindstick.com/forum/327/sum-textbox-values) of one [view](https://yourviews.mindstick.com/view/84701/layoffs-in-google-india-2023-view) to another view in mvc. For example suppose I have a view which have [fields](https://www.mindstick.com/forum/159126/sql-query-for-all-tables-and-fields-in-an-oracle-db) EmployeeID and EmployeeName. When I [click](https://www.mindstick.com/articles/12423/social-login-magento-2-one-click-to-register-social) on [Submit button](https://www.mindstick.com/forum/12834/make-text-appear-when-submit-button-clicked-and-checkbox-is-unchecked) then those values will display on another page.\
I can do it by using [ViewData](https://www.mindstick.com/forum/12798/there-is-no-viewdata-item-of-type-ienumerable-selectlistitem-that-has-the-key-username) or [ViewBag](https://www.mindstick.com/forum/155739/define-viewbag-in-mvc) [property](https://www.mindstick.com/blog/205/property-notification-in-c-sharp) but I would like to do it without help of these properties.\
\
Please help me.

## Replies

### Reply by Chris Anderson

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.


---

Original Source: https://www.mindstick.com/forum/299/passing-values-from-one-view-to-another-view

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
