Products

Solutions

Resources

Partners

Community

About

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

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedAny changes in SectionHead control between DNN 4 and 7?Any changes in SectionHead control between DNN 4 and 7?
Previous
 
Next
New Post
5/18/2014 11:27 PM
 

Hi.  Have there been any changes in how to declare and use the SectionHead DNN User Control (~\controls\sectionheadcontrol.ascx) between DNN 4 and DNN 7?  The reason that I ask is that I have moved a custom user control that uses the SectionHead control from a DNN 4 to a DNN 7 site, and the SectionHead tables aren't rendering.  No errors occur, but nothing is displayed.

I've double-checked my code against Mitchel Sellers' book ("Professional DotNetNuke Module Programming") and  J.K. Murphy's book ("DNN 5.4 Cookbook"), and everything looks OK, but those books cover module development in DNN 5 and earlier.  Does anyone know of a reference that shows examples of how to use the SectionHead control in DNN 7.x?

See Ya!
Van


See Ya! Van
 
New Post
5/19/2014 7:23 AM
 
it's hard to say as that's an old control that's not used much now anymore -I can't recall any changes but it's been a few years so it's entirely possible. You can find it in usage in the core in desktopmodules/admin/authentication/authentication.ascx.cs or desktopmodules/admin/authentication/login.ascx.cs or desktopmodules/admin/languages/resourcesverifer.ascx.cs

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
5/21/2014 10:28 AM
Accepted Answer 

Cathal, thank you very much for taking the time to reply.  The examples you provided are fantastic for seeing how to create a SectionHead programmatically.  Nice stuff.

I fixed the issue.  It appears that the syntax for SectionHead control has NOT changed between DNN 4.3.5 and DNN 7.2.1.

There were multiple causes to the problem I was experiencing.  The one issue was that the SectionHead  control was invisible by default, and it was only made visible when the DataBind() event fired, and the DataBind() event was not firing automatically.  The fix was to call DataBind() within the OnLoad() event. I'm not sure how the DataBind() event is magically firing in the old DNN 4.3.5 installation without being called, though.  That's still a mystery.

A second problem was due to misconfigured CSS.  Now that the SectionHead control was appearing, the text was white-on-white.  Duh!  An easy fix, though.

By the way, this user control is a copy of the old User.ascx control from DNN 4.3.5 that's been modified with extra logic.

Anyway, it's working, and I appreciate the help.

 

See Ya!
Van


See Ya! Van
 
New Post
5/21/2014 12:27 PM
 
thanks for the update - whilst it's old code it's good to know it still works as intended.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedAny changes in SectionHead control between DNN 4 and 7?Any changes in SectionHead control between DNN 4 and 7?


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