当我针对asp.net中的文本框验证ajax控件时,未触发“按钮" [英] 'Button' not fired when i validate ajax control against textbox in asp.net

查看:87
本文介绍了当我针对asp.net中的文本框验证ajax控件时,未触发“按钮"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生,

内部面板控件中有3个字段,
1.名称
2.日期和
3.年龄

并使用模式弹出扩展器ajax控件
以上字段使用AJAX控件进行验证,
然后单击提交"按钮.


按钮未触发,
当我针对TextBox控件验证Ajax控件时未触发按钮"

怎么了为什么不触发控件(如保存,更新,取消)(此按钮的代码位于代码后面).

给我解决方法.

由mohan.

Dear sir,

Inside panel control I have 3 fields,
1. Name
2. date and
3. age

and using modal popup extender ajax control
Above fields are validate using AJAX controls,
and then click SUBMIT Button.


Button not fired,
"Button not fired when I validate ajax control against TextBox Controls"

What is problem? Why Controls not fired(like. save,update,cancel)(this button have code in code behind).

give me solutions.

by mohan.

推荐答案

Please add CausesValidation="false" for Button_Preview and check.

<asp:button id="Button_Preview" runat="server" causesvalidation="false" text="Preview" onclick="Button_Preview_Click" xmlns:asp="#unknown" />    



否则使用此



or else use this

 You are using validators,try this


<asp:requiredfieldvalidator id="valueReqValidator" runat="server" validationgroup="button" controltovalidate="btnValue" xmlns:asp="#unknown"></asp:requiredfieldvalidator>


这篇关于当我针对asp.net中的文本框验证ajax控件时,未触发“按钮"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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