I've followed the instructions in this MSDN article: http://msdn.microsoft.com/en-us/library/dd206945.aspx
Is it possible to call a method that is in the myWebPart.cs file, from the MyUserControl.ascx file? I don't seem to have intellisense of the methods in the myWebPart.cs unless I do:
myWebpart mywbprt = new myWebpart();
mywbprt.myMethInWebPartcs();
However that gets the error, and does not compile:
Error 2 'myWebpart' is a 'namespace' but is used like a 'type'
The myWebPart.cs and MyUserControl.ascx share the same namespace, and I thought that would be enough to call the methods in myWebPart.cs in the usercontrol, but apparently not?
Am I missing some intricacy of SharePoint?