将查询字符串和网格视图值从一页传递到同一页上的链接按钮 [英] Passing a query string and grid view values from one page to the link button on the same page

查看:68
本文介绍了将查询字符串和网格视图值从一页传递到同一页上的链接按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 谁能帮助我
在asp.net页面中,我有一个data,查询字符串数据(从上一页中拉出),下面有一个数据网格视图,在下面有关于该特定票证ID的图像.直到现在一切正常为止
现在,我想放置两个链接按钮,分别称为上一个"和下一个".
如果我单击下一步链接"按钮,则必须获取下一个工单ID信息和特定工单ID的图像.















是的,订单似乎是关键.如果有订单,您只需在数据库中查询下一个和上一个票证ID(如果存在),然后将其放在链接按钮中(在Page_load上)


当您单击下一个或上一个按钮时(从查询字符串或某些viewstate中),获得下一个票证ID,则可以在下一个或上一个链接按钮单击事件中获得特定的票证详细信息,并为其加载页面详细信息. br/>

Hi Can any one help me
In asp.net page i have a data , query string data(pulled from Previous page) and below that i have a data grid view and below that images regarding of that particular ticket-id.till now everything works so good
now i would like to put two link button named as Previous and Next.
if i click on Next Link button i have to get next ticket-id information and image of the particular ticket-id. and vice-verse to Previous lnkbutton.next information should be display on the same page only.
i hope so ,u guys understood by problem.

解决方案

Yes the order seems to be the key. If you have an order, you can just query the database for the next and previous ticket-ids (if existant) and put those in the link button (on Page_load)


If you have the next ticket id when you click on next or previous button (from query string or from some viewstate), you can get that particular ticket details on next or previous link button click event and load the page details for the same.


这篇关于将查询字符串和网格视图值从一页传递到同一页上的链接按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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