当前位置:编程学习 > C#/ASP.NET >>

提问:如何 用JS 获取当前行的值?DEV AspxGridview



如图,我想实现的目的,是在点击【编辑】的时候,弹出一个iframe 的窗口,并将这一行中GBNO的值传入iframe中~~

自定义了一个编辑按钮:
<dxwgv:GridViewCommandColumn Caption="编辑" VisibleIndex="10">
                         <CustomButtons>
                            <dxwgv:GridViewCommandColumnCustomButton ID="Edit" Text="编辑">
                            </dxwgv:GridViewCommandColumnCustomButton>
                        </CustomButtons>
                    </dxwgv:GridViewCommandColumn>

然后在【ClientSideEvents】----【CustomButtonClick】中写一段JS代码如下,但是有错误,本人是JS菜鸟,请高手帮忙修改一下~
function(s, e) {
 if (e.buttonID == 'Edit') {
 var strgbno=s.GetSelectedFieldValues(s.FocusedRowIndex, "GBNO");

window.showModalDialog("piaohuoson.aspx?GBNO=' + strgbno",window,"dialogWidth:800px;status:no;dialogHeight:600px"); 
}} aspxgridview,ASP.ENT --------------------编程问答-------------------- 只用传ID过去,那边页面根据ID重新读一次数据库会简单得多
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,