how to get src value from img tag in c#
var shieldHomeContainer = nodeCollection.SelectSingleNode("//img").Attributes["src"].Value;
how to get src value from img tag in c#
var shieldHomeContainer = nodeCollection.SelectSingleNode("//img").Attributes["src"].Value;
c# how to get src from html img
string str = "<div> <img src=\"https://i.testimg.com/images/g/test/s-l400.jpg\" style=\"width: 100%;\"> <div>Test</div> </div>";
// Get the index of where the value of src starts.
int start = str.IndexOf("<img src=\"") + 10;
// Get the substring that starts at start, and goes up to first \".
string src = str.Substring(start, str.IndexOf("\"", start) - start);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us