More in this section

Forums / Developing with Sitefinity / Embeding Template with codebehind

Embeding Template with codebehind

3 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    25 Sep 2009
    Link to this post
    Hi,

    How to embedding and retrieve some template implementing one codebehind?. I understand that is not for use in some designer where initialize can make this work.
    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    26 Sep 2009
    Link to this post
    Hello Pierre,

    Could you elaborate a bit more and send some code sample.  What kind of template you are trying to retrieve. Generally you have the following templates:

    - View templates - embedded resources for modules. Each view has a template.
    - Control templates - of user or custom controls.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    26 Sep 2009
    Link to this post
    Hi,
    Sorry, I use one folder in my compiled solution like Resources/Templates/ProviderName and i have one ascx one cs and css file inside like. I use these files to use as template for the SimpleControl class but i searching not expose in external folders.
        temp1.ascx<---Template SimpleControl class
        temp.cs  <-- Complementary codebehind
        temp.css <---Style to be applied
    Thanks, Regards.




Register for webinar
3 posts, 0 answered