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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Code block bugCode block bug
Previous
 
Next
New Post
4/27/2010 3:44 AM
 

Hi,

Recently I've installed DotNetNuke 5.4.0.107, added the default blog module and started blogging. However, when I use code blocks with ASP.NET MVC code in it, the code gets corrupted all the time. To simulate:

Create a new blog entry.
Then add a code block with following code:

<%= Html.ActionLink("Edit", "Edit", new { id=item.ID }) %> |
<%= Html.ActionLink("Details", "Details", new { id=item.ID })%>

De code block is displayed fine. Update the blog entry and all is ok.

Then edit the entry, and you will see that the code is gone, only the | is still there. If you look at the HTML, you will see that it has transformed the <%=into <!--- and so it has become a comment and not visible anymore. The same happens if you use <%@ or <?.

Because of this I can't use code blocks. Does anyone know a workaround or fix, because I can't use code blocks because of this?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Code block bugCode block bug


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