| | |
how to get the row id of the clicked row in a HTML table using c#
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
if you used GridView, DataList, .... controls you can bind the data to them and get the value of something if you clicked (or take a specific action) on specific row.
but html table used for alignment and design requirements...
but html table used for alignment and design requirements...
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
oooh, that's ASP.NET not HTML, if you need to learn asp.net go to www.asp.net you'll find all resources to be professional web developer
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
how can u got the data inside the tables (access db) by html, if you could by Java Script you can't identity the rows let me give you example
1
2
5
6
7
can u give a way if you pressed on number 6 tell you that u clicked on the 4th row??!!
u've raw data without any specific structure so you can't make use else read it.
1
2
5
6
7
can u give a way if you pressed on number 6 tell you that u clicked on the 4th row??!!
u've raw data without any specific structure so you can't make use else read it.
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
yes, I am; but my answer for what I understood and what you mean.
else you in each row have a value you assign. HTML == static
else you in each row have a value you assign. HTML == static
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
•
•
Join Date: Jan 2009
Posts: 1
Reputation:
Solved Threads: 0
0
#8 Oct 27th, 2009
Hi manjusaharan,
I think I understand exactly what you are going to do
I write this code for you and checked. I am sure it is going to help you.
wb is a web browser component
I think I understand exactly what you are going to do
I write this code for you and checked. I am sure it is going to help you.
wb is a web browser component
•
•
•
•
foreach (HtmlElement htmlobj in wb.Document.All)
{
if (htmlobj.TagName =="TABLE")
foreach (HtmlElement htmlTableTD in htmlobj.Document.All)
{
if (htmlTableTD.TagName == "TD")
MessageBox.Show(htmlTableTD.OuterText);
break;
}
break;
}
![]() |
Similar Threads
- How to change the color of selected row of an HTML table without using CSS or Javascr (VB.NET)
- get HTML table property on page load event (ASP.NET)
- cfgrid inside an HTML table... possible? (ColdFusion)
- Navigation (Paging) in HTML table in VB.NET. (VB.NET)
- HTML table vertical aligning problem (HTML and CSS)
- rounding corners of a table (HTML and CSS)
- Newbie Question. how to put url into echo $row (PHP)
- Hide/display filed on a new row - not a trivial task (JSP)
- html table to .csv (HTML and CSS)
- Need help with HTMl Table echoing? (PHP)
Other Threads in the C# Forum
- Previous Thread: Extracting report form oracle database
- Next Thread: Need C# code MIDI commands to Audio Mixer
| Thread Tools | Search this Thread |
.net access ado.net algorithm animation array barchart bitmap box broadcast buttons c# chat check checkbox client color combobox control conversion cs4 csharp custom database datagrid datagridview dataset datastructure datetime degrees development draganddrop drawing encryption enum event excel file files form format forms function gdi+ httpwebrequest image index input install java label list listbox listener mandelbrot math mouseclick mysql networking operator path photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview tutorial update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






