Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:627752
More Search Options
RSS Available
Matching Posts
Re: Complex Xml -> XSD -> Class -> Presentation:: Help!
This isn't working for some reason. Here is the method I use to return a report from the XML... this is in my data layer: public static MyCompany.BusinessObjects.CompanyNote.Product GetCompanyNote(string path) { System.IO.StreamReader str = new System.IO.StreamReader(path); MyCompany.BusinessObjects.CompanyNote.Product product = new MyCompany.BusinessObjects.CompanyNote.Product(); try { XmlSerializer xSerializer = new XmlSerializer(typeof(MyCompany.BusinessObjects.CompanyNote.Product)); product
Posted to
XML and XmlDataSource Control
(Forum)
by
TheCheeta
on 11/2/2009
Re: Complex Xml -> XSD -> Class -> Presentation:: Help!
I thought I got somewhere with this: foreach (MyCompany.BusinessObjects.CompanyNote.ProductContextIssuerDetailsIssuerSecurityDetailsSecuritySecurityFinancials securityDetail in Report.Context.IssuerDetails.Issuer.SecurityDetails.Security.Items.OfType<ItemsChoiceType.SecurityFinancials>()) { // string temp = securityDetail.displayStatus; } But no... VS2008 says that ItemsChoiceType is a field, not a type, despite what I think I am seeing in the construction of the class. If it makes things any
Posted to
XML and XmlDataSource Control
(Forum)
by
TheCheeta
on 11/2/2009
Filed under: xml deserialization
Complex Xml -> XSD -> Class -> Presentation:: Help!
I have a complex 3rd party XML that I have run through XSD.exe to create a business class. It's been a great help so far. However, now I need to access some information out of this XML that is nested deeply inside elements and attributes, and I am getting nowhere fast. Here are the naughty bits for your inspection (I've tried to trim a LOT of the information in the interest of both brevity and confidentiality without affecting a real solution - there is a little superfluous stuff in case
Posted to
XML and XmlDataSource Control
(Forum)
by
TheCheeta
on 10/28/2009
Filed under: xml deserialization xsd
Re: Complex Xml -> XSD -> Class -> Presentation:: Help!
Sorry... I copied and pasted the XML straight out of VS2008, not sure why it jacked the formatting like that.
Posted to
XML and XmlDataSource Control
(Forum)
by
TheCheeta
on 10/28/2009
Re: XML to Object via Linq
Fixed it... needed to change the loading of Galleries to: Galleries = (from g in galleryXml.Element( "galleries" ).Elements( "gallery" ) select new Gallery { GalleryID = ( int )g.Attribute( "id" ), Title = ( string )g.Element( "title" ), Description = ( string )g.Element( "description" ), Icons = new List<Icon>( from icon in g.Elements( "icons" ).Descendants() select new Icon { Url = ( string )icon }), Images = new List ( from image
Posted to
XML and XmlDataSource Control
(Forum)
by
TheCheeta
on 2/16/2009
XML to Object via Linq
I am attempting to take data from an XML file and place it into an object. Here is a sample of one bit of the XML file: <galleries> < gallery id= "1" > < title id= "museum" >Museum Labels</ title > < description > <p>This project was a direct result of my fascination with visiting art museums to watch how people react to what they see. Oftentimes I noticed that they paid more attention to the wall labels rather than the pieces they described
Posted to
XML and XmlDataSource Control
(Forum)
by
TheCheeta
on 2/16/2009
Filed under: xml linq object
Re: TreeView
Is there absolutely no way to have a treeview contain radio buttons? For instance, I am trying to do something like this: Option 1 Option 2 Option 3 [ ] Sub Option 1 [ ] Sub Option 2 [ ] Sub Option 3 I would like to make it such that the Sub Options behave like Children in a treeview, where they only show up once the Option 3 is selected. Otherwise, Options 1, 2 and 3 act like radio buttons, being mutually exclusive.
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
TheCheeta
on 3/14/2007
Filed under: treeview radio button checkbox
Re: Image Upload to folder as part of form entry...
Thank you VERY much! It was quite perturbing... I was seriously questioning my sanity yesterday!
Posted to
Web Forms
(Forum)
by
TheCheeta
on 3/14/2007
Re: Image Upload to folder as part of form entry...
Karsten, that is nice. I am working on seeing how I can make this happen in my code. Two issues I am having... First, I am doing this in VB.NET, so I converted it to C#, which went well, save for one thing... Dim picture as Picture = New Picture() It is coming back saying that type Picture is not defined. I've imported all the namespaces you've listed in your code, but nothing. Any help on that? Second, I've not done callback-type stuff yet. I'm having a problem with GetCallbackResult and RaiseCallbackEvent
Posted to
Web Forms
(Forum)
by
TheCheeta
on 3/13/2007
Re: Image Upload to folder as part of form entry...
How would I place that image into the <asp:img... tag I have directly below the <asp:FileUpload... control after the postback?
Posted to
Web Forms
(Forum)
by
TheCheeta
on 3/13/2007
Page 1 of 4 (40 items) 1
2
3
4
Next >
ASP.NET:
Live Preview jQuery Plugin
WindowsClient:
Remember JScript closures capture all variables in scope
TechNet Edge:
UAG reaches RTM
Channel 9:
Who, What, When, Where, Why and How of MIX10
Channel 10:
Berlin Wall in Silverlight
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 2, Installation
Silverlight:
Contributing to the SL HVP
Silverlight:
Best SF Books of All Time
Channel 9:
Reactive Extensions API in depth: Repeat
Channel 9:
Jeffrey Van Gogh: Testing Rx with Pex
Channel 9:
The Visual Studio Documentary: Dan Fernandez Full Length Interview
ASP.NET:
Search Engine Optimization (SEO) Toolkit
Channel 10:
This Is Your Data on Silverlight
ASP.NET:
How the IIS SEO Toolkit Saved My Butt
TechNet Edge:
Windows 7 XP Mode User Experience
ASP.NET:
Using WCF RIA Services without Silverlight in Visual Studio 2010 for building 3 tier ASP.NET Applications
Channel 9:
Ping 41: Top stories of 2009, bing, windows 7, laptop hunters, azure
Channel 9:
endpoint.tv - Windows Server AppFabric in action monitoring and troubleshooting
Channel 10:
Windows Marketplace for Mobile Opens to 6.0, 6.1 Phones
Channel 9:
Rx API in depth: Hot and Cold observables
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online