如何在Gridview按钮中编写c#代码 [英] how to write c# code in Gridview button

查看:103
本文介绍了如何在Gridview按钮中编写c#代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨;

我从asp.net开始。



我的问题是如何编写gridview按钮后面的代码。

我有一个gridview,其中前四列有五列有文本字段,最后一列有Linkbutton。

请告诉我如何在链接按钮下编写c#编码。当我双击然后打开gridview边界但我想要链接按钮boundary.please只告诉我方法,以便我可以在我的cs文件中编写代码。

提前感谢...

hi;
i m beginning in asp.net.

my problem is that how to write a code behind the gridview button.
i have a gridview in which five columns the first four columns have text field and in the last column i have Linkbutton.
please tell me that how to write c# coding under the link button. when i double click then open gridview boundary but i want link button boundary.please tell me only method so that i can write code in my "cs" file.
thanks in advance...

推荐答案

按钮上的gridview rowcommand单击 [ ^ ]

下次尝试搜索。
Example of gridview rowcommand on Button Click [^]
Next time try searching.


您好b $ b尝试此链接....



http://www.c-sharpcorner.com/UploadFile/9f0ae2/gridview-edit-delete-and-update-in-Asp-Net/ [ ^ ]
Hi Try this link....

http://www.c-sharpcorner.com/UploadFile/9f0ae2/gridview-edit-delete-and-update-in-Asp-Net/[^]


这篇关于如何在Gridview按钮中编写c#代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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