I've been trying to get help on this issue for a while now but still after reading everything and trying everything(nearly) I'm asking your help.
The problem is the same for many others. I have my UserControl consisting of an ascx and ascx.vb file. The userControl is Registered and used in my aspx file. But when I want to access its properties i can not do that from the ascx-code-behind file. It works fine if i put all the code in the aspx file.
I've read that you should define/declare the usercontrol in the codebehind file as something like:
Protected WithEvents MyControl As (type). And this is where it stops for me. What should i write as type. My control is a SiteHeader type of control, but it doesn't work if i write "As SiteHeader". There must be some referencing problem.
I'm in need of help here. PLease explain this to me and please do not post some hyperlink - I've been there and it looks easy - but still I can't get it to work
Thank you.
Kenni
The problem is the same for many others. I have my UserControl consisting of an ascx and ascx.vb file. The userControl is Registered and used in my aspx file. But when I want to access its properties i can not do that from the ascx-code-behind file. It works fine if i put all the code in the aspx file.
I've read that you should define/declare the usercontrol in the codebehind file as something like:
Protected WithEvents MyControl As (type). And this is where it stops for me. What should i write as type. My control is a SiteHeader type of control, but it doesn't work if i write "As SiteHeader". There must be some referencing problem.
I'm in need of help here. PLease explain this to me and please do not post some hyperlink - I've been there and it looks easy - but still I can't get it to work
Thank you.
Kenni