使用jquery在gridview页脚模板中查找图像按钮控件 [英] find image button control in gridview footer template using jquery

查看:65
本文介绍了使用jquery在gridview页脚模板中查找图像按钮控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我在网格视图中的页脚模板代码。当我单击图像按钮时,它应该验证同一网格中的文本框,该文本框作为项目模板,在该文本框中为请输入数据。

我正在尝试使用j查询验证,但我没有找到图像按钮的ID。

请帮助我.......

This is my code of footer template in grid view.when i click the image button it should validate the text box in the same grid which is as item template as "Please enter data" in that text box.
I am trying to use "j query" validation, but i am not finding the id of image button.
Please help me.......

<FooterTemplate>
                                        <asp:ImageButton ID="imgbtnAdd" runat="server" CommandName="AddNew" Height="30px"

                                      CssClass="imageButtonFinderClass" OnClientClick="showDialog('editPerson');" ImageUrl="~/Images/AddNewitem.jpg" onblur="focused(this);" onfocus="onfocused(this);"

                                            TabIndex="21" ToolTip="Add New" ValidationGroup="validaiton" Width="30px" />
                                    </FooterTemplate>

推荐答案

查看以下帖子:

使用jQuery在Asp.net GridView中查找控件 [ ^ ]。希望它有所帮助。
Check out following thread:
Find control inside Asp.net GridView using jQuery[^]. Hope it helps.


这篇关于使用jquery在gridview页脚模板中查找图像按钮控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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