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

Forums / Developing with Sitefinity / All ways to add codebehind to internal cms Pages

All ways to add codebehind to internal cms Pages

5 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    20 Mar 2009
    Link to this post
    Hi,

    Could you sugest the best ways to add one codebehind to internal created pages. The normal way is adding to Template. I have many external created pages in my custom solution with custom codes. Could you sugest the best ways to perform  this point with small tips as posible?. 
    Thanks. 
  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    20 Mar 2009
    Link to this post
    Are you asking how to bring the code from external pages that you've created into sitefinity?

    this can be done by moving your code from the external aspx pages and placing them inside of user controls, which are the ascx pages. these can then be added to sitefinity pages by uploading them in the control panel...

    if this is what you are asking, let me know and I can provide more details. I hope this was helpful, if not please let me know more what you are trying to accomplish and i will do my best to help!
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    20 Mar 2009
    Link to this post
    Hello SelArom,

    I also think that using users controls is good idea for adding your logic to sitefinity pages.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  4. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    20 Mar 2009
    Link to this post
    Hi,

    Thanks, Could you suggest others ways to better protection of my code. For sample compiled UserControls added in toolbox or External dll. Could you help with sample of these 2 others solutions?.
    Good we, Thanks.
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    22 Mar 2009
    Link to this post
    Hello Pierre,

    Generally, you could create a pages under folder of your project root. Then use the your code in the code behind of the externel pages. On the other hand compiling the code to dll will create some security. You could also try use any Script Encoder.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Register for webinar
5 posts, 0 answered