Category Archives: AJAXToolKit

Auto Refresh GridView using SqlCacheDependency and Toolkit’s Timer.

SqlCacheDependency basically can send a notification to the web application, whenever any change occurs to the underlying data source.You may learn more about ‘SqlCacheDependency’ here — http://msdn.microsoft.com/en-us/library/system.web.caching.sqlcachedependency.aspxIn this example below, a GridView & Timer control is inside an UpdatePanel. The … Continue reading

Posted in AJAXToolKit | 3 Comments

AJAX ComboBox And Backspace/Delete key

In AJAX ComboBox after selecting an item , when user hits Backspace or delete key from the keyboard, an exception is raised.The following snippet does it without modifying the Toolkit’s js file. Hope this helps. <form id=”form1″ runat=”server”> <asp:ScriptManager ID=”ScriptManager1″ … Continue reading

Posted in AJAXToolKit | 1 Comment

CalendarExtender show only years

Here’s a working example. The code is self-explanatory. <form id=”form1″ runat=”server”> <asp:ScriptManager ID=”ScriptManager1″ runat=”server”></asp:ScriptManager> <script type=”text/javascript” language=”javascript”> function onCalendarShown() { var cal = $find(“calendar1”); cal._switchMode(“years”, true); if (cal._yearsBody) { for (var i = 0; i < cal._yearsBody.rows.length; i++) { var … Continue reading

Posted in AJAXToolKit | Leave a comment

CalendarExtender getting hidden behind other controls

One scenario wherein the CalendarExtender appears to be hidden behind other control is —-When any close-by control have style=display:inline.If I remove that inline thing — the calendar gets happy — <style type=”text/css”> .enterzipCalenderCompliant { PADDING-RIGHT: 10px; FLOAT: left /*No display=inline*/ … Continue reading

Posted in AJAXToolKit | Leave a comment

AJAX UpdateProgress, FileDownload & Redirect To download page

The Scenario: The AJAX UpdateProgress control & filedownload functionality together sometimes can get tricky. I have a GridView control inside an UpdatePanel. This grid displays some file information & a download button on each row. On click of the download … Continue reading

Posted in AJAXToolKit | Tagged , , | Leave a comment

GridView,HoverMenu and ModalPopup

The Scenario: Let’s say, within an updatePanel we have a Gridview with a hovermenu (as an example — on the first cell of the rendered grid).We also have a button control on each gridview row. On click of that button … Continue reading

Posted in AJAXToolKit | Tagged , , | Leave a comment

Using AJAX HistoryPoint to stop Browser Back Click.

The Scenario: In many applications,particularly ECommerce, once past the Payment page , is the ThankYou page. When the user lands in “ThankYou” page , we would NOT want him to click Browser back & go back again to Payment or … Continue reading

Posted in AJAXToolKit | Tagged , , , | 2 Comments