Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Partial Views Data Problem


  • Please log in to reply
No replies to this topic

#1 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 11 May 2011 - 05:59 AM

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???
  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download