protected void GetImage_Click(object sender, EventArgs e) { string mySite = TextBox1.Text; WebClient wc = new WebClient(); string getData = wc.DownloadString(mySite); string result = Regex.Match(getData, "<img.+?src=[\"'](.+?)[\"'].+?>",RegexOptions.IgnoreCase).Groups[1].Value; Image1.ImageUrl= result; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)