单击链接按钮时如何转到正确的记录 [英] How to go to correct records when click in linkbutton
问题描述
如何在asp.net中获得准确的datalist。
i按字母顺序排列webform,如下所示:
i我正在使用10个datalist来隔离像,
how to get exact datalist in asp.net.
i have webform in alphabetical order like below:
i am using 10 datalist to segregate like,
A-B C-D E-F G-H .......Y-Z // thesre are link button.
这个AB包含10条记录,CD包含10条记录,直到YZ为止。我想要显示一个toz的所有记录。所以我把编码放在页面加载事件中
webform.aspx。
this A-B contais 10 records, C-D contains 10 records like that ends up till Y-Z. i wanted show all records of a toz. so i put the coding in page load event
webform.aspx.
<table>
<tr>
<td>
firstdatalist //A-B will bind.
<td>
</tr>
<tr>
<td>
second datalist // C-D will bind.
</td>
</tr>
<tr>
<td>
third datalist //E-F will bind.
</td>
</tr>
like that i wll use tr and td till Y-Z.
</table>
当我运行程序时,我将在下面的浏览器中获取网页表单。
when i run the program, i will get web form in browser below.
A-B C-D E-F ..........Y-Z //these are link button.
A-B // Lablel just showing
A-B // datalist will show it's records ...........
C-D
C-D // datalist will show it's records.
.
.
Y-Z
Y-Z // datalist will show it's records.
直到现在。一切正常。在顶部,A-B C-D E-F是链接按钮,对吗?所以,当用户点击E-F时,它必须正确滚动到E-F记录。如果用户点击M-N linkbutton,它必须正确地进入M-N记录。
我该怎么做?需要帮助。
谢谢。
Till now. everything works fine. in top, A-B C-D E-F which is link button, right? so, when if user click E-F , It has to scroll to E-F records correctly. and if user clicks M-N linkbutton, It has to go M-N records correctly.
How can i do that? help needed.
Thank you.
推荐答案
你好Xavier,
快速谷歌搜索给了我这个链接 [ ^ ]。
只需传递起始索引和结束页面索引就可以解决您的问题。
希望它对您有所帮助。
问候,
RK
Hi Xavier,
Quick google search gave me this link[^].
Just pass starting index and ending page index will solve your problem.
Hope it would help you a bit.
Regards,
RK
这篇关于单击链接按钮时如何转到正确的记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!