Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Help - Error Rendering Control / No Intellisense for control propertyHelp - Error Rendering Control / No Intellisense for control property
Previous
 
Next
New Post
11/17/2008 6:46 PM
 

Hi guys.  I'm sorry if this is a totally stupid question and I'm missing something that completely basic.

I'm developing a compiled module (VS 2005 - off the DNN 4.9.0 vsi templates). So I have the intall version of DNN up and working and I've added a new project under the DesktopModules folder which is my compiled c# module.  The project has its reference to the DotNetNuke.dll.

The problem I'm having is that in one of my user control pages I have the following directive:

<%@ Register TagPrefix="dnn" TagName="URL" Src="~/controls/URLControl.ascx" %>

I then have the controll declared as:
<dnn:URL ID="ctlURL" runat="server" Width="250" ShowNewWindow="True" ShowUsers="false" ShowTrack="false" ShowLog="false" />

but when in my code behind file I cannot get the value of the control by attempting to access its "Url" property.  It doesn't even show up in the intellisense when I type ctlURL. (i.e. ctlUrl.Url)

I also noticed that when I switch to Design view in the control, the DNN user control is displayed with the message: (really, every UC has the same type of error message)

Error Rendering Control - ctlURL
The file '~/controls/URLControl.ascx' was not found.

Can someone shed some light on what I'm missing here in this picture?

Best regards,

Jose Lopez

 
New Post
11/18/2008 11:23 AM
 

OK - I found my problem.  I was looking at the designer view from within the project location and not from the DesktopModules location.  This took care of the Error Rendering Control problem.  The other problem was in the FileName.ascx.designer.cs where I had to specify the control type protected global::DotNetNuke.UI.UserControls.UrlControl

One funky thing I'm still dealing with but may not be as critical is that I can only access the control programmatically when I work from the project file and not from the files under the DesktopModules location.

Anyway, I'm posting to myself in case anyone runs into the same issue and finds the info useful.

Thank you,

Jose Lopez

 
New Post
7/11/2012 10:48 PM
 
Thanks jose Lopez .
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Help - Error Rendering Control / No Intellisense for control propertyHelp - Error Rendering Control / No Intellisense for control property


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out