CodeVerge.Net Beta
Login Idy
Register Password
  Forgot?
Explore    Item Entry    Profile   
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > newsgroup > asp.net forum > starter_kits_and_source_projects.portal_starter_kit Tags:
Item Type: NewsGroup Date Entered: 7/16/2004 5:11:07 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 16 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
pat3436
Asp.Net User
PortalModuleControl Error...7/16/2004 5:11:07 AM

0/0

Hi Guys,

i create a control (.ascx) file which contain a XSL transforms control, which open a HttpWebRequest to a URL then get the XML. After load the XML string to the XML document then i assign a XSLT as the transformSource for the XMLDocument object.


i insert all the backend stuff... but the dt.aspx execute to this line, i got type mismatch error...
--> PortalModuleControl portalModule = (PortalModuleControl) Page.LoadControl(moduleSettings.DesktopSrc);


so i try to test out the code... by just adding the control by control instead of using the PortModuelControl and it works fine....
--> Panel.Controls.Add(Page.LoadControl("~/controls/myXMLContorl.ascx"));

any idea why is not working?

Thanks a lot guys!!!
Patrick
rickwright2000
Asp.Net User
Re: PortalModuleControl Error...8/12/2004 9:01:51 PM

0/0

Pat, I have created an application which retrieves xml data from a weather website.

First, Remember that PortalModuleControl inherits UserControl -- which is why we don't let our custom userControls Inherit from the actual UserControl class, but instead we use PortalModuleControl (PMC) ( A great way for multiple inheritance when you think about it.)

Now, in my Class file called WeatherCtl, I have:

Public Class Weatherctl Inherits PortalModuleControl. Because I Inherit from PortalModuleControl, My Control is a UserControl and it is a PortalModuleControl. Remember your is a... and has a... inheritance versus composition relationships.

My Class is also a WeatherCtl. I have no need to cast this class to a PortalModuleControl because it is one. In the page attributes, I have @Page...Inherits="rw.lib.Weatherctl"
Keeping in mind that my class Weatherctl inherits PortalModuleControl which in turn inherits UserControl.

Now, I am not really clear on exactly what you want to cast to a PMC or why you would want to, but I don't see how you could cast an existing UserControl which does not inherit from PMC to a PMC. Your code snippet was so brief, I can't say I am too helpful.

Best of Luck,

Rick...


SeanKMcG
Asp.Net User
Re: PortalModuleControl Error...8/18/2004 3:52:40 PM

0/0

I have been receiving the same error.

I have created a Control that is as simple as it gets:

<%@ Control Language="c#" AutoEventWireup="false" Codebehind="Sample.ascx.cs" Inherits="ASPNET.StarterKit.Portal.DesktopModules.Sample" TargetSchema="http://schemas.microsoft.com/intellisense/ie3-2nav3-0"%>
<p>I am hoping that this will work....</p>

I am getting the same error message that Pat has been getting.

Any ideas?
-sean
3 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

positioning image with DIV - macromedia.dreamweaver - Web Programming ... positioning image with DIV, > ROOT > NEWSGROUP > Adobe-Macromedia Forums > macromedia.dreamweaver, Date: 2/13/2008 4:43: ... portalmodulecontrol error... help! ...
textAlign for textbox - ng.asp-net-forum.windows-hosting_open_forum ... bug in the iseditable property in portalmodulecontrol class? ... need help with error i received when adding theme to my site ...
Object reference not set to instance of an object - ASP.NET Forums PortalModuleControl portalModule = (PortalModuleControl) Page.LoadControl ... parent.Controls.Add( portalModule); // i am getting error here.. else ...
Parse Error in DNN - Extend It! ( Programming in VS2003, ASP.Net 1.1 ... DotNetNuke® Forums ... Description: An error occurred during the parsing of a resource required to ... Inherits DotNetNuke.PortalModuleControl ...
Error ( provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Error information has been sent to the AspSpider team. ...
Barry's Blog : Testing of rev. 632 After adding new user got the following error when I tried to "Edit User" ... OnLoad(EventArgs e) at Rainbow.Framework.Web.UI.WebControls.PortalModuleControl. ...
Issue 11 - rainbow - Google Code an error is thrown: System.Web.HttpUnhandledException: Exception of type 'System. ... Web.UI.WebControls.PortalModuleControl.OnLoad(EventArgs e) in D:\Homepages ...
Popup.dll Download Popup.dll download from Largest DLL library. This site maintains listings 25000 ... PORTALMODULECONTROL.DLL PORTALMODULECONTROL.DLL, v 1.1.0.0 ...
rainbow - Google Code PortalModuleControl portalModule = (PortalModuleControl) Page. ... ErrorHandler.Publish(LogLevel.Error, "DesktopPanes: Unable to load cached control ' ...
MBR IT/.NET 247 : Code Behind Not working on ASPFriends.com ... Control Inherits="ASPNetPortal.PortalModuleControl" Language="vb" ... If you have received this electronic transmission in error, please notify ...


 
All Times Are GMT