VB.NET Web-App:内部webgrid控件,用于任何按钮,编码执行两次 [英] VB.NET Web-App: Inside webgrid control for any button the coding is executed twice

查看:60
本文介绍了VB.NET Web-App:内部webgrid控件,用于任何按钮,编码执行两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




i有一个webgrid控件,我使用模板列来显示webgrid中数据库的数据。

但是当我使用编辑时,更新,取消和webgrid中的任何按钮,它执行两次,因为这是第二次执行即时收到错误。


可以帮助

hi

i have a webgrid control and i have used template columns to display data from the database in the webgrid.
But when i use edit,update,cancel and any buttons inside webgrid ,it is executed twice and because of this on second time execution i m getting error.

Can ayone Help

推荐答案

你得到的错误信息是什么?


这是一个按钮列还是模板列?


将autoeventwirup更改为假的,试试。


如果不是我的话。
What is the error message you got ?

Is it a buttoncolumn or templatecolumn ?

Change the autoeventwirup to false and try.

If not RE me.


删除行使用javascript
To delete row use javascript
展开 | 选择 | Wrap < span class =codeDivider> | 行号



删除行使用javascript


函数CellButtonClick(gridId,cellId)

{

var Row = igtbl_getRowById(cellId);

Row.deleteRow();

}


In< ClientSideEvents .... ............... />


添加此项以调用javascript


ClickCellButtonHandler =" ; CellButtonClick



删除行后


< itgbl:UltraWebGrid OnDeleteRow ="" < - 事件火灾。


在这里你可以处理你想要的东西
To delete row use javascript

function CellButtonClick(gridId, cellId)
{
var Row = igtbl_getRowById(cellId);
Row.deleteRow();
}

In <ClientSideEvents ................../>

Add this to call the javascript

ClickCellButtonHandler="CellButtonClick"


After row deleted

<itgbl:UltraWebGrid OnDeleteRow = "" <-- Event Fires.

Here you handle what you want




hi


i使用了vb编码



hi

i have used vb coding

展开 | 选择 | Wrap | 行号


这篇关于VB.NET Web-App:内部webgrid控件,用于任何按钮,编码执行两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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