?
Solved

How to access PartialView hidden field in main View ?

Posted on 2010-01-11
2
Medium Priority
?
818 Views
Last Modified: 2012-05-08
I am new to ASP.net MVC .I would like to know how to access  PartialView hidden field in main View.
0
Comment
Question by:hariaspind
[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 7

Accepted Solution

by:
jamesbaile earned 500 total points
ID: 26285730
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
 

Author Comment

by:hariaspind
ID: 26286151
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

The most up-to-date version of this article is on my Blog https://iconoun.com/blog/
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

762 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