![]() Please note that I will reply after 24 hours. I am going to keep this thread open for 24 hours in case you have some comment otherwise, I will close this thread after 24 hours. The problem is solved now I just have to get my data to parse and format them as I like. ProgressIndicator.Text = "100% loaded." Var quotes = from q in xdoc.Descendants("channel") XDocument xdoc = XDocument.Parse(e.Result) Void proxy_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e) ProgressIndicator.Text = "50% loaded." Microsoft Silverlight is a cross-platform, cross-browser, and cross-device plug-in for delivering the next generation of media experiences and rich interactive applications for the Web. ProgressIndicator.Text = e.ProgressPercentage "% loaded." Void proxy_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e) Proxy.DownloadProgressChanged = new DownloadProgressChangedEventHandler(proxy_DownloadProgressChanged) Proxy.DownloadStringCompleted = new DownloadStringCompletedEventHandler(proxy_DownloadStringCompleted) InitializeComponent() InitializeComponent() This website helped me to accomplish my work-> I have just solved the problem in hand, which is how to load an external xml file either to my local machine or in my I can see the first two messagebox but no message box containing any result. MessageBox.Show("In XMLFileLoaded" e.ToString()) MessageBox.Show("In XMLFileLoaded" e.Result) Void XMLFileLoaded(object sender, DownloadStringCompletedEventArgs e) XmlClient.DownloadStringAsync(new Uri("XmlFile.xml", UriKind.RelativeOrAbsolute)) ![]() XmlClient.DownloadStringCompleted = new DownloadStringCompletedEventHandler(XMLFileLoaded) MessageBox.Show("Going To XMLFileLoaded") Public partial class MainPage : UserControl I have created a new project and the xmlfile is inside the project folder. net 4.0 (VS 2010 IDE with C#) as a string so that I can use LINQ as I believe that is the way to go, but the tutorial I have found, from Kirupa, does not work ( the (xmlData) Please suggest what I should do so that I can download an xml file in silverlight. This questionĬomes after my previous question as I have realized that I might have to download the xml file for processing as the xml file is complicated and the images are not part of itemCollection however, I am not sure. Please tell me what I should do so that I can download an xml file as a string in my silverlight project so that I can manipulate it to display the result in my silverlight application. I cannot see the downloaded content of the xml file in the messagebox or in the (xmlData) Ģ) I have also tried XDocument doc = XDocument.Load("xmlFile.xml") īut the MessageBox.Show(doc.ToString()) does not appear. Win32 Version: 7.3053 (netfxsp.050727-3000)ĬodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v7/mscorlib.dllĬodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0_b77a5c561934e089/System.dllĬodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL//2.0.0.0_b77a5c561934e089/, please tell me how to Load an XML file either from project folder or from internet in a Silverlight application?ġ) I have followed Kirupa's tutorial on downloading an xml file, but it does not work. : Unable to save config to file 'E:\Release\'.Īt .ReplaceFile(String Source, String Target)Īt .Complete(String filename, Boolean success)Īt .StaticWriteCompleted(String streamName, Boolean success, Object writeContext, Boolean assertPermissions)Īt .WriteCompleted(String streamName, Boolean success, Object writeContext, Boolean assertPermissions)Īt .WriteCompleted(String streamName, Boolean success, Object writeContext)Īt .WriteCompleted(String streamName, Boolean success, Object writeContext)Īt (String streamName, Boolean success, Object writeContext)Īt (String filename, ConfigurationSaveMode saveMode, Boolean forceUpdateAll)Īt (String filename, ConfigurationSaveMode saveMode, Boolean forceSaveAll)Īt ()Īt _Click(Object sender, EventArgs e) in E:\source\Money\Code\meng\mneng\MainForm.cs:line 1548Īt .OnClick(EventArgs e)Īt .OnClick(EventArgs e)Īt .OnMouseUp(MouseEventArgs mevent)Īt .WmMouseUp(Message
0 Comments
Leave a Reply. |