RadWindow open page with custom controls (ascx) issue

1 posts, 0 answers
  1. Jakub Gutkowski
    Jakub  Gutkowski  avatar
    5 posts
    Member since:
    Nov 2008

    Posted 13 Dec 2011 Link to this post

    NEVER-MIND, it worked, my fault

    Here is my scenario:
    1. I've created two custom controls (ascx)
    2. I've created custom aspx page to host my two custom controls
    3. On main page, I've created RadWindow that is pointing to page created in step 2 and I've bind event to open a window

    RadWindow does not shows my two custom controls.

    Example code for custom control:

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DemoDummyControl.ascx.cs" Inherits="X.DemoDummyControl" %>
    Dummy Control
    To test RadWindow
        <asp:Button runat="server" ID="test" OnClick="Click" />

    page to show control:

    <%@ Page Title="" Language="C#" MasterPageFile="~/Popup.Master" AutoEventWireup="true" CodeBehind="demo.aspx.cs" Inherits="X.demo" %>
    <%@ Register Src="~/DemoDummyControl.ascx" TagName="Dummy" TagPrefix="uc" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="Scripts" runat="server">
    <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <uc:DemoDummyControl runat="server" />


    Is there a way to display ascx controls on page that will be showed in radWindow? And is there a way to do it globally without truly thinking about, as I need to host more then 10 custom controls on that page and doing that manually is just a waste of time.

       Jakub G


Back to Top