CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.custom_modules Tags:
Item Type: NewsGroup Date Entered: 10/5/2004 3:53:16 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 10 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
jimhugh
Asp.Net User
MustInherit in UserControls10/5/2004 3:53:16 PM

0/0

I don't want to bother Scott, because it is my lack of understanding, not a bug.

In his News Articles module ( details at http://www.smcculloch.net/Default.aspx?tabid=48 ) NewsArticles.ascx acts as the controller (the only one configured within DNN) to dynamically load over 20 UserControls modules.

What I don't understand is WHAT is inheriting the additional user controls when they are loaded?

Does Controls.Add ignore the MustInherit flag? It seems that in this case, all MustInherit does is prevent the controls from being added by the designer.

' From NewsArticles.ascx
' m_controlToLoad has page wide scope and is assigned a value like
' "ucApproveArticles.ascx" by Sub ReadQueryString

Private Sub LoadControlType()

Dim objPortalModuleControl As PortalModuleControl = _
CType(Me.LoadControl(m_controlToLoad), PortalModuleControl)

objPortalModuleControl.ModuleConfiguration = Me.ModuleConfiguration

' Load the appropriate control
'
plhControls.Controls.Add(objPortalModuleControl)

End Sub

' e.g. from ucApproveArticles.ascx
Public MustInherit Class ucApproveArticles
Inherits PortalModuleControl
...
End Class

Jim Hughes
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning Visual Basic 2005 Authors: Thearon Willis, Bryan Newsome, Pages: 799, Published: 2006
ASP.NET Cookbook Authors: Michael A. Kittel, Michael A. Kittel Geoffrey T. LeBlond, Geoffrey T. LeBlond, Pages: 824, Published: 2004
Programming ASP.NET: Building Web Applications and Services Using C and VB.NET. Authors: Jesse Liberty, Dan Hurwitz, Pages: 988, Published: 2003
Building an ASP.NET Intranet Authors: Kourosh Ardestani, Brian Boyce, Jonathon Walsh, et al., Andy Elmhorst, Matt Gibbs, Pages: 480, Published: 2003
Pro ASP.NET 2.0 Website Programming Authors: Damon Armstrong, Pages: 641, Published: 2005
Performance Tuning and Optimization for ASP.NET Applications Authors: Jeffrey Hasan, Kenneth Tu, Pages: 367, Published: 2003
Programming Visual Basic 2005 Authors: Jesse Liberty, Pages: 548, Published: 2005
Developing Web Applications with Visual Basic.NET and ASP.NET Authors: John Alexander, Billy Hollis, Pages: 400, Published: 2002
Building Portals, Intranets, and Corporate Web Sites Using Microsoft Servers Authors: James J. Townsend, Dmitri Riz, Deon Schaffer, Pages: 517, Published: 2004
ASP.NET Website Programming: Problem - Design - Solution Authors: Marco Bellinaso, Kevin Hoffman, Pages: 576, Published: 2002

Web:
Usercontrol based on a MustInherit base class - ASP.NET Forums Public MustInherit Class UCBase Inherit Web.UI.UserControl Public Title as String Public Sub MethodA() RunProgram() ...
Benefits of using the Codebehind attribuut with an abstract ... I know I could just remove mustinherit and declare the methods ... As a side thought you can have multiple UserControls pointing at the same ...
All About ASP.NET User Controls :: DotNetJohn Public MustInherit Class UCSub Inherits System.Web.UI.UserControl Protected txtUserName As System.Web.UI.WebControls.TextBox Protected txtPassword As System ...
Calling default event handler for my base class UserControl, as below: Public MustInherit Class Panel Inherits System.Web.UI. UserControl ..... In another module, I want to define another ...
Referencing user control variables from page - .NET ASP So, the code behind for your user control class should look something like this: Dune Start Code Example: Public MustInherit Class Header Inherits System. ...
Walkthrough: Creating a Web User Control Visual Basic Public MustInherit Class menu Inherits System.Web.UI.UserControl Protected WithEvents DataList1 As System.Web.UI.WebControls. ...
Programming ASP.NET: Custom and User Controls, Part 1 | O'Reilly Media OleDb Public MustInherit Class Booklist Inherits System.Web.UI.UserControl Protected WithEvents ddlBooks As System.Web.UI.WebControls. ...
WPF Sample Series - WPF MVC TabControl MDI and CommandBindings ... Feb 24, 2008 ... Making a base UserControl class MustInherit causes the Visual Studio designer '' ' to blow up. There are workarounds but I don't like them. ...
NetQuarry WizPageBase, Provides a base class for a UserControl that is part of a wizard This class is abstract (MustInherit in Visual Basic)abstractMustInherit and so ...
FormsAuthentication.SignOut() not working in UserControl Public MustInherit Class C_Header Inherits System.Web.UI.UserControl ' I placed the Sub Program here End Class Thats it. ...




Search This Site:










problems reuilding dnn solution

what happens if we delete a mod from host->mod def's?

access denied to 'c:\inetpub\wwwroot\web.config'

very strange ftb (rich text editor) behavior...

dotnetnuke module dev

archives page

document: duplicate filename

asp.net intranet application and macintosh clients

getpermissonbycodeandkey problem 3.0.11 (for core)

need help in dotnetnuke 3.1.0

hiding one module with another?

new tttforum & tttgallery issues- version 109 application pack

forms authentication in sub virtual directories.

how can i set staticmenustyle without using css?

[detailsview] after javascriptpostback automaticly redirection

is it possibile to delete a margin in dotnetnuke ?

using forms authentication in asp 2.0 without sql express?

inserting into access db using vwd.

format document: leave line spacing alone and change indentation only?

viewstate

why migration tool doesn't work in my laptop

calling child master page from super master page programatically

object reference not set to an instance of an object.

tabs don't work

design time persmission issues...

help ..unable to open a socket connection

theme effecting menu control autoformat

cd-write with asp.net

another messerchat module. free....

splash page how do u use it

 
All Times Are GMT