Details View to Display swf file from Media Library
Umbraco Version: 4.0.2
ASP.NET Version: 2.0
Windows 7 & IIS 7
I have a customer usercontrol with an asp:detailsview that is populated when a parent item is selected from an asp:gridview. Inside the detailsview is an ItemTemplate where I am trying to display a flash swf file from the media library based on the id that is returned when the detailsview is bound. The problem I have it the flash <embed> and <object> tags are not databound, so I can't simply grab the bound value and update the tags.
Try calling eval from within the template code and passing that value directly to the somestring function and returning that value for all "theFile" items.
hmmm. Doesn't seem to be working. When I attempt e.Item.xxx i am told System.EventArgs does not contain a definition for Item. I played around with different Arguments, but it doesn't seem to matter, e never contains Item.
Details View to Display swf file from Media Library
Umbraco Version: 4.0.2
ASP.NET Version: 2.0
Windows 7 & IIS 7
I have a customer usercontrol with an asp:detailsview that is populated when a parent item is selected from an asp:gridview. Inside the detailsview is an ItemTemplate where I am trying to display a flash swf file from the media library based on the id that is returned when the detailsview is bound. The problem I have it the flash <embed> and <object> tags are not databound, so I can't simply grab the bound value and update the tags.
Here is a the code from the custom usercontrol:
in the codebehind:
the error i receive when i select an item from the gridview:
Try calling eval from within the template code and passing that value directly to the somestring function and returning that value for all "theFile" items.
Or in the code behind for Detail_Bound use the DataBinder.Eval vs Eval.
Also try casting the dataitem directly to a datarowview.
-Chris
hmmm. Doesn't seem to be working. When I attempt e.Item.xxx i am told System.EventArgs does not contain a definition for Item. I played around with different Arguments, but it doesn't seem to matter, e never contains Item.
is working on a reply...