Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6889525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:10:04+00:00 2026-05-27T06:10:04+00:00

I am creating a mobile app that needs to be connected with mysql. I

  • 0

I am creating a mobile app that needs to be connected with mysql. I used php to query it and got the data to my php page.. I would like to bind this data with the list box in my windows phone 7. I am very new to this kind of programming and would like to how to get the data from the php page and bind it with the list box in my wp7 app.. I managed to print the data using webclient in a messagebox in wp7 app.. but i would like to bind it to the list box… please help….

My code:

 public Article()
        {
            InitializeComponent();
            WebClient wc = new WebClient();
            wc.DownloadStringCompleted += new     DownloadStringCompletedEventHandler(printlist); 
            wc.DownloadStringAsync(new     Uri("http://www.skbcreations.com/app/Pushnotification.php") );
            return;
        }   
       void printlist(object sender, DownloadStringCompletedEventArgs e)
        {
            string res = (String)e.Result;
            MessageBox.Show(res);
             }

My XAML:
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.061*"/>
                <ColumnDefinition Width="0.939*"/>
            </Grid.ColumnDefinitions>
            <ListBox Grid.Column="1" Margin="24,28,36,56"/>
        </Grid>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:10:04+00:00Added an answer on May 27, 2026 at 6:10 am

    Which format has your response?

    If XML, you could use this one:

    XElement xmlItems = XElement.Parse(e.Result);
    
    var items = from item in xmlItems.Descendants("item-element-name")
    select new Item
    {
        field1 = item.Element("field1").Value,
        field2 = item.Element("field2").Value
    };
    
    listBox.ItemsSource = items.ToList();
    

    Also, consider to use ObservableCollection if your list will be changing in run-time

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a mobile website that will include a page from which people can
I am creating a windows mobile application where i would like to do a
I've got a web app that needs to play a handful of sounds. The
I am creating a mobile app that will connect to a zendamf implementation to
I would like to build a mobile app, brewed from nothing more but html/css
we are creating one jQuery mobile app in that app, I have to bind
I am working on an app that needs to pull some data that is
I am creating an iPhone app that I feel needs to have a receipt
We are creating an enterprise android app that would be installed on several mobiles
I am creating a C# Windows Mobile application that I need to programmatically invoke

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.