ASP.NET MVC with Sharepoint Using ASP.NET MVC with Sharepoint Publishing Sites to build an item selector prototype
Overview ASP.NET MVC is a great technology for developing web applications. Its adoption is now prevalent within the ASP.NET community. It allows for the rapid development of web applications. For those not familiar with ASP.NET MVC, you can find out more here http://www.asp.net/mvc/ Sharepoint is a great enterprise web application framework. The majority of Sharepoint features are concerned with providing intranet, enterprise solutions and business to business functionality. One of the key features of Sharepoint is the Web Publishing infrastructure, this is a web application framework for developing public facing web sites. The Sharepoint Publishing infrastructure uses standard ASP.NET WebForms and WebControls. If you know how to create conventional ASP.NET web applications you can lever this knowledge to development Sharepoint Publishing Sites. Wouldn t it be great to use the powerful web publishing infrastructure of Sharepoint but employ the rapid development methodology that MVC provides?
An item selector sample http://www.themedicinecabinet.co.uk Model: item data are hosted in SQL database, item images are hosted as documents in Sharepoint and integrated to data at Model level. View: ASP.NET WebControls are hosted into sharepoint webparts. Pages are hosted/managed in Sharepoint Controller: Site navigation is configured in Sharepoint Publishing Site and integrated with MVC route mapping rules
Our Item Selector Tree of Categories List of items in selected category Detail of selected category You can filter items by features: Different categories have different sets of features Items in category have proper values for each feature in group You can publish images and other documents in sharepoint and link them to items or groups Please visit: https:///products/pagine/itemselector.aspx
Sharepoint provides User and role management Site search Site navigation Page publishing Webpart management Document management
Sharepoint and ASP.NET MVC integration at View level Sharepoint Webparts host standard ASP.NET usercontrols MVC field template handle display of images hosted in sharepoint Sharepoint WebpartsConnections handle syncronization between usercontrols
Sharepoint and ASP.NET MVC integration at View level This page contains two webparts: Letf webpart hosts two controls: GroupList and ItemList (hidden). Right webpart hosts two webcontrols: GroupDetail and ItemDetail (hidden). Controls in left webparts are organized using ajax toolbar, while controls in right webparts are presented sequentially. You can configure webparts to host as many controls you want. left and right webparts are connected: when you select an image in a control hosted at left, every control at right is warned. Each controls at right decides what to do (in this case to show/hide himself) When you select an image in a control hosted at left, an ajax control with a Preview is shown. You can configure controls in the webpart to display or not this Preview Data in Preview can be different from data in Detail The layout for common elements (grids, buttons, headers, fonts, etc) is specified in a.css, so you can configure it as you want. All of mentioned configurations was done at Sharepoint design level: you do not need to go back to programming level to define these or others behaviours.
Oggi Domani Quality