This is a migrated thread and some comments may be shown as answers.

RadWindow open page with custom controls (ascx) issue

0 Answers 76 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jakub Gutkowski
Top achievements
Rank 1
Jakub Gutkowski asked on 13 Dec 2011, 07:17 PM
NEVER-MIND, it worked, my fault
//
Hi,

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

Result:
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" %>
 
<p>
Dummy Control
</p>
 
<p>
To test RadWindow
</p>
 
<p>
    <asp:Button runat="server" ID="test" OnClick="Click" />
</p>

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>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 
<p>
 
<uc:DemoDummyControl runat="server" />
 
</p>
 
</asp:Content>

Question:

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.

Cheers,
   Jakub G

thanks

No answers yet. Maybe you can help?

Tags
Window
Asked by
Jakub Gutkowski
Top achievements
Rank 1
Share this question
or