Try Now
More in this section

Forums / Developing with Sitefinity / .Net 4.5 Model Binding in Widget

.Net 4.5 Model Binding in Widget

2 posts, 0 answered
  1. Ben
    Ben avatar
    44 posts
    27 Sep 2012
    06 Sep 2013
    Link to this post
    Has anyone gotten .net 4.5 model binding to work in a Sitefinity web forms widget? I'm just trying to bind to a repeater. In my widget .cs file I have a method returning an IQueryable of my object, in the ascx file I'm listing my method as the SelectMethod and using my object type as the ItemType. Intellisense in the .ascx file picks up on my object properties so I can <%#: Item.Whatever %> but when I run the widget, I get an error saying it can't find my SelectMethod.


  2. Ivan A. Petrov
    Ivan A. Petrov avatar
    8 posts
    09 Sep 2013
    10 Sep 2013
    Link to this post
    Hello, Ben

    Could you provide us with the code of the widget and some scenario on how I could reproduce the error.

    Ivan A. Petrov
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered