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
No Data
Reply
  • 4493
    posted

    Hello,
    would you be able to provide a sample project that we can evaluate and try to provide the best solution for you. It can be providing just a single statically saved XML bytes, jsut to illustrate your approach. There is no need to provide full feature demo.

    There is an option to upload a file here -> "Options" tab when you are replying. you will see the file upload option.

    Meanwhile you can try to first extract the full XML before binding.

Children