Portuguese Question
----------------------------------------------------
Estou tentando chamar um ValidatorCalloutExtender a partir de um CustomValidator, alguém aqui já fez isso? Isso é possível? Pois no meu exemplo abaixo isso não funciona.
English Question
----------------------------------------------------
I can try to call ValidatorCalloutExtender from a CustomValidator, but it´s not work. It´s possíble? My example doesn´t work.
PLEASE HELP ME!
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class teste : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void CustomValidator1_ServerValidate(object source, ServerValidateEventArgs args)
{
if(TextBox1.Text == "janis"){
args.IsValid = true;
}else{
args.IsValid = false;
}
}
}
I believe, from
looking at the ValidatorCallout known issues, that it only works on CustomValidators
with client-side validation (i.e., JavaScript). Here's the part of the sentence:
"...will only work for custom validators which utilize client-side validation."
Darrell Norton, MVP
Darrell Norton's Blog Please click "Mark as Answer" if this helped you.
Can you show some exemple code??
I´m having this problem too.
[:(]
Tks...
See yaa!
==============================================
André Baltieri
São Paulo - Brazil
http://www.insidedotnet.com.br/
Twitter: @andrebaltieri
==============================================
From what I've seen, you cannot use the ValidatorCalloutExtender when the CustomValidator is using a server side validation. In this case the solution is relatively simple. Instead of using a CustomValidator, try using a RegularExpressionValidator. I've
tested the following at it will work with ValidatorCalloutExtender without a postback.
If you still want to use a CustomValidator, then create a ClientValidationFunction instead of a server side function. The following demonstrates an example of this.
or in your custom validator place a field to validate it could be any text box but validate callout needs something ,
<asp:CustomValidatorID="RCVlen2"ControlToValidate="wid3"runat="server"ErrorMessage="Adjust
end widths"ClientValidationFunction="ValidateCheckBox"Display="None"></asp:CustomValidator>
None
0 Points
1 Post
ValidatorCalloutExtender + CustomValidator - It´s possible?
Dec 14, 2006 05:42 PM|Thiago Santos|LINK
WHERE´S THE ValidatorCalloutExtender?
Portuguese Question
----------------------------------------------------
Estou tentando chamar um ValidatorCalloutExtender a partir de um CustomValidator, alguém aqui já fez isso? Isso é possível? Pois no meu exemplo abaixo isso não funciona.
English Question
----------------------------------------------------
I can try to call ValidatorCalloutExtender from a CustomValidator, but it´s not work. It´s possíble? My example doesn´t work. PLEASE HELP ME!
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
teste.aspx
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
teste.aspx.cs
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CascadingDropDown CustomValidator validatorcalloutextender
Developer
thiagosantos@thiagosantos.com.br
All-Star
43204 Points
10243 Posts
MVP
Re: ValidatorCalloutExtender + CustomValidator - It´s possible?
Dec 17, 2006 08:53 PM|DarrellNorton|LINK
I believe, from looking at the ValidatorCallout known issues, that it only works on CustomValidators with client-side validation (i.e., JavaScript). Here's the part of the sentence:
"...will only work for custom validators which utilize client-side validation."
Darrell Norton's Blog
Please click "Mark as Answer" if this helped you.
Member
21 Points
13 Posts
Re: ValidatorCalloutExtender + CustomValidator - It´s possible?
Feb 05, 2007 02:11 PM|AndreBaltieri|LINK
Can you show some exemple code??
I´m having this problem too.
[:(]
Tks...
See yaa!
André Baltieri
São Paulo - Brazil
http://www.insidedotnet.com.br/
Twitter: @andrebaltieri
==============================================
Member
31 Points
21 Posts
Re: ValidatorCalloutExtender + CustomValidator - It´s possible?
Feb 21, 2007 03:58 PM|jmaag|LINK
From what I've seen, you cannot use the ValidatorCalloutExtender when the CustomValidator is using a server side validation. In this case the solution is relatively simple. Instead of using a CustomValidator, try using a RegularExpressionValidator. I've tested the following at it will work with ValidatorCalloutExtender without a postback.
Member
31 Points
21 Posts
Re: ValidatorCalloutExtender + CustomValidator - It´s possible?
Feb 21, 2007 04:13 PM|jmaag|LINK
If you still want to use a CustomValidator, then create a ClientValidationFunction instead of a server side function. The following demonstrates an example of this.
Member
5 Points
59 Posts
Re: ValidatorCalloutExtender + CustomValidator - It´s possible?
Oct 10, 2012 04:13 PM|TgaLamx|LINK
or in your custom validator place a field to validate it could be any text box but validate callout needs something ,
<asp:CustomValidator ID="RCVlen2" ControlToValidate="wid3" runat="server" ErrorMessage="Adjust end widths" ClientValidationFunction="ValidateCheckBox" Display="None"></asp:CustomValidator>
<asp:ValidatorCalloutExtender ID="vcblen2C2" runat="server" TargetControlID="RCVlen2" CssClass="vcall">
All-Star
48393 Points
12161 Posts
Re: ValidatorCalloutExtender + CustomValidator - It´s possible?
Oct 10, 2012 11:42 PM|chetan.sarode|LINK
Refer this
http://programminginhell.wordpress.com/2008/08/03/hello-world/
http://blog.matthewriley.name/ASP.NET/use-validator-callout-extender-for-custom-validation/
http://forums.asp.net/t/1576399.aspx
CascadingDropDown CustomValidator validatorcalloutextender
Team Lead, Product Development
Approva Systems Pvt Ltd, Pune, India.