+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / ASP code into HTML content block?

ASP code into HTML content block?

2 posts, 0 answered
  1. Patricia
    Patricia avatar
    15 posts
    Registered:
    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
    Registered:
    01 Jun 2015
    01 Jul 2015
    Link to this post

    Patricia,

    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