Here is one trivial question that I'm not sure how to handle. I need to display a list of categories on each page and be able to select items from a specific category to display. I am using asp.net MVC and decided to create a user control that will display categories. My question is: what is the best approach for passing data to a user control. I already found some information in these blog posts:
http://weblogs.asp.net/stephenwalther/archive/2008/08/12/asp-net-mvc-tip-31-passing-data-to-master-pages-and-user-controls.aspx
http://blog.matthidinger.com/2008/02/21/ASPNETMVCUserControlsStartToFinish.aspx
I would also like to hear your opinion.
PS. I would love to hear Jeff's opinion, especially because of his experience with UC on Stackoverflow
I use mvc components that replaced the ascx user elements in preview 4.Example: http://blog.wekeroad.com/blog/asp-net-mvc-preview-4-componentcontroller-is-now-renderaction/So you call the action of the components from the view, which then selects the "View" for rendering. You can also transfer data in this call.
This is a mvc futures project. I will probably try this http://forums.asp.net/t/1303328.aspx . I need to display a menu with categories.
Source: https://habr.com/ru/post/1696427/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1696422/automate-adding-entries-to-a-wiki&usg=ALkJrhjsfY0MELVbI9q4YDGlo7a01J1_VgПроблемы с сервером #import.NET вне очереди - c++Oracle SQL Developer does not respond when trying to view tables (or offers an Oracle Mac client) - javaIs it safe to install SVN on a win2008 web server? - svnDelete GridView not working - c #Differences between C # and VB.net - c #What a deal withAccess to OpenGL State Variables in Cg - variablesValid OpenGL Context - openglManaged hosting for hosting and continuous integration with CVSDude and CruiseControl.net - version-controlAll Articles