Horje
how to get src value from img tag in c# Code Example
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);




Csharp

Related
Named Entity Extraction C# Code Example Named Entity Extraction C# Code Example
C# downloadstirng download old Code Example C# downloadstirng download old Code Example
how to subtract two rows asp ne gridview in asp.net Code Example how to subtract two rows asp ne gridview in asp.net Code Example
windows form Webbrowser url detection Code Example windows form Webbrowser url detection Code Example
entity framework core genetare class using existing database Code Example entity framework core genetare class using existing database Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12