I am trying to use your example of "makinghttp://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=13&cad=rja&uact=8&ved=0CDEQFjACOAo&url=http%3A%2F%2Fwww.nullskull.com%2Fa%2F1415%2Fmaking-silverlight-emulate-synchronous-requests.aspx&ei=R2BFU9CuBof7yAGG94HgDw&usg=AFQjCNEo5pKymRQIHKT0G_5Thu81P4a2JQ&bvm=bv.64507335,d.aWc" but for a Silverlight class library. I have something like this;
Thread thd = new Thread(new ParameterizedThreadStart(GetPage));
thd.IsBackground = true;
thd.Start("myurl");
string result = downloadStringResult; (I set this public variable in the GetPage method)
I was thinking that after the thd.Start("myurl") statement, the next statement wouldn't be executed until after the GetPage was done. However, that guess was incorrect. Is it possible to do what I want, and if so, can you point me in the right direction?
thanks