<?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>Search results matching tag 'updatepanel'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=updatepanel&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'updatepanel'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Validators not working in UpdatePanel</title><link>http://forums.asp.net/thread/3553191.aspx</link><pubDate>Tue, 08 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3553191</guid><dc:creator>njsokalski</dc:creator><description>&lt;p&gt;When a validator is placed inside an UpdatePanel, the validator works fine until the first successful submit. After the first submit, &amp;nbsp;the validator stops working as if it no longer existed. I have determined that the reason for this is because the JavaScript that initializes the expando attributes of the validator (such as controltovalidate, errormessage, display, and validationGroup) needs rerun (in other words, after the UpdatePanel does it&amp;#39;s updating, these attributes are no longer set). Because this script is generated completely automatically, I am not sure exactly what to do. Any ideas? Thanks.&lt;/p&gt;</description></item><item><title>Synchronous postback problem with UpdatePanels in webparts</title><link>http://forums.asp.net/thread/3552777.aspx</link><pubDate>Mon, 07 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3552777</guid><dc:creator>bodi_uk</dc:creator><description>&lt;p&gt;Hello all,&lt;/p&gt;
&lt;p&gt;I’ve been racking my brain on an AJAX UpdatePanel problem for the past few days and I could really use some help here.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Background&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;I’m developing an Enterprise application using MOSS 2007.&amp;nbsp; A fundamental requirement is that the application is modular and flexible so, for example, certain modules of the application can easily be ‘turned’ off and on.&amp;nbsp; In this sense several web parts have been created that add incremental value to the application.&amp;nbsp; For example, there is a web part to display a tree menu based on a list and another web part to render XML document in a rich AJAX UI.&lt;/p&gt;
&lt;p&gt;A typical use case would be:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The User use the menu to select a particular item to load (the menu is populated from a list in SharePoint).&lt;/li&gt;
&lt;li&gt;When the user clicks on the menu item it causes the AJAX UpdatePanel on the Main Content web part to be refreshed.&amp;nbsp; This happens by using JavaScript to invoke the Click method of a button that is contained in the UpdatePanel (alternative methods – none of which worked -: call __doPostBack).&lt;/li&gt;
&lt;li&gt;On the server-side the Update method of the UpdatePanel contained on the Additional Content web part is invoked which causes the updated content to be sent the UI along with the updated content for the Main Content web part.&amp;nbsp; This works OK.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;b&gt;The problem&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;If the user interacts with the Additional Content web part (there is a combo-box and button which cause a postback and then a model pop-up to be displayed) after the web part has been refreshed asynchronously and then uses the menu to load a different item, a full synchronous postback is performed instead of an asynchronous postback.&amp;nbsp; The full synchronous postback only occur if the user interacts with the Additional Content web part.&amp;nbsp; If the user does not interact with this web part then only Synchronous postbacks occur (saying that I do not believe the problem to be particular to that web part).&lt;/p&gt;
&lt;p&gt;So to go on a bit but any help will be greatly appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>UpdatePanel with datalist and LinkButtons</title><link>http://forums.asp.net/thread/3550055.aspx</link><pubDate>Sun, 06 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3550055</guid><dc:creator>JLW273</dc:creator><description>&lt;p&gt;I need another brain on this.&amp;nbsp;&amp;nbsp;I have the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Masterpage - holds scriptmanager and base layout&lt;/li&gt;
&lt;li&gt;MyPage.aspx - Inherits from MasterPage and Base Class that grabs initial data for the page, also has a placeholder&lt;/li&gt;
&lt;li&gt;Placeholder in MyPage.aspx loads UserControl1.ascx dynamically&lt;/li&gt;
&lt;li&gt;UserControl1.ascx - contains UserControl2.ascx&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;UserControl2.ascx has the following:&lt;/p&gt;
&lt;p&gt;&amp;lt;asp:updatepanel id=&amp;quot;up1&amp;quot; updatemode=&amp;quot;Conditional&amp;quot; childrenastriggers=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;contenttemplate&amp;gt;&lt;br /&gt;&amp;lt;asp:datalist ...&amp;gt;&lt;br /&gt;&amp;lt;itemtemplate&amp;gt;&lt;br /&gt;content...&lt;br /&gt;&amp;lt;asp:linkbutton id=&amp;quot;lnkRemove&amp;quot; runat=&amp;quot;server&amp;quot; commandname=&amp;quot;Delete&amp;quot; commandargument=&amp;#39;&lt;font size="2"&gt;&amp;lt;%#DataBinder.Eval(Container.DataItem, &amp;quot;myid&amp;quot;)%&amp;gt;&amp;#39; Remove &amp;lt;/asp:linkbutton&amp;gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;br /&gt;&amp;lt;/itemtemplate&amp;gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;br /&gt;&amp;lt;/datalist&amp;gt;&lt;br /&gt;&amp;lt;triggers&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;asp:asyncpostbacktrigger controlid=&amp;quot;lnkAddNew&amp;quot; eventname=&amp;quot;Click&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/triggers&amp;gt;&lt;br /&gt;&amp;lt;/updatepanel&amp;gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;#39; wrapped in an updatepanel so the entire page doesn&amp;#39;t&amp;nbsp;postback&lt;br /&gt;&amp;lt;asp:updatepanel id=&amp;quot;upAutoComplete&amp;quot; runat=&amp;quot;server&amp;quot; updatemode=&amp;quot;Conditional&amp;quot; childrenastriggers=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;contenttemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start Typing the Item You&amp;#39;re Looking For...&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;asp:textbox runat=&amp;quot;server&amp;quot; id=&amp;quot;txtAutoComplete&amp;quot;&amp;gt;&amp;lt;/asp:textbox&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;ajaxtoolkit:autocompleteextender id=&amp;quot;AutoCompleteExtender1&amp;quot; minimumprefixlength=&amp;quot;2&amp;quot; completionlisthighlighteditemcssclass=&amp;quot;EditLitListHover&amp;quot; completionlistcssclass=&amp;quot;EditLitList&amp;quot; completionlistitemcssclass=&amp;quot;EditLitListItem&amp;quot; targetcontrolid=&amp;quot;txtAutoCompleteLibrary&amp;quot; runat=&amp;quot;server&amp;quot; contextkey=&amp;quot;true&amp;quot; servicemethod=&amp;quot;GrabLibrary&amp;quot; servicepath=&amp;quot;literature_library.asmx&amp;quot; completioninterval=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;/ajaxtoolkit:autocompleteextender&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;asp:linkbutton runat=&amp;quot;server&amp;quot; id=&amp;quot;lnkAdd&amp;quot;&amp;gt;+&amp;lt;/asp:linkbutton&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;&amp;lt;/contenttemplate&amp;gt;&lt;br /&gt;&amp;lt;/asp:updatepanel&amp;gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;In the code behind, I add a trigger dynamically for the linkbutton in the datalist&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Dim trigger As New AsyncPostBackTrigger&lt;/p&gt;
&lt;p&gt;&amp;nbsp; trigger.ControlID = dlAssociatedLiterature.ID&lt;br /&gt;&amp;nbsp; trigger.EventName = &amp;quot;DeleteCommand&amp;quot;&lt;br /&gt;&amp;nbsp; up1.Triggers.Add(trigger)&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;The datalist updates just fine when the lnkAdd in the second update panel is clicked, however it is not updating when the link in the datalist is clicked. It doesn&amp;#39;t look like it is doing anything. I believe the problem is that the placeholder is reloading the user control on each postback and the Delete event is not getting fired. I tried changing databinding for the datalist to occur on up1.prerender, but then the add link stopped working...&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Many thanks,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;JW&lt;/p&gt;&lt;/font&gt;</description></item><item><title>UpdatePanel</title><link>http://forums.asp.net/thread/3537939.aspx</link><pubDate>Sun, 29 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3537939</guid><dc:creator>p.Jenan</dc:creator><description>&lt;p&gt;Hello.&lt;/p&gt;&lt;p&gt;&lt;span id="result_box"&gt;&lt;span&gt;I need help with UpdatePanel, I need to close the Panel1 - Button &lt;/span&gt;&lt;/span&gt;&lt;b&gt;btnClose.&lt;/b&gt;&lt;br /&gt;&lt;span id="result_box"&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Did not work.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span id="result_box"&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Please help me.&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span id="result_box"&gt;&lt;span&gt;Thank you.&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&amp;lt;asp:UpdatePanel ID=&amp;quot;UpdatePanel1&amp;quot; UpdateMode=&amp;quot;Always&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ContentTemplate&amp;gt;&lt;/b&gt; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;u&gt;&amp;lt;asp:Panel ID=&amp;quot;Panel1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id=&amp;quot;Close&amp;quot;&amp;gt;&amp;lt;asp:Button ID=&amp;quot;&lt;b&gt;btnClose&lt;/b&gt;&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Close Panel1&amp;quot; onclick=&amp;quot;btnClose_Click&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Panel ID=&amp;quot;Panel2&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i&gt;&lt;b&gt;&amp;lt;asp:UpdatePanel ID=&amp;quot;UpdatePanel7&amp;quot; UpdateMode=&amp;quot;Always&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ContentTemplate&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Label ID=&amp;quot;Label2&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Label&amp;quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Triggers&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:AsyncPostBackTrigger ControlID=&amp;quot;&lt;b&gt;btnGo&lt;/b&gt;&amp;quot; EventName=&amp;quot;Click&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Triggers&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i&gt;&lt;b&gt;&amp;lt;/asp:UpdatePanel&amp;gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:Panel&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Panel ID=&amp;quot;Panel3&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Button ID=&amp;quot;&lt;b&gt;btnGo&lt;/b&gt;&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Button&amp;quot; onclick=&amp;quot;btnGo_Click&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:Panel&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;u&gt;&amp;lt;/asp:Panel&amp;gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt; &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Triggers&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:AsyncPostBackTrigger ControlID=&amp;quot;&lt;/b&gt;&lt;b&gt;btnClose&amp;quot; EventName=&amp;quot;Click&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Triggers&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;&lt;b&gt;&amp;lt;/asp:UpdatePanel&amp;gt;&lt;/b&gt;&lt;/p&gt;</description></item><item><title>Re: Crystal Report Export and Print button not working inside UpdatePanel</title><link>http://forums.asp.net/thread/3534585.aspx</link><pubDate>Thu, 26 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3534585</guid><dc:creator>Marius09</dc:creator><description>&lt;p&gt;It works beautifull.&lt;/p&gt;
&lt;p&gt;This&amp;nbsp;way should be preferred instead of &amp;lt;Trigger&amp;gt;....&amp;lt;/Trigger&amp;gt;, simply because it covers more cases.&lt;/p&gt;
&lt;p&gt;If, as it happened to me, CrystalReportViewer1 is placed inside a TabContainer, which is&amp;nbsp;inside&amp;nbsp;an UpdatePanel, then there are problems with getting &amp;quot;ControlID&amp;quot; for setting the &amp;lt;Trigger&amp;gt; section.&lt;/p&gt;
&lt;p&gt;Instead, handling ScriptManager is more elegant and more efficient (...in my case :) ).&lt;/p&gt;
&lt;p&gt;Thanx a lot!&lt;/p&gt;</description></item><item><title>Entire Page Wrapped in UpdatePanel</title><link>http://forums.asp.net/thread/3527906.aspx</link><pubDate>Mon, 23 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3527906</guid><dc:creator>G0ggy</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I&amp;#39;ve been tasked to sanity check a page that is causing users problems in that they are submitting data via an input, but they are clicking the submit button a number of times as they cannot see anything happen when they submit their data.&lt;/p&gt;&lt;p&gt;On checking the code I can see that the author has wrapped the entire page in an UpdatePanel, including all the ObjectDataSource controls, everything.&lt;/p&gt;&lt;p&gt;Is this good practise? I thought the idea of the UpdatePanel&amp;#39;s was to create small areas of input and data output without posting the whole page back to the server.&lt;/p&gt;&lt;p&gt;If I could get your suggestions and opinions please?&lt;/p&gt;&lt;p&gt;TIA.&lt;/p&gt;</description></item><item><title>Button loses its submit property, when used in update panel and deployed in MOSS.</title><link>http://forums.asp.net/thread/3514640.aspx</link><pubDate>Mon, 16 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3514640</guid><dc:creator>Sudheendra B</dc:creator><description>&lt;p&gt;Hello all,&lt;br /&gt;&lt;br /&gt;&amp;nbsp; I am facing a problem, where, I am using a button(Linkbutton, Push, ImageButtons) in a update panel in a form. So I have placed the &lt;br /&gt;&lt;br /&gt;link button in the modal popup extender and all controls in an update panel.&lt;br /&gt;&lt;br /&gt;So when we deply the form in MOSS, then the link button loses its submit behaviour. I am not getting the exact reason for this &lt;br /&gt;&lt;br /&gt;problem, also when i removed the Update panel from the form and again placed th button in the Modal Popup extender, again it is not &lt;br /&gt;&lt;br /&gt;working and loses its submit behaviour. So could you please help me regarding this issue.&lt;br /&gt;&lt;br /&gt;Thank you&lt;/p&gt;</description></item><item><title>Scriptmanager.SetFocus set's focus but I can't type</title><link>http://forums.asp.net/thread/3479203.aspx</link><pubDate>Tue, 27 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3479203</guid><dc:creator>manonthemoon75</dc:creator><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I hope you can help me out. I have a page with an AJAX updatePanel, inside the update panel there is a PlaceHolder. The placeholder is filled with a usercontrol dynamically. The user control contains a simple webform.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the webform there is a field which postsback automatically, on the postback I call the function&lt;/p&gt;
&lt;p&gt;Scriptmanager.SetFocus(nexttextbox); to set the focus to the next control. &lt;/p&gt;
&lt;p&gt;When this is run the focus is set to the correct textbox but when I start typing no text appears although I see the cursus in the correct textbox. I also noticd that when using TAB the focus goes to internet explorer itself instead of going through the fields in the form. This happens only after the postback.&lt;/p&gt;
&lt;p&gt;I tried setting focus with javascript as well but same issue. Focus is set but can&amp;#39;t type.&lt;/p&gt;
&lt;p&gt;Can anyone help?!?!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I created a very simple example to show what happens:&lt;/p&gt;
&lt;p&gt;The page:&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; AutoEventWireup=&amp;quot;true&amp;quot; CodeBehind=&amp;quot;Default.aspx.cs&amp;quot; Inherits=&amp;quot;test_focus.Default&amp;quot; %&amp;gt;

&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;

&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; &amp;gt;
&amp;lt;head runat=&amp;quot;server&amp;quot;&amp;gt;
    &amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;
    &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
    
      function pageLoad() {
      }
    
    &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
    &amp;lt;div&amp;gt;
        &amp;lt;asp:ScriptManager ID=&amp;quot;ScriptManager1&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
        &amp;lt;asp:UpdatePanel ID=&amp;quot;upMain&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
        &amp;lt;ContentTemplate&amp;gt;
            &amp;lt;table width=&amp;quot;100%&amp;quot;&amp;gt;
                &amp;lt;tr&amp;gt;
                    &amp;lt;td&amp;gt;&amp;lt;asp:TextBox ID=&amp;quot;tb1&amp;quot; runat=&amp;quot;server&amp;quot; AutoPostBack=&amp;quot;True&amp;quot; 
                            ontextchanged=&amp;quot;tb1_TextChanged&amp;quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&amp;lt;/td&amp;gt;
                    &amp;lt;td&amp;gt;&amp;lt;asp:TextBox ID=&amp;quot;tb2&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                    &amp;lt;td&amp;gt;&amp;lt;asp:TextBox ID=&amp;quot;tb3&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&amp;lt;/td&amp;gt;
                    &amp;lt;td&amp;gt;&amp;nbsp;&amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
            &amp;lt;/table&amp;gt;
        &amp;lt;/ContentTemplate&amp;gt;
        &amp;lt;/asp:UpdatePanel&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
&lt;p&gt;The codebehind:&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace test_focus
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void tb1_TextChanged(object sender, EventArgs e)
        {
            ScriptManager.GetCurrent(Page).SetFocus(tb3);
        }
    }
}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;Now to see what happens, run the form. Type some text in the first textbox and use TAB to go to the next field. You can see that the focus is set to the third textbox. Type in some text again, so far so good. Now use your mouse and click in the first textbox where you entered some text and type some extra text then use TAB to go to the next field. Now the focus is set to the third textbox but when you try to type nothing happens.... &lt;/p&gt;
&lt;p&gt;This is what happens, anybody?????&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Dynamically Adding UpdatePanel Controls and Templates</title><link>http://forums.asp.net/thread/3478236.aspx</link><pubDate>Mon, 26 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3478236</guid><dc:creator>likwidmack</dc:creator><description>&lt;p&gt;I&amp;#39;m welcoming any advice!!&lt;/p&gt;
&lt;p&gt;I have been trying to figure out how to&amp;nbsp;properly use the updatepanels to add an unlimited number of sections that would be updated within a page that will contain other data information.&lt;/p&gt;
&lt;p&gt;I have so far I have created a template control for the updatePanel and the Placeholder that will contain the FormView/GridView controls.&amp;nbsp; &amp;nbsp;The sections will be group by section# and Title of the data table and the gridview will&amp;nbsp;be shown by step# column&amp;nbsp;of the same data&amp;nbsp;table.&amp;nbsp; The section should have the ability to add/insert step# rows incrementally in the ddGrid and able to delete&amp;nbsp;an entire section.&lt;/p&gt;
&lt;p&gt;here&amp;#39;s my questions?&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Since this control is part of a FormView template page that links all the controls by the same&amp;nbsp;parent ID key of hierarchical parent-child tables, do I need to state the&amp;nbsp;data source within this control or do I only need it for the overall page?&lt;/li&gt;
&lt;li&gt;Instead of a placeholder, is it better to programmically add the dynamic&amp;nbsp;section panels (I know will need this control at least twice within the same page) and just controls with data specific focus rather than templates?&lt;/li&gt;
&lt;li&gt;Will this work at all??&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;To you an idea of how I started:&lt;/p&gt;&lt;pre class="vb.net" name="code"&gt;&amp;lt;%@ Control Language=&amp;quot;vb&amp;quot;CodeBehind=&amp;quot;UpdatePanel.ascx.vb&amp;quot; Inherits=&amp;quot;UpdatePanel&amp;quot; %&amp;gt;

&amp;lt;asp:Panel ID=&amp;quot;Panel1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;

&amp;lt;asp:UpdatePanel ID=&amp;quot;UpdatePanel1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
&amp;lt;ContentTemplate&amp;gt;
    &amp;lt;asp:PlaceHolder runat=&amp;quot;server&amp;quot; ID=&amp;quot;SectionHolder1&amp;quot; /&amp;gt;
&amp;lt;/ContentTemplate&amp;gt;
&amp;lt;Triggers&amp;gt;
    &amp;lt;asp:AsyncPostBackTrigger ControlID=&amp;quot;btnAddSection&amp;quot; EventName=&amp;quot;Click&amp;quot; /&amp;gt;
&amp;lt;/Triggers&amp;gt;
&amp;lt;/asp:UpdatePanel&amp;gt;&amp;lt;br /&amp;gt;
    &lt;/pre&gt;&lt;pre class="vb.net" name="code"&gt;&amp;lt;asp:Button ID=&amp;quot;btnAddSection&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Add Section Panel&amp;quot; /&amp;gt; 
&amp;lt;asp:Button ID=&amp;quot;btnUpdateTbl&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Update Data Table&amp;quot; /&amp;gt;
    &lt;/pre&gt;&lt;pre class="vb.net" name="code"&gt;&amp;lt;asp:LinqDataSource ID=&amp;quot;LinqSrc&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
    &amp;lt;WhereParameters&amp;gt;
        &amp;lt;asp:DynamicQueryStringParameter Name=&amp;quot;GrpSecID&amp;quot; /&amp;gt;
    &amp;lt;/WhereParameters&amp;gt;
    &amp;lt;/asp:LinqDataSource&amp;gt;
&amp;lt;/asp:Panel&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;I have available to use is:&lt;/p&gt;
&lt;p&gt;AJAX Toolkit&lt;/p&gt;
&lt;p&gt;Dynamic Data Futures&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Using the AsyncFileUpload without actually uploading</title><link>http://forums.asp.net/thread/3465767.aspx</link><pubDate>Mon, 19 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3465767</guid><dc:creator>KarlR</dc:creator><description>&lt;p&gt;I have a somewhat odd scenario that I would like some opinions on.&amp;nbsp;&amp;nbsp;Internally, our company stores documents on various&amp;nbsp;networked&amp;nbsp;servers.&amp;nbsp; I was&amp;nbsp;tasked with creating a web app to provide links to these files, but&amp;nbsp;to leave them in their current locations.&amp;nbsp;&amp;nbsp;I&amp;nbsp;made some progress&amp;nbsp;using the&amp;nbsp;.NET FileUpload control: the user clicks &amp;quot;browse&amp;quot;, finds the file on the network,&amp;nbsp;clicks my &amp;quot;save&amp;quot; button, and I&amp;nbsp;write the file&amp;#39;s&amp;nbsp;full path to a database.&amp;nbsp; I then can easily display these links in a web page, which the users can either save or open.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I&amp;nbsp;should also mention that this all happens within an&amp;nbsp;UpdatePanel.&amp;nbsp; While I was able to make this work (using &lt;a href="http://www.codeproject.com/KB/ajax/simpleajaxupload.aspx" target="_blank"&gt;this method&lt;/a&gt;), I ran into one significant problem.&amp;nbsp; The file sizes of these files vary significantly (some files are disk images of DVD&amp;#39;s).&amp;nbsp; When I clicked my &amp;quot;save&amp;quot; button, the FileUpload control would load the whole file up into the session (which takes a &lt;u&gt;long&lt;/u&gt; time on large files) before writing my single database record.&amp;nbsp; Again, I am &lt;strong&gt;not &lt;/strong&gt;saving the actual file to a new location - just recording the file URL path.&lt;/p&gt;
&lt;p&gt;I tried to implement an UpdateProgress control to indicate to the user that a long operation was in progress, but that was disabled by my earlier method (to get the FileUpload control to work in an UpdatePanel).&lt;/p&gt;
&lt;p&gt;I thought about using the &lt;strong&gt;AsyncFileUpload&lt;/strong&gt; control, but as I understand the control (I have not actually used it yet), it would function in a similar manner (other than automatically working in an UpdatePanel).&amp;nbsp; I am hesitating to update to the new version of the Control Toolkit because of headaches I have experienced in the past the last time I did so.&amp;nbsp; Before I upgrade, I wanted to get a opinion or two of what I am doing.&amp;nbsp; Should I continue doing what I am doing, or is there a simpler way to allow users to select files from a web page?&lt;/p&gt;
&lt;p&gt;Thanks for reading my rather lengthy post &amp;amp; I would appreciate any suggestions you might have!&lt;/p&gt;</description></item></channel></rss>