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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPILabelControl - suppress trailing line breakLabelControl - suppress trailing line break
Previous
 
Next
New Post
3/31/2009 11:37 AM
 

Is there any chance to suppress the trailing line break in a (DNN) label control?

Thanks for the answers!

Best wishes
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
3/31/2009 11:53 AM
 

I noticed that linebreak too, just the other day. It causes some alignment problems (mostly on IE) on the Module Settings page and probably others too. But I also noticed that it has been that way for a long time (and still is in 5.0.1).

For the time being I have removed the <br /> in ~/controls/labelcontrol.ascx. That of course is not really a perfect solution, but it works for now. I'm trying to see if there are any negative effects anywhere and will probably eventually report it in Gemini, maybe as an "enhancement".

 
New Post
4/2/2009 11:57 AM
 

Well deleteing the "<br />"-Tag is not really an option. It will affect a lot of modules, eg Feedback.

After fooling around a while, I found the following solution:

protected void Page_Init(object o, EventArgs e)
{
   this.LabelControl1.PreRender += new EventHandler(HideLineBreakFromLabelControl);
}

protected void HideLineBreakFromLabelControl(object sender, EventArgs e)
{
   LabelControl label = (LabelControl)sender;
   label.Controls[1].Visible = false;
}

Best wishes
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
4/2/2009 4:38 PM
 

Yes, I figured somewhere something would rely on this line break. I since ducked the issue completely and made a new webcontrol for a "modified" label control that doesn't have a line break.

 
New Post
4/3/2009 9:55 AM
 

Well, that was actually the solution I wanted to avoid... but anyway, of cource you have much more control over the things you do yourself :-)

Best wishes
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPILabelControl - suppress trailing line breakLabelControl - suppress trailing line break


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