This is the function I used to get the string content from the website ..the problem is when executed first I cannot get the string content( " App.Data2 = userprofile.InnerText;") since it skips to the next line ( "App.savecontent(App.Data2); ") so tht i get the empty string ...if I recall the function I can get the string .Is there any idea possible to solve this issue I need the string value first time automatically ..please suggest me some ....:/ thanks :)
public void DownLoad(object sender, HtmlDocumentLoadCompleted e)
public void DownLoad(object sender, HtmlDocumentLoadCompleted e)
{
if (e.Error == null)
{
HtmlDocument doc = e.Document;
if (doc != null)
{
var userprofile = doc.DocumentNode.SelectSingleNode("//div[@class = 'ui-large-content']");
App.Data2 = userprofile.InnerText;
App.savecontent(App.Data2);
}
}
}