Javascript验证Gridview FooterTemplate [英] Javascript validation Gridview FooterTemplate

查看:71
本文介绍了Javascript验证Gridview FooterTemplate的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii专家,


我正面临着javascript validation.i'在我的网络表单中有一个网格视图并添加了一个页脚tempalte并将文本框放入tempalte,只是向gridview添加一个新行,我想验证在gridview的footertextbox中输入的emalid。所以我添加了一个javasript函数:

展开 | 选择 | Wrap | 行号

解决方案

任何人都可以帮我找到解决方案。


谢谢


Rgds,

BTR。


Isn不要改变调用JS事件的html输入事件。因此,使OnCheckEmailID正常工作的最简单方法是将文本框更改为html输入。否则使用服务器端代码。


感谢您的回复。每当你回复我的询问时。谢谢你的时间。


现在正在工作。


但我可否知道为什么它的原因表现得像这样......因为它适用于gridview之外的其他文本框。


当我尝试为OnTextChanged调用JS函数而不是服务器端的OnChange事件时文本框即< asp:Textbox> ,我得到了运行时错误..。文字中的许多字符。


请求你解释我在幕后发生的事情。

Rgds,

BTR。


Hii Experts,

im facing a problem with the javascript validation.i''ve a gridview in my web form and added a footer tempalte and placed textboxes in tht tempalte ,just to add a new row to the gridview and i wanna to validate the emalid entered in the footertextbox of the gridview. so i added a javasript function :

Expand|Select|Wrap|Line Numbers

解决方案

can anybody help me in finding the solution for this.

Thanks

Rgds,
BTR.


Isn''t onchange the html input event through which to call JS events. Easiest way to get OnCheckEmailID working is therefore to change textbox to html input. Otherwise use server side code.


Thanks for your reply. everytime you are only replying to my queries .Thanks for your time.

Its working now.

But may i know the reason why its behaving like this..coz its working for other textboxes which are outside of the gridview.

And when i try to call the JS function for the OnTextChanged instead of OnChange event of the server side Textbox i.e. <asp:Textbox> ,i got the runtime error..".too many characters in the literal".

Requesting you kindly explain me whts going on behind the scenes.

Rgds,
BTR.


这篇关于Javascript验证Gridview FooterTemplate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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