如何从代码页提供到表行的链接 [英] how to give link to table rows from code page

查看:54
本文介绍了如何从代码页提供到表行的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助解决以下问题...
我想为表格中的每一行提供链接.我是使用stringbuilder创建的.html文件,在该文件中显示了两个表.我想给第一个表行提供链接,该链接重定向到特定记录的第二个表.
在下面说明:
假设
在第一个表中有3列和3行.
col.1Id col.2Name col.3records
20 raju 3
30 dipu 2
40 monu 1
我想为每行第二列提供链接

在第二张表中5列10行
1.id 2.名称3.records 4.mob 5.add
20 raju 1--
20 raju 1--
20 raju 1--
30滴1--
30滴1--
40 monu 1--
.
.
.

当单击第一个表2col 1row
时 然后将链接重定向到第二个表的所有raju记录.


在此先感谢.....

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.....

推荐答案


在第2列中插入锚标记,然后单击此调用时,将使用具有ID和Name的函数,然后从数据库中获取数据并将显示在同一页面的第二个表中.
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.


StringBuilder sb=new StringBulider();
sb.Append("<a href="~/Details.aspx?id="+yourID+">Raju</a>");


这篇关于如何从代码页提供到表行的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆