xml in windows phone with linq

greeraply

New Member
i am having this server side code : \[code\]<?phpheader('Content-Type: text/xml');?><?xml version="1.0" encoding="utf-8" ?><Data><Entry> <?php echo time(); ?> </Entry></Data>\[/code\]and this on a windows phone application :\[code\]Imports System.Xml.LinqPartial Public Class MainPage Inherits PhoneApplicationPage Public Sub New() InitializeComponent() End Sub Private Sub cl_DownloadStringCompleted(sender As Object, e As System.Net.DownloadStringCompletedEventArgs) Dim doc = XDocument.Parse(e.Result) TextBox1.Text = doc.<Data>.<Entry>.Value End Sub Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click Dim cl As New WebClient AddHandler cl.DownloadStringCompleted, AddressOf cl_DownloadStringCompleted cl.DownloadStringAsync(New Uri("http://localhost/wp/helloworld.php")) End SubEnd Class\[/code\]but here is my problem : it does not change the values !it show the same thing all the time !it must be somthing like cached memory ... (?)any ideas ?
 
Back
Top