Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

How can i get value of a particular
in html table where id is given for it.
where i need to develop this in C# using HTML only.
Posted
Updated 18-Feb-13 1:04am
v2
Comments
Maciej Los 18-Feb-13 7:02am    
This is not well formed question. Please, provide more details, examples. Is it ASP.NET?
Abhishek Pant 18-Feb-13 7:06am    

Hi,

check this article.
How to Use HTMLTable and HTMLTableRow with C# Language[^]

you may get some basic idea about the HTML table control

hope it helps.
 
Share this answer
 
your question is not so much clear. if you want to get table value like input fields then it is not possible (i.e during post back in asp.net ) . you can get value of the tables only if you parse the whole html source page which is termed as screen scraping.

take a look here may be help full for you.
Screen Scraping with C# for ASP.NET
 
Share this answer
 
.aspx

C#
<table>
<tr>
<td id="MyTD" runat="server">
Mahesh Patel</td>
</tr>
</table>


.aspx.cs
C#
on page load event....

Response.Write(MyTD.InnerHtml.ToString());


Output....
"Mahesh Patel"
 
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