Silverlight 4 Beta Networking. Part 1 - WebClient and XML
- Posted: Feb 15, 2010 at 3:50 AM
- 15,159 Views
- 9 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
Mike,
Thanks for the exmple on how to use WebClient and asynchronous operations from the client. I do however have a question re: this. The web client seems like a great tool by which to use to get media from a site and allow a user to download. however, with the save dialog box doesn't allow itself to be invoked from a non-user initiated event, which contradicts the async approach.
Any recomendations on how to work around this without having to prompt a user multiple times?
Hi BigDubb,
Are you saying that you can't;
Mike's Videos are always very helpful for people like myself - self taught and still learning.
There are many good programmers but few good teachers
Thank you Mr. Taulty
Mike Greenway
Thank you Mr. Greenway - very kind & glad you found these useful
Mike.
A quick note on these videos - they have become a little less relevant with the release of the Silverlight RC.
Be wary of changes that happened between the beta and the RC. Not every video will be affected but some definitely are.
Real shame webClient still has no support for credentials. Just tried RC and it's still not there.
Jon,
Not sure what you mean - WebClient does have support for credentials. Off the top of my head - if you're on the Browser stack then it'll on use default credentials but if you're on the Client stack it can either use default/prompt or take supplied credentials based on the UseDefaultCredentials property.
Is that not what you're seeing?
Mike.
Hi Jon,
Hope you are doing well.
I am developing a solution in WP7 with CRM.
As you know that to access any data in CRM you need to provide user credentials.
So I provide it in the following way.
WebClient Download = new WebClient ();
NetworkCredential creds = new NetworkCredential("username", "password", "domainname" );
Download.Credentials = creds;
Download.DownloadStringCompleted += new DownloadStringCompletedEventHandler
(Download_DownloadStringCompleted);
Download.DownloadStringAsync(new Uri http://servername:5555/organizationname/XRMServices/2011/OrganizationData.svc/LeadSet?$select=FirstName
));
private void Download_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
string Any = e.Result.ToString();
}
}
{
if (e.Error == null
)
can we create silverlight 4.0 pie chart using XML data file?
Remove this comment
Remove this thread
close