﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebDesktop - changing content template in webdialogbox</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/changing-content-template-in-webdialogbox/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>changing content template in webdialogbox</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/changing-content-template-in-webdialogbox/</link><pubDate>Wed, 12 Jan 2011 21:46:47 GMT</pubDate><dc:creator>interfung</dc:creator><category>WebdialogBox</category><category>content</category><category>contenttemplate</category><description>&lt;p&gt;Hello Martin,&lt;/p&gt;
&lt;p&gt;Thanks, the code work as I expected!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Fung&lt;/p&gt;</description></item><item><title>changing content template in webdialogbox</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/changing-content-template-in-webdialogbox/</link><pubDate>Wed, 12 Jan 2011 15:12:20 GMT</pubDate><dc:creator>MarTin</dc:creator><category>WebdialogBox</category><category>content</category><category>contenttemplate</category><description>&lt;p&gt;Hello Fung,&lt;/p&gt;
&lt;p&gt;You can use &lt;strong&gt;FindControl() &lt;/strong&gt;method to retrieve the control inside ContentTemplate of WebDialogBox.&lt;/p&gt;&lt;pre&gt;function DoClosed()
{
   var dlgBox = ISGetObject("WebDialogBox1");
   var element = dlgBox.FindControl("WebDialogBox1_ViewContentTemplate_Label1");
   alert(element.innerText);
}&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;WebDialogBox1_ViewContentTemplate_Label1 &lt;/strong&gt;is the ASP.NET Label ID that I obtained using Developer Tools.&lt;/p&gt;
&lt;p&gt;I have attached a sample file for your reference.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>changing content template in webdialogbox</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/changing-content-template-in-webdialogbox/</link><pubDate>Wed, 12 Jan 2011 05:30:48 GMT</pubDate><dc:creator>interfung</dc:creator><category>WebdialogBox</category><category>content</category><category>contenttemplate</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am trying to retrieve a label ('lblTesting') from the web dialog box (content template) using getElementById. But I get nothing. Is there any way to retreive a control inside the content template of a dialog box?&lt;/p&gt;&lt;pre&gt;ASPX Code:
    &amp;lt;ISWebDesktop:WebDialogBox ID="WebDialogBox1" runat="server" Height="150px" Width="400px" ShowOnLoad="false"&amp;gt;
    &amp;lt;ContentTemplate&amp;gt;
    &amp;lt;asp:Label ID="lblTesting" runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;    
    &amp;lt;/ContentTemplate&amp;gt;
    &amp;lt;CommandButtons&amp;gt;
    &amp;lt;ISWebDesktop:WebDialogBoxButton Type="OK" Text= "Close" Name= "X" /&amp;gt;
    &amp;lt;/CommandButtons&amp;gt;
    &amp;lt;/ISWebDesktop:WebDialogBox&amp;gt;&lt;/pre&gt;
&lt;p&gt;Thanks and Regards,&lt;/p&gt;
&lt;p&gt;Fung&lt;/p&gt;</description></item></channel></rss>