1

Closed

Web Forms Model Binding Support

description

Hi - The following item in a details view seems to break a page with Navigation controls.

..., ItemType = "MyPackage.MyObjectType", ...

I get a

Unable to cast object of type "System.Web.UI.WebControls,EntityDataSourceWrapper" to "MyPackage.MyObjectType".

And it points to the first NavigationHyperlink control in the markup.

Updated to 1.10.

Thanks!
Closed Mar 11, 2015 at 3:12 PM by GrahamMendick
There's been no update for months. Suspect is was a data binding issue not a Navigation one

comments

GrahamMendick wrote Dec 31, 2014 at 4:07 PM

Hi,

Thanks for getting in touch.

It sounds more like a data binding issue than a Navigation one. Your details view is expecting one type but is getting another.

To help investigate can you remove the NavigationHyperlink from the details view and see if you still get the problem?

Cheers,
Graham

GrahamMendick wrote Jan 21, 2015 at 10:44 AM

How're you getting on, have you found out what the problem was?

GrahamMendick wrote Feb 15, 2015 at 1:11 PM

I guess you've resolved the issue? If there's no further comment within the next couple of weeks then I'll close it