Mitchel's Forums

Subject: Strange Problem with class visibility
Prev Next
You are not authorized to post a reply.

AuthorMessages
r_honeyUser is Offline
Regular User
Regular User
Posts:70

06/03/2008 12:52 PM  

I was trying to customize the management of users by creating a module. When I tried to inherit from

DotNetNuke.Modules.Admin.Users.ManageUsers

I noticed that the class is not listed in IntelliSense. Other classes in The same namespace (like BulkEmail, Profile etc.) were listed, but ManageUsers, MemberServices, ViewProfile etc. were not listed.

I checked Object Browser, and same was the case there. I checked definition of each class, and found no difference regarding Visibility specifiers.Each class was declared as:

Partial Class ClassName

There was nothing related to Public or Friend constructors even.

Is there any explanation for this strange behaviour???

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5501

06/05/2008 12:31 AM  
That is a very odd one....

My guess is that the XML comments are missing in the source.

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

This site is hosted by 3Essentials

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
r_honeyUser is Offline
Regular User
Regular User
Posts:70

06/05/2008 2:45 AM  

Ok, I found the reason for that behaviour.

Only those controls' code-behind classes were available for sub-classing or creating an object, which were either referenced (<% Reference %>) or Registered (<% Register %>) in the markup for your control!!!

And that appears obvious now. As ASP.NET documentation says, these tags lead another ASP.NET page or control to be compiled with the current one. Thanx for taking time to reply!!!

But I could not understand when you said:

"XML Comments are missing in the source."

What exactly did you mean by that?? (That might help some other day)

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5501

06/06/2008 8:15 AM  

Many pieces of the core DNN code are missing the XML style comments, that drive the Intellisense information.

In VB the comments are something like

'''


''' Your comment here
'''
public sub MySub()

End Sub

In C# they are like
///
/// My comment
///

Public void MyMethod()
{

}

The values inside the and other tags are what Intellisense uses from the assembly to build the help and other information.


-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

This site is hosted by 3Essentials

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
r_honeyUser is Offline
Regular User
Regular User
Posts:70

06/06/2008 8:27 AM  

What have these XML comments got to do with whether or not you can inherit or instantize a class???

I think Mitch you did not understood my problem.

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5501

06/06/2008 5:38 PM  
You are correct, I apologize I didn't understand the problem.

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

This site is hosted by 3Essentials

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
r_honeyUser is Offline
Regular User
Regular User
Posts:70

06/07/2008 1:23 AM  

Anyways, I have posted the reason & the solution in the Third post above!!!

Thanx

You are not authorized to post a reply.
Forums >Development Discussion >DotNetNuke > Strange Problem with class visibility



ActiveForums 3.7