Jump to content

Partial Views Data Problem

- - - - -

  • Please log in to reply
No replies to this topic

#1
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
  • Programming Language:Java, C#, PHP
  • Learning:C, C++, C#, PHP, Transact-SQL, Assembly, Scheme
Hi:

I'm using an MVC asp application...

and having a bit of a problem with one of my pages. I have a partial view with a form in it which posts to a controller function and if the data is invalid returns the view with the form and that form is supposed to display the data and error messages.

My problem is that the parent view has access to the model data but the partial view does not? Help??

I read somewhere that the partial view is suppposed to share the same viewdata/model as the parent view but for me this isn't actually true. Any thoughts as to why???




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users