Could not load user control when try to drag it on sitefinity backend page. - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

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.
  • 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 src=">
      <script src=">

          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">


  • Hi,

    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