ASP code into HTML content block?

Posted by Community Admin on 04-Aug-2018 20:25

ASP code into HTML content block?

All Replies

Posted by Community Admin on 29-Jun-2015 00:00

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? 

Posted by Community Admin on 01-Jul-2015 00:00

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.

This thread is closed