Click here to Skip to main content
15,904,416 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

i have an html file
like
HTML
<html>

           <meta name="add"  Text="<  i need to get this data using c#.net   "/>
<body>

<table>
<tr>  <td> Name</td> <td>                    rajesh </td> </tr>


</table>
</body>



</html>


I need to get data in meta tag of text and and in table i need to get name while upload .html file
can u guidde or send snippets
Posted
Updated 22-Aug-13 21:35pm
v4
Comments
xibit89 23-Aug-13 2:53am    
try stream reader.
kingsa 23-Aug-13 2:56am    
using (StreamReader reader = new StreamReader(@"C:\Users\gg\index.html"))
{
String St;
String line = String.Empty;
while ((line = reader.ReadToEnd()) != null)
{
Response.Write(line);
// ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "javascript:alert('" + line + "')", true);

}
i tried like this i need to get can u guide me
}

Hi. Use http://htmlagilitypack.codeplex.com/[^]
Hope this helps you..
 
Share this answer
 
Comments
ridoy 23-Aug-13 3:15am    
absolutely right,my 5.
Oh the magic of Google: about 8 millions results found[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900