Click here to Skip to main content
15,881,092 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
i'v created a web service, and i am currently using it to display the data on a html panel (html table on .aspx page). now i want to make a windows phone application, which will display the data on the phone screen.

but i m new to windows phone & have no idea about canvas & display methods in this, so if anyone have any idea that how it can be achieved than please tell me... thank u in advance

i was binding that data into my html panel by this code given below--->

function BindData(result) {
               result = JSON.parse(result)
               if (result != null && result.Status && result.data != null && result.data.length > 0) {
                   var currentRow = 0;
                   for (var rows = 0; rows < result.data.length; rows++) {
                       var row = result.data[rows]

                       for (var cols = 0; cols < row.length; cols++) {
                           var divId = "#R" + currentRow + "C" + cols;
                           if (arrayRowCol[divId] == undefined || arrayRowCol[divId] == null) {
                               continue;
                           }

                           var oldValue = $(divId).text();
                           var newValue = row[cols]

                           $(divId).text(newValue)
                          //// some code


the `data` i am receiving, is in string format & i think it has to be converted in some objectType (in that case, i was converting it into an jsonObject when i was displaying the data in my html panel as given above).

I have already written the code to retrieve the data from the web service--->

InitializeComponent();
    
                WebClient wc = new WebClient();
                wc.DownloadStringAsync(new Uri(some url));
                wc.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wc_DownloadStringCompleted);
            }
    
            void wc_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
            {
                // code ??????????
            }


so what will be **the XAML code & the way or procedure to bind this data(`e.Result`) ?**
Posted

1 solution

Please use web view to see the added data in your html panel.


Thanks,
Bilaal
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900