Alot of what I'm doing on this project is very exploratory for me, so forgive me if I ask the same question again.
I know that I can access members of a web user control if I expose them first:
public string SetLabelName
I have also been shown that I can call a function on that control that sets the values locally by passing a long list of arguments or passing an array:
customer custControl = new customer();
Here is my new question. I just did a bunch of reading and I was going over the static keyword. When I make my members public static, I can call them using a type name instead of an instance reference. When I type the dot operator, it shows the members properly and everything compiles perfectly.
So now, I have some static members in a class, and when I try to run in debug mode it throws an error on a page thats not part of my code. Here is the output:
Compiler Error Message: CS0176: Static member 'CMAlite.Controls.Customer
ame' cannot be accessed with an instance reference; qualify it with a type name instead.
Line 66: #line default
Line 67: #line hidden
Line 68: this.txtFirstName = __ctrl;
Line 70: #line 8 "http://localhost/CMAlite/Controls/customer.ascx
I don't have that anywhere in any file that I wrote, so I must be doing something that asp.net doesn't like.
Any ideas would be greatly appreciated.