<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET AJAX UI</title><link>http://forums.asp.net/1008.aspx</link><description>Here you can discuss UI-related issues with AJAX such as controls and client-side functionality including Silverlight controls for ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Create UpdateProgress programmatically</title><link>http://forums.asp.net/thread/3544948.aspx</link><pubDate>Thu, 03 Dec 2009 04:18:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3544948</guid><dc:creator>chetan.sarode</dc:creator><author>chetan.sarode</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3544948.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=3544948</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://www.geekdaily.net/2008/02/08/creating-an-updateprogress-programmatically/"&gt;http://www.geekdaily.net/2008/02/08/creating-an-updateprogress-programmatically/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.dotnetkicks.com/ajax/Creating_an_UpdateProgress_programmatically"&gt;http://www.dotnetkicks.com/ajax/Creating_an_UpdateProgress_programmatically&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Create UpdateProgress programmatically</title><link>http://forums.asp.net/thread/3543927.aspx</link><pubDate>Wed, 02 Dec 2009 14:50:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3543927</guid><dc:creator>neil121183</dc:creator><author>neil121183</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3543927.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=3543927</wfw:commentRss><description>&lt;p&gt;Thanks DisturbedBuddha, the MyTemplate class is what helped me in my case.&lt;/p&gt;&lt;p&gt;Few notes if someone else sees this post:&lt;/p&gt;&lt;p&gt;1) This seems to work fine in Page_Load also (.NET 3.5)&lt;br /&gt;2) If you are having any problems with the updateProgress panel working, make sure you set its &amp;#39;displayAfter&amp;#39; property to 0 so that at least you will see it if it is working! Also, add a sleep in the page_load - system.threading.thread.sleep(200). This 2 seconds will give the panel enough time to appear properly.&lt;/p&gt;&lt;p&gt;Obviously take out the sleep once you&amp;#39;ve got it working!&lt;/p&gt;&lt;p&gt;Thanks.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Create UpdateProgress programmatically</title><link>http://forums.asp.net/thread/2160090.aspx</link><pubDate>Thu, 07 Feb 2008 20:38:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2160090</guid><dc:creator>jbezanson</dc:creator><author>jbezanson</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2160090.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2160090</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;This works great in a WebForm. Thanks so much. I will be trying it out in a Composite Control next.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;What is your blog url? I will be waiting to read that post. Thanks again!&amp;nbsp; ***NVM I found the url in your sig.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Create UpdateProgress programmatically</title><link>http://forums.asp.net/thread/2159880.aspx</link><pubDate>Thu, 07 Feb 2008 19:09:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2159880</guid><dc:creator>jbezanson</dc:creator><author>jbezanson</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2159880.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2159880</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Awesome, I&amp;#39;ll be sure to try this and let you know right away how it works out.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Create UpdateProgress programmatically</title><link>http://forums.asp.net/thread/2159766.aspx</link><pubDate>Thu, 07 Feb 2008 18:23:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2159766</guid><dc:creator>DisturbedBuddha</dc:creator><author>DisturbedBuddha</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2159766.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2159766</wfw:commentRss><description>&lt;p&gt;Okay, here&amp;#39;s how you do it, but if you want an explanation why, you&amp;#39;ll have to wait until I get around to blogging this (hopefully tonight! &lt;img src="http://forums.asp.net/emoticons/emotion-1.gif" alt="Smile" /&gt;).&amp;nbsp;&lt;pre class="coloredcode"&gt;Partial &lt;span class="kwd"&gt;Class&lt;/span&gt; Default9
    &lt;span class="kwd"&gt;Inherits&lt;/span&gt; System.Web.UI.Page

    &lt;span class="kwd"&gt;Protected Sub&lt;/span&gt; Page_PreRender(&lt;span class="kwd"&gt;ByVal&lt;/span&gt; sender &lt;span class="kwd"&gt;As Object&lt;/span&gt;, &lt;span class="kwd"&gt;ByVal&lt;/span&gt; e &lt;span class="kwd"&gt;As&lt;/span&gt; System.EventArgs) &lt;span class="kwd"&gt;Handles Me&lt;/span&gt;.PreRender
        &lt;span class="cmt"&gt;&amp;#39; !!!THIS MUST BE DONE IN THE PRERENDER EVENT!!!
        &amp;#39; Create the label.
&lt;/span&gt;        &lt;span class="kwd"&gt;Dim&lt;/span&gt; lab &lt;span class="kwd"&gt;As New&lt;/span&gt; Label
        lab.ID = &lt;span class="st"&gt;&amp;quot;Label1&amp;quot;&lt;/span&gt;
        lab.Text = &lt;span class="st"&gt;&amp;quot;Please wait...&amp;quot;&lt;/span&gt;

        &lt;span class="cmt"&gt;&amp;#39; Create the UpdateProgress.
&lt;/span&gt;        &lt;span class="kwd"&gt;Dim&lt;/span&gt; uprog &lt;span class="kwd"&gt;As New&lt;/span&gt; UpdateProgress
        uprog.AssociatedUpdatePanelID = UpdatePanel1.ClientID
        uprog.ID = &lt;span class="st"&gt;&amp;quot;UpdateProgress1&amp;quot;&lt;/span&gt;

        &lt;span class="cmt"&gt;&amp;#39; Create the ProgressTemplate based on a class the implements ITemplate.
&lt;/span&gt;        &lt;span class="kwd"&gt;Dim&lt;/span&gt; value &lt;span class="kwd"&gt;As New&lt;/span&gt; MyTemplate
        uprog.ProgressTemplate = value

        &lt;span class="cmt"&gt;&amp;#39; Add the Label to the UpdateProgress and the UpdateProgress to the form.
&lt;/span&gt;        uprog.Controls.Add(lab)
        Form.Controls.Add(uprog)
    &lt;span class="kwd"&gt;End Sub

End Class&lt;/span&gt;

&lt;span class="cmt"&gt;&amp;#39; THIS GOES IN YOUR PAGES CODE BEHIND ALSO!
&lt;/span&gt;&lt;span class="kwd"&gt;Public Class&lt;/span&gt; MyTemplate : &lt;span class="kwd"&gt;Implements&lt;/span&gt; ITemplate

    &lt;span class="kwd"&gt;Public Sub&lt;/span&gt; InstantiateIn(&lt;span class="kwd"&gt;ByVal&lt;/span&gt; container &lt;span class="kwd"&gt;As&lt;/span&gt; Control) &lt;span class="kwd"&gt;Implements&lt;/span&gt; Web.UI.ITemplate.InstantiateIn
        &lt;span class="cmt"&gt;&amp;#39; This is empty.
&lt;/span&gt;    &lt;span class="kwd"&gt;End Sub

End Class&lt;/span&gt;&lt;/pre&gt;&amp;nbsp;</description></item><item><title>Re: Create UpdateProgress programmatically</title><link>http://forums.asp.net/thread/2159256.aspx</link><pubDate>Thu, 07 Feb 2008 15:00:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2159256</guid><dc:creator>jbezanson</dc:creator><author>jbezanson</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2159256.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2159256</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks but I am creating the UpdateProgress completely in the CodeBehind and adding it to form1.Controls. I am not trying to access it from CodeBehind. I am creating it.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;UpdateProgress1 = &lt;span class="kwd"&gt;new&lt;/span&gt; UpdateProgress();&lt;br /&gt;&lt;b id="2"&gt;2    &lt;/b&gt;UpdateProgress1.ID = &lt;span class="st"&gt;&amp;quot;UpdateProgress1&amp;quot;&lt;/span&gt;;&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;How do I add the ProgressTemplate?&lt;/p&gt;&lt;p&gt;I tried this but got an error saying that the ProgressTemplate is required.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;UpdateProgress1.Controls.Add(&lt;span class="kwd"&gt;new&lt;/span&gt; LiteralControl(&lt;span class="st"&gt;&amp;quot;Loading...&amp;quot;&lt;/span&gt;));&lt;br /&gt;&lt;/pre&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;</description></item><item><title>Re: Create UpdateProgress programmatically</title><link>http://forums.asp.net/thread/2159178.aspx</link><pubDate>Thu, 07 Feb 2008 14:33:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2159178</guid><dc:creator>DisturbedBuddha</dc:creator><author>DisturbedBuddha</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2159178.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2159178</wfw:commentRss><description>&lt;p&gt;The UpdateProgress is not accessible until very late in the page&amp;#39;s lifecycle.&amp;nbsp; It cannot be accessed during Page_Load, _Init, _PreRender, and must be accessed before Page_Unload.&amp;nbsp; I&amp;#39;ve only found it accessible in the Page_PreRenderComplete event.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Create UpdateProgress programmatically</title><link>http://forums.asp.net/thread/2159140.aspx</link><pubDate>Thu, 07 Feb 2008 14:12:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2159140</guid><dc:creator>jbezanson</dc:creator><author>jbezanson</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2159140.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2159140</wfw:commentRss><description>&lt;p&gt;How can I create an UpdateProgress in the codebehind? I need to do this because I would like to wrap it in a CompositeControl.&lt;/p&gt;&lt;p&gt;I tried adding the content to the Controls collection of the UpdateProgress but got an error saying it needed to have a ProgressTemplate. How can I add that?&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>