Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
How do I bind to XML in code?
posted

I saw the example for binding to a static XML file but that doesn't really help me since I need a menu that reacts to what the user subscribes to (in other words, not everybody sees the same menu). I can create an XML document on the fly from a stored procedure but when I try to bind it I get 'System.Data.Common.DataRecordInternal' displayed on my page instead of a menu. I set RootDatamember in the object properties but I'm sure there is more I need to do but I don't know how. I tried to edit databindings from the context menu but VS2008 froze on me. Also, I'm returning an XML type in a datareader. Can I bind to the datareader or do I need to extract the XML from the datareader first?

Parents Reply Children