ASP.NET AJAX + Ajax Control Toolkithttp://forums.asp.net/1022.aspx/1?ASP+NET+AJAX+Ajax+Control+ToolkitASP.NET Ajax and the Ajax Control Toolkit including the Accordion, Calendar, Modal Popup, and moreWed, 22 May 2013 18:03:27 -0400urn:uuid:00000000-0000-0000-0000-000000001022urn:uuid:00000000-0000-0000-0000-000005309646http://forums.asp.net/p/1884400/5309646.aspx/1?IE+10+Issue+SCRIPT5022+Sys+ArgumentOutOfRangeException+Value+must+be+an+integer+Parameter+name+xIE 10 Issue: SCRIPT5022: Sys.ArgumentOutOfRangeException: Value must be an integer. Parameter name: x <p>My asp.net site is running well on IE6, IE7, IE8, IE9, Chrome, Safari, Firefox and Opera. But it is not working in IE10.<br> <br> If I click on the Grid in the site it returns the following error:<br> <br> SCRIPT5022: Sys.ArgumentOutOfRangeException: Value must be an integer.<br> Parameter name: x<br> Actual value was 956.5.<br> ScriptResource.axd, line 2810 character 12<br> <br> Followed all the possible solutions found on the google but sill problem exists. Followed solutions are<br> <br> http://stackoverflow.com/questions/14046857/javascript-error-in-every-page-on-ie-10<br> http://social.msdn.microsoft.com/Forums/en/netfxjscript/thread/e8cb8041-2e23-4a20-9c2e-825832b8f3f0</p> <p><br> Can anyone please help me to resolve this?<br> <br> Thanks in advance!<br> <br> </p> <p></p> 2013-02-21T09:44:57-05:002013-02-21T09:44:57.187-05:00urn:uuid:00000000-0000-0000-0000-000004153802http://forums.asp.net/p/1619854/4153802.aspx/1?AjaxControlToolkit+4+0+VS+2010+No+Source+Available+errorAjaxControlToolkit 4.0 VS 2010 No Source Available error <p>I coverted a VS 2008 project to VS 2010.&nbsp; I then downloaded and installed the AjaxControlToolkit for .net 4.&nbsp; When I run in debug mode I get an the following error.&nbsp; Any suggestions would be appreciated.&nbsp; The code worked in VS 2008 .net 3.5.&nbsp; <br> </p> <p><br> </p> <p><b>No Source Available</b></p> <p>There is no source code available for the current location.</p> <p><br> </p> <p><b>Call stack location:</b></p> <p style="padding-left:30px">AjaxControlToolKitDLL!AjaxControlToolkit.ToolkitScriptManager.OnLoad(System.EventArgs e) Line157</p> <p><b>Source file information:</b><br> </p> <p style="padding-left:30px">Locating source for 'd:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs'. Checksum: MD5 {c1 d2 e2 8c cd 4b 65 11 35 53 7f f5 e3 3b 76 58}</p> <p style="padding-left:30px">The file 'd:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs' does not exist.</p> <p style="padding-left:30px">Looking in script documents for 'd:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs'...</p> <p style="padding-left:30px">Looking in the projects for 'd:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs'.</p> <p style="padding-left:30px">The file was not found in a project.</p> <p style="padding-left:30px">Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\crt\src\'...</p> <p style="padding-left:30px">Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\src\mfc\'...</p> <p style="padding-left:30px">Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\src\atl\'...</p> <p style="padding-left:30px">Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\'...</p> <p style="padding-left:30px">Looking in directory 'C:\'...</p> <p style="padding-left:30px">The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: d:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs.</p> <p style="padding-left:30px">The debugger could not locate the source file 'd:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs'.</p> 2010-11-03T21:47:49-04:002010-11-03T21:47:49.643-04:00urn:uuid:00000000-0000-0000-0000-000005402671http://forums.asp.net/p/1908907/5402671.aspx/1?save+archives+in+database+using+ajax+file+uploadsave archives in database using ajax file upload <p>how save archives in database using ajax file upload ? &nbsp;thanks!</p> 2013-05-22T21:31:48-04:002013-05-22T21:31:48.57-04:00urn:uuid:00000000-0000-0000-0000-000005402614http://forums.asp.net/p/1908889/5402614.aspx/1?How+to+add+a+TabContainer+inside+a+TabPanel+of+another+TabContainerHow to add a TabContainer inside a TabPanel of another TabContainer <p>Basically what I need is I have a TabContainer with four TabPanels, one of them might need to hold another sub-TabContainer with two TabPanbels.</p> <p>Is it possible? Can anyone give me an example?</p> <p>Thank you.</p> 2013-05-22T19:29:03-04:002013-05-22T19:29:03.677-04:00urn:uuid:00000000-0000-0000-0000-000005402571http://forums.asp.net/p/1908877/5402571.aspx/1?Updating+slider+positionUpdating slider position <p>The following snippet demonstrates a slider extender and link button I have that I want to work together:</p> <p>&lt;asp:ScriptManager ID=&quot;smTestSlider&quot; runat=&quot;server&quot;&gt;&lt;/asp:ScriptManager&gt;</p> <p>&lt;script type=&quot;text/javascript&quot;&gt;<br> var totalNumChapters = 100;<br> <br> function navNextChapter() {<br> var txtChapter = document.getElementById(&quot;&lt;%=txtChapter.ClientID%&gt;&quot;);<br> var chKey = parseInt(txtChapter.value);</p> <p>if (chKey &lt; totalNumChapters) {<br> txtChapter.value = (chKey &#43; 1).toString();<br> }</p> <p>return false;<br> }<br> &lt;/script&gt;</p> <p>&lt;asp:TextBox ID=&quot;txtChapter&quot; runat=&quot;server&quot; /&gt;<br> &lt;ajaxToolkit:SliderExtender ID=&quot;seChapter&quot; runat=&quot;server&quot; EnableHandleAnimation=&quot;true&quot; Length=&quot;280&quot; Maximum=&quot;100&quot; Minimum=&quot;1&quot; RaiseChangeOnlyOnMouseUp=&quot;false&quot; TargetControlID=&quot;txtChapter&quot; /&gt;</p> <p>&lt;asp:LinkButton ID=&quot;lnkNextChapter&quot; runat=&quot;server&quot;&gt;<br> &lt;asp:Image ID=&quot;imgNextChapter&quot; runat=&quot;server&quot; AlternateText=&quot;Next chapter&quot; ToolTip=&quot;Next chapter&quot; /&gt;<br> &lt;/asp:LinkButton&gt;</p> <p><br> Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load</p> <p>Dim CurrScriptMgr As ScriptManager = ScriptManager.GetCurrent(Me.Page)<br> CurrScriptMgr.RegisterAsyncPostBackControl(txtChapter)<br> <br> lnkNextChapter.Attributes.Add(&quot;onclick&quot;, &quot;return navNextChapter();&quot;)<br> <br> txtChapter.Text = &quot;1&quot;</p> <p>End Sub</p> <p>It's working as I wish except that the position of the slider is not updated or changed when I click on the link button. The value of txtChapter is changed properly by the JavaScript function, but the slider remains unchanged. How do I update the position of the slider when the text value changes? I thought it should happen automatically.</p> 2013-05-22T18:25:16-04:002013-05-22T18:25:16.317-04:00urn:uuid:00000000-0000-0000-0000-000005401213http://forums.asp.net/p/1908538/5401213.aspx/1?which+calendar+control+which calendar control? <p>Hi,</p> <p>I would like to use a calendar control, which should have the following properties:</p> <p>- always visible (as a normal control)</p> <p>- I can style all the usual elements</p> <p>- multiple selecting (highlighting) of dates is possible</p> <p>- and in the meantime the control doesn't make postback</p> <p>- based on database values, I can select days on the pageload event</p> <p>Which control would you propose?</p> <p>Can I do the above with a simply asp.net calendar control?</p> 2013-05-21T15:53:16-04:002013-05-21T15:53:16.96-04:00urn:uuid:00000000-0000-0000-0000-000005402324http://forums.asp.net/p/1908818/5402324.aspx/1?Update+Panel+text+boxUpdate Panel + text box <p>I have been using ASP.NET for some time but I am new to AJAX</p> <p>So I am trying to updtae the content of TextBox2 when the user changes TextBox1 and when it loses focus, nothing fancy,&nbsp;</p> <p>To avoid a whole page postback I am using Update Panel</p> <p>When both textboxes are in the same update panel I am able to update the content of the second box (since both are refreshed by the autopost back event)</p> <p>Interestingly, when the TextBox2 is not in the same UpdatePanel this is not happening because TextBox2 is not refereshed</p> <p>So if TextBox2 is not in the same update panel, how do you update the content?</p> <p>I guess one solution woud be wraping TextBox2 in another updatepanel and invoking some event to update that second panel? How do you do that or is there another solution?</p> <p></p> <p>Thx</p> 2013-05-22T14:25:01-04:002013-05-22T14:25:01.333-04:00urn:uuid:00000000-0000-0000-0000-000005401146http://forums.asp.net/p/1908521/5401146.aspx/1?Stack+Overflow+at+line+0Stack Overflow at line: 0 <p>Don't know if this is the right place to post this or not. I am using IE8, VS2008, Windows XP SP3. I keep getting this error &quot;Stack Overflow at line: 0&quot; When I debug the page I get all these &quot;Microsoft JScript runtime error:&quot; I don't know if its a AJAX installation issue, or a IE8 issue. I followed the instructions on the AJAX website to install AJAX. And I've tried a lot of the suggestions I've seen on the web, but none seem to work. Any help is appreciated.</p> 2013-05-21T14:30:30-04:002013-05-21T14:30:30.767-04:00urn:uuid:00000000-0000-0000-0000-000005401384http://forums.asp.net/p/1908586/5401384.aspx/1?MaskedEditExtender+DateTime+not+workingMaskedEditExtender DateTime not working <p>I am having a problem with getting the maskededitextender to work on a gridview when editing. the insert part works just fine.&nbsp; It is throwing a javascript error. &quot;Microsoft JScript runtime error: 'undefined' is null or not an object&quot; if i ignore through the error it displays the time correctly but the time blanks out. if i just continue the entire text box clears out and only shows the mask I inserted the code below</p> <p>&lt;asp:TemplateField HeaderText=&quot;Close Time&quot;&gt;</p> <p>&lt;EditItemTemplate&gt;</p> <p>&lt;asp:TextBox ID=&quot;txtCloseTime&quot; Width=&quot;90%&quot; runat=&quot;server&quot; Text='&lt;%# Eval(&quot;closetime&quot;) %&gt;' Height=&quot;16px&quot;&gt;&lt;/asp:TextBox&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p> <p>&lt;asp:MaskedEditExtender ID=&quot;txtCloseTime_MaskedEditExtender&quot; CultureAMPMPlaceholder=&quot;&quot; CultureCurrencySymbolPlaceholder=&quot;&quot; CultureDateFormat=&quot;&quot; CultureDatePlaceholder=&quot;&quot; CultureDecimalPlaceholder=&quot;&quot; CultureThousandsPlaceholder=&quot;&quot; CultureTimePlaceholder=&quot;&quot; Enabled=&quot;True&quot; TargetControlID=&quot;txtCloseTime&quot; InputDirection=&quot;RightToLeft&quot; ClearMaskOnLostFocus=&quot;true&quot; Mask=&quot;99/99/9999 99:99&quot; AutoComplete=&quot;true&quot; MaskType=&quot;DateTime&quot; AcceptAMPM=&quot;true&quot; runat=&quot;server&quot;&gt;&lt;/asp:MaskedEditExtender&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p> <p>&lt;asp:MaskedEditValidator ID=&quot;txtCloseTime_MaskedEditValidator&quot; runat=&quot;server&quot;&nbsp;ControlExtender=&quot;txtCloseTime_MaskedEditExtender&quot; ControlToValidate=&quot;txtCloseTime&quot; IsValidEmpty=&quot;False&quot; EmptyValueMessage=&quot;*required &quot; InvalidValueMessage=&quot;Close time is invalid&quot; ValidationGroup=&quot;groupone&quot; Font-Size=&quot;XX-Small&quot;/&gt;</p> <p>&lt;/EditItemTemplate&gt;&nbsp;</p> <p>&lt;FooterTemplate&gt;</p> <p>&lt;asp:TextBox ID=&quot;txtNewCloseTime&quot; Width=&quot;80%&quot; runat=&quot;server&quot; Height=&quot;16px&quot;&gt;&lt;/asp:TextBox&gt;</p> <p>&lt;asp:MaskedEditExtender ID=&quot;txtNewCloseTime_MaskedEditExtender&quot; runat=&quot;server&quot; CultureAMPMPlaceholder=&quot;&quot; CultureCurrencySymbolPlaceholder=&quot;&quot; CultureDateFormat=&quot;&quot; CultureDatePlaceholder=&quot;&quot; CultureDecimalPlaceholder=&quot;&quot; CultureThousandsPlaceholder=&quot;&quot; CultureTimePlaceholder=&quot;&quot; Enabled=&quot;True&quot; TargetControlID=&quot;txtNewCloseTime&quot; InputDirection=&quot;RightToLeft&quot; Mask=&quot;99/99/9999 99:99&quot; AutoComplete=&quot;true&quot; MaskType=&quot;DateTime&quot; AcceptAMPM=&quot;true&quot;&gt; &lt;/asp:MaskedEditExtender&gt;</p> <p>&lt;asp:MaskedEditValidator ID=&quot;txtNewCloseTime_MaskedEditValidator&quot; runat=&quot;server&quot; ControlExtender=&quot;txtNewCloseTime_MaskedEditExtender&quot; ControlToValidate=&quot;txtNewCloseTime&quot; IsValidEmpty=&quot;False&quot; EmptyValueMessage=&quot;*required &quot; InvalidValueMessage=&quot;Close time is invalid&quot; ValidationGroup=&quot;grouptwo&quot; Font-Size=&quot;XX-Small&quot;/&gt;</p> <p>&lt;/FooterTemplate&gt;</p> <p>&lt;ItemTemplate&gt;</p> <p>&nbsp;&lt;asp:Label ID=&quot;lblCloseTime&quot; Width=&quot;60%&quot; runat=&quot;server&quot; Text='&lt;%# Bind(&quot;closetime&quot;) %&gt;'&gt; &lt;/asp:Label&gt;</p> <p>&lt;/ItemTemplate&gt;</p> <p>&lt;FooterStyle /&gt;</p> <p>&lt;HeaderStyle HorizontalAlign=&quot;Center&quot; /&gt;</p> <p>&lt;ItemStyle HorizontalAlign=&quot;Center&quot; /&gt;</p> <p>&lt;/asp:TemplateField</p> <p><b>&nbsp;</b></p> 2013-05-21T19:58:30-04:002013-05-21T19:58:30.553-04:00urn:uuid:00000000-0000-0000-0000-000005401789http://forums.asp.net/p/1908701/5401789.aspx/1?input+string+not+in+the+correct+format+input string not in the correct format <pre class="brush: js">function clientActiveTabChanged(sender, args) {sender.get_activeTabIndex(); }</pre> <p>&nbsp;</p> <p>i have 5 tabs in a tab container</p> <p>in last tab i have a grid with a column &nbsp;where i can enter text or a date which is taken as string</p> <p>if i enter normal text &amp; chnage the TAB of the conatiner it works well</p> <p>but&nbsp;</p> <p>when i change the tab &nbsp;after entering date &nbsp;i get &nbsp;</p> <p>input string not in the correct format</p> <p><br> example::</p> <p><br> i am in tab4 where i eneter date value as string in textbox which is the last value entered&nbsp;<br> then i chnage the tab<br> <br> </p> <p>input string not in the correct format</p> <p></p> <p>i checked the script functions , as well as server side functions</p> <p>not able to trace</p> <p>on server side i have the below on tab chnage</p> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: vb">if tabcontainer.tanindex=0 then btn1.enabled= false btn2.enabled= true .................. else if tabcontainer.tanindex=1 then btn1.enabled=true btn2.enabled=false .................. else if tabcontainer.tanindex=2 then btn1.enabled= true btn2.enabled= true .................. end if</pre> 2013-05-22T06:49:34-04:002013-05-22T06:49:34.417-04:00urn:uuid:00000000-0000-0000-0000-000005395820http://forums.asp.net/p/1906457/5395820.aspx/1?Async+File+Upload+Unhandled+Exception+The+requested+file+uploading+problem+runs+till+infinite+loop+Async File Upload Unhandled Exception : The requested file uploading problem (runs till infinite loop) <p>Hello,</p> <p>Using IIS7, in Web.config checked all the parameters to allow content length.</p> <p>installed latest ajax tool kit, still didn't work.</p> <p>It was working before, till yesterday. Also, this is not working in all the forms where I used this control in my project.</p> <p>Not sure about any other dll conflict with this.</p> <p>Any idea?</p> <p>Thanks in Advanced for the help.</p> <p></p> 2013-05-16T10:39:43-04:002013-05-16T10:39:43.423-04:00urn:uuid:00000000-0000-0000-0000-000005401882http://forums.asp.net/p/1908717/5401882.aspx/1?Extended+Slider+Error+coming+up+in+FF+but+not+in+IEExtended Slider Error coming up in FF but not in IE <p>Hi All,&nbsp;</p> <p>I am getting a couple of errors that are coming in FF and Chrome but not in IE. Errors are the following:</p> <p><strong><span class="objectBox objectBox-errorMessage hasBreakSwitch ">Sys.ArgumentException: Sys.ArgumentException: Please set valid values for the height and width attributes in the slider's CSS classes Parameter name: element size</span></strong></p> <p><strong><span class="objectBox objectBox-errorMessage hasBreakSwitch "><br> </span></strong><span class="objectBox objectBox-errorMessage hasBreakSwitch ">And second one is :&nbsp;<strong><span class="objectBox objectBox-errorMessage hasBreakSwitch ">Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null. Parameter name: handler</span></strong></span></p> <p>Here's my code:&nbsp;</p> <pre class="prettyprint">AjaxControlToolkit.SliderExtender seHBP = new AjaxControlToolkit.SliderExtender(); seHBP.ID = &quot;seHBP&quot; &#43; r.RowIndex &#43; hbp.companyValueId &#43; hbp.competencyId; seHBP.TargetControlID = txtHBPCompetency.UniqueID; seHBP.BoundControlID = txtHBPBoundCompetency.UniqueID; seHBP.BehaviorID = txtHBPCompetency.UniqueID; seHBP.Minimum = 1; seHBP.Maximum = 5;</pre> <p>Any help will be much appriciated.&nbsp;</p> <p></p> <p>Thanks,</p> <p>Attiqe</p> <p><br> <br> </p> <p><span class="objectBox objectBox-errorMessage hasBreakSwitch "><br> </span></p> <p></p> 2013-05-22T07:59:59-04:002013-05-22T07:59:59.257-04:00urn:uuid:00000000-0000-0000-0000-000005401838http://forums.asp.net/p/1908711/5401838.aspx/1?How+to+call+ondayrender+calDT_DayRender+using+ajaxToolkit+CalendarExtenderHow to call ondayrender="calDT_DayRender" using ajaxToolkit:CalendarExtender <p>Hi All,</p> <p>I have UI:-</p> <p>&lt;<span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small">td</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"> </span></span><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small">valign</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">=&quot;top&quot;&gt;</span></span></span> From Date <span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"> <span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small">&amp;nbsp;</span></span></span>&nbsp;&nbsp;&nbsp;</p> <p><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">&lt;</span></span></span><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small">asp</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">:</span></span></span><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small">TextBox</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"> </span></span><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small">ID</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">=&quot;TextBox_from&quot;</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"> </span></span><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small">runat</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">=&quot;server&quot;&gt;&lt;/</span></span></span><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small">asp</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">:</span></span></span><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small">TextBox</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">&gt;<br> </span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">&lt;</span></span></span><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small">asp</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">:</span></span></span><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small">RequiredFieldValidator</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"> </span></span><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small">ID</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">=&quot;RequiredFieldValidator2&quot;</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"> </span></span><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small">ControlToValidate</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">=&quot;TextBox_from&quot; </span></span></span><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small">runat</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">=&quot;server&quot;</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"> </span></span><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small">ErrorMessage</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">=&quot;*&quot;</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"> </span></span><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small">ValidationGroup</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">=&quot;reqleav&quot;</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"> </span></span><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small">Display</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">=&quot;Dynamic&quot;&gt;&lt;/</span></span></span><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small">asp</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">:</span></span></span><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small">RequiredFieldValidator</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">&gt;</span></span></span><br> <span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">&lt;</span></span></span><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small">ajaxToolkit</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">:</span></span></span><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small">CalendarExtender</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small">&nbsp; </span></span><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small">ID</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">=&quot;CalendarExtender1&quot;</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small">&nbsp;</span></span><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small">runat</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">=&quot;server&quot;</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"> </span></span><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small">Format</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">=&quot;yyyy/MM/dd&quot;</span></span></span>&nbsp;&nbsp;<span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small">TargetControlID</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">=&quot;TextBox_from&quot;</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"> </span></span><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small"><span face="Consolas" color="#ff0000" size="2" style="color:#ff0000; font-family:Consolas; font-size:small">Enabled</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">=&quot;True&quot;&gt;<br> </span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">&lt;/</span></span></span><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small">ajaxToolkit</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">:</span></span></span><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small">CalendarExtender</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">&gt;</span></span></span></p> <p><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">&lt;/</span></span></span><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small"><span face="Consolas" color="#800000" size="2" style="color:#800000; font-family:Consolas; font-size:small">td</span></span></span><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">&gt;</span></span></span></p> <p><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"></span></span></span>&nbsp;</p> <p><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small">Code Behind:-</span></span></span></p> <pre class="prettyprint">List&lt;DateTime&gt; dtholidays = null; protected void calDT_DayRender(object sender, DayRenderEventArgs e) { if (dtholidays.Contains(e.Day.Date) || e.Day.IsWeekend) { e.Day.IsSelectable = false; } } private List&lt;DateTime&gt; GetPublicHolidays() { List&lt;DateTime&gt; list = new List&lt;DateTime&gt;(); //populate from database or other sources list.Add(new DateTime(2013, 01, 01)); list.Add(new DateTime(2013, 02, 02)); list.Add(new DateTime(2013, 02, 14)); list.Add(new DateTime(2013, 03, 02)); list.Add(new DateTime(2013, 03, 14)); list.Add(new DateTime(2013, 04, 02)); list.Add(new DateTime(2013, 04, 14)); list.Add(new DateTime(2013, 05, 02)); list.Add(new DateTime(2013, 05, 14)); list.Add(new DateTime(2013, 06, 02)); list.Add(new DateTime(2013, 06, 14)); list.Add(new DateTime(2013, 07, 02)); list.Add(new DateTime(2013, 07, 14)); list.Add(new DateTime(2013, 08, 02)); list.Add(new DateTime(2013, 08, 14)); list.Add(new DateTime(2013, 09, 02)); list.Add(new DateTime(2013, 09, 14)); list.Add(new DateTime(2013, 10, 02)); list.Add(new DateTime(2013, 10, 14)); list.Add(new DateTime(2013, 11, 02)); list.Add(new DateTime(2013, 11, 14)); list.Add(new DateTime(2013, 12, 02)); list.Add(new DateTime(2013, 12, 14)); return list; }</pre> <p><br> How to call calDT_DayRender using ajaxToolkit:CalendarExtender?</p> <p>I know if using this method format:-&nbsp;&lt;asp:Calendar ID=&quot;calDT&quot; runat=&quot;server&quot; ondayrender=&quot;calDT_DayRender&quot;&gt;&lt;/asp:Calendar&gt;; but i am looking for method ajaxToolkit:CalendarExtender.</p> <p>&nbsp;</p> <p>Please advise.</p> <p>&nbsp;</p> <p>Thank you.</p> <p>&nbsp;</p> <p>Regards,</p> <p>Micheale</p> <p><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"></span></span></span></p> <p><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"></span></span></span>&nbsp;</p> <p><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"></span></span></span></p> <p><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" color="#0000ff" size="2" style="color:#0000ff; font-family:Consolas; font-size:small"></span></span></span></p> 2013-05-22T07:30:20-04:002013-05-22T07:30:20.747-04:00urn:uuid:00000000-0000-0000-0000-000005401378http://forums.asp.net/p/1908585/5401378.aspx/1?How+to+get+the+updatepanel+updated+in+user+control+How to get the updatepanel updated in user control? <p>Hello,</p> <p>I am using updatepanel within a user control (serves as my every page's menu) to create a count down session warning:</p> <pre class="prettyprint">Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then Me.lblSessionRemaining.Text = &quot;Session Remaining Time in Minutes: 30&quot; If Not ScriptManager1.IsInAsyncPostBack Then Session(&quot;timeout&quot;) = DateTime.Now.AddMinutes(30).ToString() 'Session expires in 30 minutes End If End If End Sub Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles Timer1.Tick If Not Session(&quot;timeout&quot;) Is Nothing Then If 0 &gt; DateTime.Compare(DateTime.Now, DateTime.Parse(Session(&quot;timeout&quot;).ToString())) Then lblSessionRemaining.Text = &quot;Session Remaining Time in Minutes: &quot; &amp; Math.Floor(CType(Session(&quot;timeout&quot;), DateTime).Subtract(DateTime.Now).TotalMinutes) End If End If End Sub</pre> <p></p> <pre class="prettyprint">&lt;asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server"&gt; &lt;/asp:ScriptManager&gt; &lt;table class="style1"&gt; &lt;tr&gt; &lt;td&gt; Logo Here&lt;/td&gt; &lt;td&gt; User info&lt;table class="style1"&gt; &lt;tr&gt; &lt;td&gt; User: &lt;asp:Label ID="lblUsername" runat="server" Text=""&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; User Department: &lt;asp:Label ID="lblDeparment" runat="server" Text=""&gt;&lt;/asp:Label&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Last Signon: &lt;asp:Label ID="lblLastSignOn" runat="server" Text=""&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Last failed signon attempt:&lt;asp:Label ID="lblLastFailedSignOn" runat="server" Text=""&gt;&lt;/asp:Label&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"&gt; &lt;ContentTemplate&gt; Session Remaining:&lt;asp:Label ID="lblSessionRemaining" runat="server" Text=""&gt;&lt;/asp:Label&gt; &lt;/ContentTemplate&gt; &lt;Triggers&gt; &lt;asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" /&gt; &lt;/Triggers&gt; &lt;/asp:UpdatePanel&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:Button ID="btnSignOff" runat="server" Text="Sign Off" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;asp:Timer ID="Timer1" runat="server" Interval="1000"&gt; &lt;/asp:Timer&gt; </pre> <p>I followed Microsoft's <a title="suggestion" href="http://msdn.microsoft.com/en-us/library/bb398780%28v=vs.100%29.aspx"> suggestion </a>to use EnablePartialRendering=&quot;true&quot;&nbsp; in &lt;asp:ScriptManager definition<br> <br> <br> </p> 2013-05-21T19:42:18-04:002013-05-21T19:42:18.34-04:00urn:uuid:00000000-0000-0000-0000-000005401137http://forums.asp.net/p/1908518/5401137.aspx/1?DropshadowExtender+OpacityDropshadowExtender Opacity <p>I just downloaded version 4.1.7.429 of the Ajax toolkit and included into VS2010 Professional. &nbsp;When I use the DropShadowExtender, I get a strange result. &nbsp;If I set the Opacity to .5, or .25, or .75, the shadow is a lighter color and not the same color as the background. &nbsp;Any other setting of Opacity (as far as I've tested) is always the same as 1.0 which is basically black. &nbsp;set to .25 is a light gray shadow, .75 is a darker gray color, and .50 is a blue color. &nbsp;I've reinstalled the toolkit, used the ToolkitScriptManager and nothing changes. &nbsp;It also appears to have rounded edges even though Rounded is set to False. &nbsp;It is more noticable when width is larger.</p> <p>Jim&nbsp;</p> 2013-05-21T14:25:26-04:002013-05-21T14:25:26.617-04:00urn:uuid:00000000-0000-0000-0000-000005401225http://forums.asp.net/p/1908541/5401225.aspx/1?Accordion+without+IDAccordion without ID <p>Hello, I installed AjaxControlToolKit from Nuget manager and when I drag an accordion control, it shows like the following;</p> <p>&lt;ajaxToolkit:Accordion runat=&quot;server&quot;&gt;</p> <p>Missing the ID attribute, it`s no big deal since you can manually add the attribute ID. But it would be nice if it act like the other controls.</p> <p>Tested on: Windows 7 - VS 2012 Ultimate V11.0.60315.01 Update 2</p> <p>Project: Framework 4.5</p> <p>Regards.</p> 2013-05-21T16:05:51-04:002013-05-21T16:05:51.727-04:00urn:uuid:00000000-0000-0000-0000-000005400623http://forums.asp.net/p/1908423/5400623.aspx/1?using+maskededitextender+in+javascriptusing maskededitextender in javascript <p>i have a&nbsp;AjaxControlToolkit.MaskedEditExtender targeted to a text control for accepting date</p> <p>i have the code for the same in code behind page</p> <p>as</p> <p>Dim Extender As AjaxControlToolkit.MaskedEditExtender<br> Extender = CType(e.Row.FindControl(&quot;MASK&quot;), AjaxControlToolkit.MaskedEditExtender)<br> Extender.TargetControlID = &quot;txtRemrk&quot;</p> <p></p> <p>how do i do the same in javascript</p> 2013-05-21T08:15:13-04:002013-05-21T08:15:13.55-04:00urn:uuid:00000000-0000-0000-0000-000005400994http://forums.asp.net/p/1908492/5400994.aspx/1?Error+ASP+NET+Ajax+client+side+framework+failed+to+load+after+upgrading+to+visual+studio+2012Error: ASP.NET Ajax client-side framework failed to load' after upgrading to visual studio 2012 <p>I have seen the many suggestions for the 'Error: ASP.NET Ajax client-side framework failed to load. ' problem and tried them with no success.&nbsp; What I haven't seen is anyone indicating the got this after installing Visual Studio 2012.&nbsp;</p> <p>So, I am running IIS 7 and VS 2010 on my machine without problem.&nbsp; When I installed VS 2012 I started getting the above error.&nbsp; Same thing happens on 2 other developer's machines.&nbsp; If we uninstall .NET 4.5 and reinstall 4.0, it works again debugging from 2010.</p> <p>As I said, I have searched for this problem and found many who have had the error under different circumstances.&nbsp; Tried a multitude of the suggestions, but have had no luck.&nbsp; Just wanted to see if anyone might have experienced the same problem or might have another suggestion based on my situation.</p> <p><span class="dirltr"><br> </span></p> 2013-05-21T12:23:05-04:002013-05-21T12:23:05.377-04:00urn:uuid:00000000-0000-0000-0000-000005401005http://forums.asp.net/p/1908497/5401005.aspx/1?AsyncFileUpload+in+AjaxControlToolKitAsyncFileUpload in AjaxControlToolKit <p>my solution contains multiple asyncfile uploader in same page. when&nbsp; i try to upload file gives</p> <p>&quot; Server Response Error: 'Unknown Server error'<br> <br> Do you want to see the response page? &quot;</p> <p>I have seen that files are uploaded when session configuration set into other than UseUrl . but i want a solution which run session in cookieless mode . </p> <p></p> 2013-05-21T12:31:52-04:002013-05-21T12:31:52.607-04:00urn:uuid:00000000-0000-0000-0000-000005401430http://forums.asp.net/p/1908594/5401430.aspx/1?Ajax+Calendar+control+taking+long+time+to+show+Ajax Calendar control taking long time to show <p>Hi,</p> <p>I am using ajax calender extender to show the calender for the user. when user click on the textbox to select the date its page is hang for couple of second about 5 to 10 second and then calender control appear. its working fine few days ago and suddenly its taken a long time.&nbsp;</p> <p>Dont know why any suggestion. to debug the problem</p> <p></p> <p>Thanks</p> 2013-05-21T20:56:10-04:002013-05-21T20:56:10.103-04:00