<?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: Client-side update request for UpdatePanel, can it be done?</title><link>http://forums.asp.net/thread/1709500.aspx</link><pubDate>Tue, 15 May 2007 06:34:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1709500</guid><dc:creator>rx78gp03</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1709500.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1709500</wfw:commentRss><description>&lt;p&gt;in the same manner, is it possible to cause an updatePanel to update if this script is not inside the update panel, for example:&lt;/p&gt;
&lt;p&gt;&amp;lt;asp:updatePanel ID="updatePanel1" runat="server"&amp;gt;&lt;br /&gt;&amp;lt;contentTemplate&amp;gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;/contentTemplate&amp;gt;&lt;br /&gt;&amp;lt;/asp:updatePanel&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;asp:Panel runat="server" ID="Panel1"&amp;gt;&lt;br /&gt;&amp;lt;a onclick="document.form1.submit();; return false;" title="Close"&amp;gt;X&amp;lt;/a&amp;gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;/asp:Panel&amp;gt;&lt;/p&gt;
&lt;p&gt;basically what's inside the contentTemplate are search results using dataList, there are some Item_bound items that needs to be refreshed after some events has been&amp;nbsp;fired in the Panel.&lt;/p&gt;
&lt;p&gt;possible?&lt;/p&gt;</description></item><item><title>Re: Client-side update request for UpdatePanel, can it be done?</title><link>http://forums.asp.net/thread/1693133.aspx</link><pubDate>Thu, 03 May 2007 12:52:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1693133</guid><dc:creator>Mikael Sandberg</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1693133.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1693133</wfw:commentRss><description>&lt;p&gt;Hey&lt;/p&gt;
&lt;p&gt;I have previously solved the same problem by using a timer with a interval of 10 msec and then disabling it after first roundtrip. &lt;/p&gt;
&lt;p&gt;The above solution does not trigger the updateprogress. Can I somehow trigger the updateprogress the same way without using a timer?&lt;/p&gt;</description></item><item><title>Re: Client-side update request for UpdatePanel, can it be done?</title><link>http://forums.asp.net/thread/1692357.aspx</link><pubDate>Thu, 03 May 2007 01:54:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1692357</guid><dc:creator>offwhite</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1692357.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1692357</wfw:commentRss><description>&lt;p&gt;I suppose I could handle the event with the generic RaisePostBack event and key the action on the parameter. What my page is doing is using an asmx Web Service to carry out an action and then I need the databound controls to be refreshed. I explicitly call the data binding methods in the action I set up with the LinkButton. I do like your suggestion.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Client-side update request for UpdatePanel, can it be done?</title><link>http://forums.asp.net/thread/1692339.aspx</link><pubDate>Thu, 03 May 2007 01:32:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1692339</guid><dc:creator>glassware</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1692339.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1692339</wfw:commentRss><description>&lt;p&gt;There's an easier way to do this.&amp;nbsp; Let's say you have an UpdatePanel control called MyUpdatePanel.&amp;nbsp; Now, an UpdatePanel control has no events, but the client web browser doesn't know that.&amp;nbsp; You can pretend that an event fired using __doPostBack as follows:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;pre class=coloredcode&gt;__doPostBack(&lt;span class=st&gt;'&amp;lt;%=MyUpdatePanel.ClientID%&amp;gt;'&lt;/span&gt;,&lt;span class=st&gt;'customPostback'&lt;/span&gt;);&lt;/pre&gt;&amp;nbsp;The client-side Javascript interface will happily generate a postback for you and tell the server that the 'customPostback' event fired.&amp;nbsp; The server will skim through its list of events and notice that there is no handler for the 'customPostback' event.&amp;nbsp; As a result, no events will fire, but the UpdatePanel will refresh.&lt;/p&gt;</description></item><item><title>Re: Client-side update request for UpdatePanel, can it be done?</title><link>http://forums.asp.net/thread/1690063.aspx</link><pubDate>Tue, 01 May 2007 17:27:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1690063</guid><dc:creator>offwhite</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1690063.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1690063</wfw:commentRss><description>&lt;p&gt;I found a way to make this work. I added a LinkButton to the page inside of the UpdatePanel. I just wanted to access the href value which holds onto the Javascript which raises the click event. I specifically left the text of the link empty so that it is not displayed. The following Javascript causes the PostBack event to be triggered.&lt;/p&gt;

&lt;pre class="coloredcode"&gt;function updateDisplay() {
    var link = document.getElementById(&lt;span class="st"&gt;'&amp;lt;%= lbUpdate.ClientID %&amp;gt;'&lt;/span&gt;);
    var script = link.href.substring(link.href.indexOf(&lt;span class="st"&gt;":"&lt;/span&gt;)+1)
    eval(script);
}
&lt;/pre&gt;

&lt;p&gt;This code gets the LinkButton element and gets the substring from the href for just the script code because it prefixes it with "Javascript:" which cannot be placed in the eval statement which runs the script. This works well. I still would like something a bit more directly supported by the framework but so far I cannot find documentation on doing this.&lt;/p&gt;</description></item><item><title>Client-side update request for UpdatePanel, can it be done?</title><link>http://forums.asp.net/thread/1688873.aspx</link><pubDate>Mon, 30 Apr 2007 22:49:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1688873</guid><dc:creator>offwhite</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1688873.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1688873</wfw:commentRss><description>&lt;p&gt;I see everywhere the the triggers attached to PostBack events cause the UpdatePanel to be updated, but what if i I want the UpdatePanel to just do a PostBack and get an update from the server? How could I use the client-side to trigger the update?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>