Tech Off Post

Single Post Permalink

View Thread: ASP.Net User control with codebehind not working
  • User profile image
    qwert231

    Nah, that's how I was instantiating it, as a new sniff.

    Now, in the ASP.net book i have they say to put a ClassName="" attribute in the ascx tag, like such:

    <%@ Control Inherits="uCtrlPreview" src="uCtrlPreview.vb" ClassName="SomeOtherName" %>

    saying that it is needed in case we dynamically create the control on a page.