Ok, I initially got this to work by using the Page.LoadControl method to essentially connect the control to its ascx file.
Now I'm trying to put the control in its own control library so that other projects within the solution can referrence this common control.
Any help would be appreciated. :)
I use a special class to handle page templating (we'll call this class "BasePage"). This works all well and good. Now I'm trying to take it to the next level by creating a "PageHeader" user control. I can create this control and it appears to work fine.
But... What I need to...
I've run into an odd issue. I've got a page that inherits from a customer page class and recently, for yet unknown reasons, every time I work with the page in the form designer, the designer inserts lines into the Initialize Component Sub.
Before:
<System.Diagnostics.DebuggerStepThrough()>...
Found a solution...
AddHandler btnRemoveLoan.Click, AddressOf btnRemoveLoan_Click
This allowed me to easily assign an event handler to my programatic button. It accomplishes exactly what I wanted to do with one simple line. :)
Thanks Link9, I'll do the reading on the method and see what I can dig up. As or changing to c#, that's not an option. The company I work for is already strongly entrenched in VB and moved to .NET so that the web side (which I'm being asked to help expand) uses the same language (at least as...
Ok, php guy who's *trying* to make the switch to ASP/VB.NET. Running into the normal snags, but all in all I'm muddling through. Currently however I'm hung up on how to add/specify the event handler for a programmatically created button.
According to MSDN...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.