CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 validating entry for 2 field in C# not working

Print topic Send  topic

Author Message
Visiomart

Posts: 13
Posted: 05/21/2010, 2:12 PM

protected void outlets_Validating(object sender, ValidatingEventArgs e) {
//End Record outlets Event On Validate

//Record outlets Event On Validate. Action Custom Code @64-2A29BDB7
// -------------------------
if ((channelcode.Value != null && outlett_code.Value != null) && (channelcode.Value.ToString() != outlett_code.Value.ToString() )) {
errors.Add("Invalid Column B.");
}
// -------------------------
This keeps giving me error:
Compiler Error Message: CS0103: The name 'channelcode' does not exist in the current context
but the channelcode is a field listed in the form design.
Please help
_________________
Don Capone
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.