More in this section
Forums / Bugs & Issues / ASP code into HTML content block?

ASP code into HTML content block?

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Patricia
    Patricia avatar
    15 posts
    05 Jun 2015
    29 Jun 2015
    Link to this post

    I am trying to transfer our calculator that we developed for our old site into Sitefinity. However, once I transfer all the code into the html section of the content block, Sitefinity doesn't recognize "<%" and it instead of treating it like code, it treats it as a regular text and changes it to &lt;%. Is there a solution to this? 

  2. RJ Cuthbertson
    RJ Cuthbertson avatar
    41 posts
    01 Jun 2015
    01 Jul 2015
    Link to this post


    The ASP.NET code that you're trying to use won't work in a content block for a number of reasons.


    The correct way to accomplish what you are trying to do is to create a custom widget for your site. Here is the related section of the Sitefinity documentation:


    User and Custom widgets


    I hope that helps to point you in the right direction.

2 posts, 0 answered