如何从asp.net中的GridView创建动态链接 [英] How to create dynamic link from gridview in asp.net

查看:73
本文介绍了如何从asp.net中的GridView创建动态链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Gridview来查看报告,其中有不同的行,例如与Billno一起购买a/c,Sales a/c,Payment a/c,Receipt a/c.当我单击此帐户时,它会重定向到相应的表单.例如,当我单击采购A/c时,它将重定向Alterpurchase表单,而当我单击Sales A/c时,它将重定向诸如Alter等的Alter Sales表单.怎么做请帮帮我.我的gridview就像下面的

I am using Gridview for view reports there are different rows like purchase a/c,Sales a/c, Payment a/c, Receipt a/c with Billno. When I click this Accounts It is Redirect to Corresponding form. For example When I click the purchase A/c, It redirects Alterpurchase form and When I click the Sales A/c, It redirects Alter Sales form like So on. How to do it Please help me. My gridview is like following

Sno   Date         Particulars       Debit     Credit
1     22/06/2012   Purchase A/c      10000         0
                   Purno:13
2     23/06/2012   Sales  A/C        0         12000
                   Billno:15
3     28/06/2012   Payment A/c       0           5000
                   PaymentNo:21
4     27/06/2012   Receipt A/c
                   Reciept No:32    2000           0

........



当我单击Billno时,将打开相应的表单



when I click the billno, the corresponding form will be opened

推荐答案

您可以通过此处提出的. http://www.codeproject.com/Questions/339047/hyperlinkfield-onclick-event-in-gridview"target =" _ blank"title =" New Window> ^ ]是其中的一些答案.
You can go through Practical Guide for Creating HyperLinkField in GridView in ASP.NET[^] to build a HyperLinkField in the Gridview.

In addition, this question was asked before and here[^] are some of the answers.


这篇关于如何从asp.net中的GridView创建动态链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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