Site Map | About Us | Contact Us  
Welcome Guest Search | Active Topics | Log In | Register

access to a asp control in EditorDialogContent Options
karn
Posted: Monday, February 08, 2010 8:15:09 AM
Rank: Advanced Member
Groups: Member

Joined: 10/20/2008
Posts: 39
hello,

i want make a custom dialog insert link for the editor so with the example i do this :

Quote:

<DialogContents>
<eo:EditorDialogContent CommandName="InsertOrEditLink">
<ContentTemplate>
<table cellSpacing="3" cellPadding="1" border="0">
<tr>


<td>Text:</td>
<td><asp:DropDownList ID="listGloss" runat="server" ></asp:DropDownList></td>

</tr>

.....


It is work, but i can't access to the controle "istGloss" in behind code, any issue? or i must use javascript for add item?

Thanks!
eo_support
Posted: Monday, February 08, 2010 9:39:06 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 8,757
Hi,

You can not access it directly because it is not a direct child of the page. I believe there is a way but a very long way ---- You will need to access the Editor's DialogContents property first, then get the corresponding EditorDialogContent object, from that object you can get the Dialog object, then call FindControl on the Dialog's ContentContainer property.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.