Customize Advanced Form Template In Web Application

2 posts, 0 answers
  1. Dave Miller
    Dave Miller avatar
    64 posts
    Member since:
    Oct 2004

    Posted 01 Oct 2008 Link to this post

    I am trying to customize the advanced form template in a web application project. The problem seems to be that the MultipleValuesResourceControl.ascx and  ResourceControl.ascx both use

     "public partial class ResourceControls : UserControl"

    for their .cs files. These contain duplicate properties and functions which generate errors when I try to build the project.

    What would I need to do modify the template in a web applicaion project?

  2. T. Tsonev
    T. Tsonev avatar
    2760 posts

    Posted 03 Oct 2008 Link to this post

    Hello Dave,

    You are correct, the class name is duplicated in the two user controls. This is a bug that we have since fixed. You need to rename ResourceControls to MultipleValuesResourceControl in MultipleValuesResourceControl.ascx and change the corresponding Inherits clause in the ascx file:
    <%@ Inherits="MultipleValuesResourceControl" ... %>

    Then you need to replace CodeFile with CodeBehind in the Control Directive:
    <%@ Control CodeBehind="BooleanAttributeControl.ascx.vb" ... %>

    The last thing to do is generate designer classes (ControlName.designer.cs). You can do this by right-clicking the controls and selecting "Convert to Web Application". Because of the dependancies, VS might get confused during this process. If you receive an error message, please reload the project and try the conversion again.

    Let us know how this goes.

    Best wishes,
    Tsvetomir Tsonev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft R3 2016 release webinar banner
Back to Top