I'm new to Net C # coding. I have an aspx.cs file that is reading in an XML file and I want to use this data to create a chart in a Silverlight application which is part of the same project, but the ASPX C # website and Silverlight application Has a different namespace. How do I send my XML data to the data on the Silverlight application in the same project, but different namespace?
The namespace does not present any data limits; It's just a part of the name. So if you have a class defined in your project then:
Namespace something. Namespace {Class First Class {string SomeValue {get; Set; }}} ... and then want to use this class in any other namespace in the same project, you only have to refer to first class Uses of Namespace:
Namespace Something other. Namespace {class II class} {nothing certain method} (some namespace first class temp = new name namespace first class (temp.SomeValue = "test";}}} < P> One option, which will make your code a bit more condensed to the second class in the code file, use the command Bar enables the name to render first class without location: using something. Other namespace {class secondclass {void SomeMethod ()} / / Note that namespaces are not required here: FirstClass temp = new FirstClass (); Temp.SomeValue = "test";}}} < / Code> This means that if you have a class that accesses the xml file, and which is located in some namespace of your project, then you will be able to use the same category Should have ASPX page and Silverlight app.
Comments
Post a Comment