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 8179211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:57:07+00:00 2026-06-06T23:57:07+00:00

I am building a WP7 app in which I am having a list of

  • 0

I am building a WP7 app in which I am having a list of objects. Object have properties like URL, filename. So the problem is how can I pass the current object to async callback method so that after download i can save it with filename. I don’t want to take global variable for filename.

Secondly I want to show progress-bar with text 1 0f 5 downloaded. How exactly can I achieve this.

Thanks in Advance!

  • 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-06-06T23:57:09+00:00Added an answer on June 6, 2026 at 11:57 pm

    Just create helper DTO class that will store all information you need.
    For example,

     internal class TrackDownloadState
     {
        public string Filename;
        public string Id;
        public Uri Source;
        // and so on, all the information you need
     }
    

    If you use Webclient, use parameter token in methods DownloadStringAsync or OpenReadAsync
    Details on these methods:
    http://msdn.microsoft.com/en-us/library/ms144203(v=vs.95).aspx
    http://msdn.microsoft.com/en-us/library/ms144212(v=vs.95)

    If you use HttpWebRequest, then use parameter state in method BeginGetResponse.
    Details on that method:
    http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.begingetresponse(v=vs.95).aspx

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

Sidebar

Related Questions

I'm building a wp7 Silverlight app. I need a list that is able to
I'm building WP7 application using DropNet. I have successfully managed to log in and
I am building a WP7 application which heavily uses RX and I came across
How can I port a C# dll to WP7? I have the .dll source
I am building a WP7 app that consist on one listbox in the first
I'm building an app for WP7 and it occurred to me that the HTC
Building off Does Perl have an enumeration type? , how can I perform dynamic
I'm building a WP7 app, and I'm now at the point of handling the
I am working on a localized wp7 app and in the process of building
Building an MVC 3 app with Razor and I have some information persisted in

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.