Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

how can i get control inside the user control from the master page or page ?

$
0
0

hi all

1. i ahve an master page called "Site2.Master".

2. i have an user control called "US1".

3. i have an page called "webform2.aspx" and it use the master page "Site2.Master" and i have add the user control "US1" on this page.

my user control HTML is:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="US1.ascx.cs" Inherits="WebApplication3.WebUserControl1" %><%@ Register Assembly="DevExpress.Web.ASPxHtmlEditor.v13.1, Version=13.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxHtmlEditor" TagPrefix="dx" %><dx:ASPxHtmlEditor ID="HtmlEditor" runat="server" EnableCallbackAnimation="True" Theme="MetropolisBlue" Width="100%"><StylesDialogForm><LoadingPanel HorizontalAlign="Center" VerticalAlign="Middle"></LoadingPanel></StylesDialogForm><StylesFileManager><LoadingPanel HorizontalAlign="Center" VerticalAlign="Middle"></LoadingPanel></StylesFileManager><SettingsImageUpload UploadImageFolder="~/assets/"></SettingsImageUpload><SettingsImageSelector Enabled="True"></SettingsImageSelector><Border BorderColor="#FF9900" BorderStyle="Solid" BorderWidth="2px" /></dx:ASPxHtmlEditor>

my page HTML is:

<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.Master" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication3.WebForm2" %><%@ Register Src="US1.ascx" TagName="WebUserControl1" TagPrefix="uc1" %><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"><uc1:WebUserControl1 ID="WebUserControl12" runat="server" /></asp:Content>


now i want to insert text from my page "webform2.aspx" to control ASPxHtmlEditor with ID = "HtmlEditor" that control is in the user control - so how can i do it ?


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>