More in this section
Forums / Developing with Sitefinity / Could not load user control when try to drag it on sitefinity backend page.

Could not load user control when try to drag it on sitefinity backend page.

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. rupali
    rupali avatar
    14 posts
    08 Mar 2016
    19 Mar 2016
    Link to this post

    Hello Sir,

                I have created user control to display success message after subscription which contains subscribe code(add user email to database) on page load.Register it (RegisterSettings.png) on sitefinity . After created page and when try to drag MsgTemplate control on my page, it displays error could not load user control(erroronPage.png).and another error is as shown in image error.png Unable to understand why this error occur.Plz help me .Below is my user control markup

    Thanks in advance.


    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="thanks-you.ascx.cs" Inherits="SitefinityWebApp.UserControls.thanks_you" %>
    <html lang="en">

     <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="stylesheet" href="">
      <link href="" rel="stylesheet" />
      <script src=""></script>
      <script src=""></script>
      <script src=""></script>

          function showMessageBox1(msg) {
            var dvMessageBox = document.getElementById('dvMessageBox1');
            var dvBack = document.getElementById('dvMessageBoxBack1');

            //var screenHeight = $(window).height(); // window.screen.height;
            var screenHeight = screen.height;
            var screenWidtht = $(window).width();

   = "";
   = "";
            // = document.documentElement.scrollHeight + 'px';
   = (screen.height + 350) + 'px';

            var dvwidth = parseInt(dvMessageBox.children[0].offsetWidth);
            if (dvwidth == 0 || dvwidth == "NaN") {
                dvwidth = 650;

   = (screenWidtht / 2) - (dvwidth / 2) + 'px';
            // = (screenHeight / 2) - (dvMessageBox.offsetHeight / 2) + 'px';
   = (screenHeight / 2) + 'px';
            if (parseFloat( > 400)
       = 375 + 'px';
            if ( > 450)
       = 300 + 'px';
            document.getElementById('lblMessage1').innerHTML = msg;



    <div class="dvsignup">

        <div class="row dvrw">
            <div class="dvform" id="dvform">
                 <a href="">
                <img alt="logo" class="logoImg" src="/Sitefinity/WebsiteTemplates/WealthTraceNew/App_Themes/WealthTraceNewTheme/img/logo----1.png" /></a>
            <div class="dv12txtLR">




  2. Dimitri Cools
    Dimitri Cools avatar
    80 posts
    19 Jun 2017
    22 Mar 2016
    Link to this post

    Most likely the dash in the tagname attribute (TagName="thanks-you" ) is causing this parse error.
    Please try to modify and register the control without the dash in the tagname and retest.
    If the problem persists please upload all your custom control files with some repro steps in order for us to examine and test.

    Dimitri Cools
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered