Skip to main content

How to add attribute in cobol code-behind?

  • February 7, 2011
  • 1 reply
  • 0 views

[Migrated content. Thread originally posted on 05 February 2011]

I found this in C#, but how do I do it in cobol? It goes in the Page_Load method.

txtName.Attributes.Add("onblur","somefunction()");

1 reply

Michael Bleistein

[Migrated content. Thread originally posted on 05 February 2011]

I found this in C#, but how do I do it in cobol? It goes in the Page_Load method.

txtName.Attributes.Add("onblur","somefunction()");
Here is the syntax for COBOL and .NET:

In Visual COBOL:invoke txtName::Attributes::Add("onblur","somefunction();")

In Net Express with .NET 5.1:invoke txtName::"Attributes"::"Add"("onblur","somefunction();")