• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 885
  • Last Modified:

How to access PartialView hidden field in main View ?

I am new to ASP.net MVC .I would like to know how to access  PartialView hidden field in main View.
0
hariaspind
Asked:
hariaspind
1 Solution
 
jamesbaileCommented:
I'm not sure I exactly understand your question. Can you post a snippet of what you are trying to achieve?

In MVC, views should only be aware of the model. Therefore generally the value you need to access in both the main and partial views should be available in the model.
0
 
hariaspindAuthor Commented:
You are right . I have a ID column as Hidden in partial view .So i was trying to access it in old web app way .i was wrong .


The hidden column is available as part of the model.Thanks.
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now