I try calling the customvalidator here:
private void Update_Click(object sender, System.EventArgs e)
{
if (!Page.IsValid) //I set a break point here
return;
--
---
--
Here is my fucntion: I set a bbreakpoint and it never hits the function. anysuggestions?
private void WrongeFileUpdate_ServerValidate(object source, System.Web.UI.WebControls.ServerValidateEventArgs args)
{
// Display wrong file message if not correct file is selected
if( _filename != this.FileName.ToString())
{
args.IsValid = false;
}
}
private void Update_Click(object sender, System.EventArgs e)
{
if (!Page.IsValid) //I set a break point here
return;
--
---
--
Here is my fucntion: I set a bbreakpoint and it never hits the function. anysuggestions?
private void WrongeFileUpdate_ServerValidate(object source, System.Web.UI.WebControls.ServerValidateEventArgs args)
{
// Display wrong file message if not correct file is selected
if( _filename != this.FileName.ToString())
{
args.IsValid = false;
}
}