CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP.NET - InMotion Framework

 HTML table row id

Print topic Send  topic

Author Message
dpkbahuguna

Posts: 6
Posted: 04/17/2008, 11:54 AM

hi All,
I m new to c#.I m using a HTML table in web browser control and wants to get the rowid of the clicked row in HTML table.bt dont have any idea how to get.
IS there any method for getting the row id of the clicked cell.
Please help me in solving the problem thanx in advance.
_________________
Deepak
View profile  Send private message
NickT

Posts: 18
Posted: 04/18/2008, 12:02 AM

This question is not related with C#.
If you want use id of <tr> tag, you must add id attribute to this tag. E.g. <tr id="my_row_1">.
_________________
Nick T.
InMotion Systems
View profile  Send private message
dpkbahuguna

Posts: 6
Posted: 04/18/2008, 2:00 AM

Quote NickT:
This question is not related with C#.
If you want use id of <tr> tag, you must add id attribute to this tag. E.g. <tr id="my_row_1">.

I have ID for that tell me pls how to get row id now ...
_________________
Deepak
View profile  Send private message
NickT

Posts: 18
Posted: 04/18/2008, 2:40 AM

Are you mean <tr id="my_row_1" onclick="my_function(this.id)"> ?
_________________
Nick T.
InMotion Systems
View profile  Send private message
dpkbahuguna

Posts: 6
Posted: 04/18/2008, 2:46 AM

Quote NickT:
Are you mean <tr id="my_row_1" onclick="my_function(this.id)"> ?
not frnd i am not doing htis..i m making rows dynamically i am not using <TR> tag..
see it
------------------------------------------
function RetFun(Obj)
{
if(Inc == 'NO')
{
var cnt = document.getElementById('Table_JobOrderDet').rows.length;
for(i1=0;i1<cnt;i1++)
document.getElementById('Table_JobOrderDet').deleteRow(0);
}
Inc = 'NO';

DataVar = Obj.value;
var TotRows = new Array();
TotRows = DataVar.split("~~~");

var DetTab = document.getElementById('Table_JobOrderDet').insertRow(0);
var ColJobNo = DetTab.insertCell(0);
var ColMsg= DetTab.insertCell(1);
var ColMsgDt = DetTab.insertCell(2);
var ColToName = DetTab.insertCell(3);
var ColFrmName = DetTab.insertCell(4);
var ColSno = DetTab.insertCell(5);
ColJobNo.innerHTML = "JOB NO.";
ColMsg.innerHTML = "MESSAGE";
ColMsgDt.innerHTML = "DATE";
ColToName.innerHTML = "FROM";
ColFrmName.innerHTML = "TO";
ColSno.innerHTML = "SNO";

for(i=0; i<TotRows.length; i++)
{
var DetTab = document.getElementById('Table_JobOrderDet').insertRow(i+1);
var ColJobNo = DetTab.insertCell(0);
var ColMsg= DetTab.insertCell(1);
var ColMsgDt = DetTab.insertCell(2);
var ColToName = DetTab.insertCell(3);
var ColFrmName = DetTab.insertCell(4);
var ColSno = DetTab.insertCell(5);

var cols = new Array();
cols = TotRows.split("^^^");
for(j=0; j<cols.length; j++)
{
if(j == 0)
ColJobNo.innerHTML = cols[j];
else if(j == 1)
ColMsg.innerHTML = cols[j];
else if(j == 2)
ColMsgDt.innerHTML = cols[j];
else if(j == 3)
ColToName.innerHTML = cols[j];
else if(j == 4)
ColFrmName.innerHTML = cols[j];
else if(j == 5)
ColSno.innerHTML = cols[j];
}
}
}
this is my way to create the rows....
------------------------------------------
_________________
Deepak
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.