Click here to Skip to main content
15,917,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
pls help for following problem...
i want to give link for each row in table. i am created .html file using stringbuilder in that file two tables are displaying. i want to give link for first table rows which link redirect to the second table of specific record.
explain in below:
suppose
in first table 3 columns & 3 rows.
col.1Id col.2Name col.3records
20 raju 3
30 dipu 2
40 monu 1
i want to give link for no.2 column each row

in second table 5 columns & 10 rows
1.id 2.Name 3.records 4.mob 5.add
20 raju 1 -- --
20 raju 1 -- --
20 raju 1 -- --
30 dipu 1 -- --
30 dipu 1 -- --
40 monu 1 -- --
.
.
.

when click on first table 2col 1row
then link redirect to the all raju records of second table.


thanks in advance.....
Posted
Updated 21-May-21 23:13pm

Hi,
Insert anchor tag in column 2 and while click this call a function with ID and Name, then get data from database and will display on table second on that same page.
 
Share this answer
 
XML
StringBuilder sb=new StringBulider();
sb.Append("<a href="~/Details.aspx?id="+yourID+">Raju</a>");
 
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