本文介绍了Ajax:ValidatorCallOutExtender在网页的最左侧显示错误消息。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有javascript和CSS的DropDown列表如下



< link href =../../../ EditableDropDownlistScript / Chosen / chosen.cssrel =stylesheettype =text / css/>

< script src =../../../ EditableDropDownlistScript / Chosen / chosen.jquery。 jstype =text / javascript>< / script>



< style type =text / css>

.clearfix:在{

内容:\ 0020;

显示:阻止;

身高:0;

清除:两者;

溢出:隐藏;

可见性:隐藏;

}

< / style>

< script type =''text / javascript''>



Sys.Application.add_load(LoadHandler );

函数LoadHandler(){

jQuery(document).ready(function(){

$(#ddlBranchName)。选择();

$(。chzn-selec t-deselect)。selected({allow_single_deselect:true});

});

}

< / script>



我使用具有属性initialvalue =0的必填字段验证器和Ajax ValidatorCalloutExtender来验证我的Dorpdown但是当我点击我的提交按钮时,消息显示一个合适的位置但是当我选择我的DropDown列表的第一个值为0时,它会验证下拉列表并在网页的左下角显示错误消息....我想在适当的地方进行验证。

如果有人有解决方案,请回复...

谢谢你.. !!

I m having a DropDown list with javascript and CSS as follow

<link href="../../../EditableDropDownlistScript/Chosen/chosen.css" rel="stylesheet" type="text/css" />
<script src="../../../EditableDropDownlistScript/Chosen/chosen.jquery.js" type="text/javascript"></script>

<style type="text/css">
.clearfix:after {
content: "\0020";
display:block;
height: 0;
clear: both;
overflow: hidden;
visibility: hidden;
}
</style>
<script type=''text/javascript'' >

Sys.Application.add_load(LoadHandler);
function LoadHandler() {
jQuery(document).ready(function () {
$("#ddlBranchName").chosen();
$(".chzn-select-deselect").chosen({ allow_single_deselect: true });
});
}
</script>

I m using a Required field validator having property initialvalue= "0" and Ajax ValidatorCalloutExtender to validate my Dorpdown but when i click on my submit button the message is showing a appropriate place but when i select first value of my DropDown list which is having a value 0. it validate the dropdown and error message is showing at left corner of webpage.... i want the validation at the appropriate place.
if any one has the solution for it do reply...
thank u..!!

推荐答案



这篇关于Ajax:ValidatorCallOutExtender在网页的最左侧显示错误消息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 19:14