CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> .NET

 validating entry for 2 field in C# not working

Print topic Send  topic

Author Message

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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

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