I have a web request method called WRequest and it returns a url, and from that URL, i extract an 'id'. I The extraction fucntion is called 'getID'. however, when I pass the 'getID' to email() method, i a
get a null response instead of the id.
public static string mainID;
public static void getID()
{
var document = XDocument.Parse(WRequest());
var href = document.Descendants("link").Single().Attribute("title").Value;
href = href.Replace("Issue", "");
string id = Regex.Match(href, @"\d+").Value;
mainID = id.ToString();
}
public static string email()
{
var url = "";
string uri = mainID;
return url = uri;
}
Is my approach t ...
Go to the complete details ...