Bunch's Blog

One day I'll have a catchy subtitle, one day
posts - 87 , comments - 126 , trackbacks - 0

AJAX

There are 14 entries for the tag AJAX
Setting the SlideShowExtender's Index
The AJAX SlideShowExtender is pretty useful. It does what it says and works without much fuss. There was one trick I needed it to perform that I could not find natively within the control. That was to set the slide’s current index. With a little JavaScript however I could make the control do what I wanted. The example below assumes a few things. First you already have a SlideShowExtender setup and working (or see this post). Second this SlideShowExtender is on a page all by itself so the index to ......

Posted On Wednesday, December 22, 2010 9:50 AM | Comments (0) |

Using the AJAX SlideShowExtender with database images

This post goes over how to display images stored in a database using the SlideShowExtender control. The examples use VB.Net (what I have to use at the office) and assumes that you are storing your images in a database, a way to retrieve the images from the database (e.g. stored procedure) and have AJAX setup in your ASP.Net project already. Also the example was based on retrieving images that are photos hence the names of some of the various functions, controls, etc.

Posted On Friday, September 17, 2010 9:51 AM | Comments (7) |

ScriptManager is Ambiguous
This trick might work if you have an application that has been moved from the 2.0 framework to 3.5. This happened to me recently and I had tried removing the Web.Extensions reference and adding it back in, deleting old pages that had the older ScriptManager on them and manually removing then adding back the Web.Extensions sections in the web.config file. Nothing worked so I compared the web.config files from the problem project to one that was created from scratch targeting the 3.5 framework. I saw ......

Posted On Monday, November 16, 2009 6:32 AM | Comments (0) |

Accordion Arrows
This is one way to have up/down or open/close arrows appear on an AJAX AccordionPane. First add a div and an img to the Header of the AccordionPane along with the title (the example uses ‘Add Widget’). <cc1:AccordionPane ID="apTest" runat="server" > <Header> <div id="div1" onclick="UpDownIcons('imgAc... Add Widget&nbsp;&nbsp;&... src="Images/arrow_down.ico" id="imgAcc" alt="expand" /> </div> </Header> Note the onclick function for the div, that ......

Posted On Wednesday, June 24, 2009 3:35 AM | Comments (1) |

Calendar Extender Display Issue – Update Panel Weirdness
This issue started for me after I added an Update Panel to the aspx page. If the calendar extender is showing up weird, like with no background and is displayed no where near where it should be this could fix your problem. Take the original css from the control toolkit (AjaxControlToolkit\AjaxCon... and copy it into your css file in the application. No css modification is needed and you do not need to set the CssClass property to the control on the aspx page. Technorati ......

Posted On Monday, May 18, 2009 3:07 PM | Comments (1) |

Loading Data on a Ajax TabPanel Click
Here is one way to have data load only when a TabPanel is clicked. In my example I have an aspx page with a TabContainer, two TabPanels both with their own ObjectDataSources that fill GridViews. The first tab’s ObjectDataSource and GridView will run on the page load and that is fine since it would be the first thing a user sees. The overall idea is to have the ObjectDataSource for the second tab to not run on the page load and then have the GridView on the second tab databind only when the tab is ......

Posted On Friday, May 15, 2009 10:48 AM | Comments (2) |

Calendar Extender Display – Easier Workaround
This post goes along with this previous post on calendar extender display issues. However the formatting fix I used was much less involved than before. Again I had a GridView with some text boxes for dates that I added the CalendarExtender to. And just like before the GridView had some CSS specific to it’s td which involved padding and text alignment. I added all the CalendarExtender styles to my css file and the extender worked fine but did not look quite right. The current date listing was quite ......

Posted On Friday, May 15, 2009 10:27 AM | Comments (2) |

Calendar Extender Display Issues
I was recently working on a GridView and needed to add a calendar for two of the columns while in edit mode. I added the AJAX CalendarExtender and it returned the selected date with no issues. <EditItemTemplate > <asp:TextBox ID="txtDate1" runat="server" Text='<%# BIND("Date1", "{0: MM/dd/yyyy}") %>'></asp:TextBox> <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate1" PopupPosition="Right" CssClass="caltheme" > </cc1:CalendarExtender> ......

Posted On Friday, March 6, 2009 3:49 PM | Comments (5) |

2-Way Binding with CascadingDropDown
This post deals with 2-way binding of data to a CascadingDropDown. It assumes that the CascadingDropDown is already configured to return data to the list. I had my DropDownList and CascadingDropDown pairs within a FormView and it is bound to a SqlDataSource. < asp : Label ID ="Label1" runat ="server" Text ="Mfr" /> < asp : DropDownList ID ="ddlMfrs" runat ="server" /> < cc1 : CascadingDropDown ID ="cddMfr" runat ="server" TargetControlID ="ddlMfrs" Category ="MfrID" PromptText ="Select ......

Posted On Wednesday, October 1, 2008 9:08 AM | Comments (6) |

Web Service Not Called From Ajax Control
Here was some more Ajax fun I recently had. I was trying to use a CascadingDropDown using Ajax 1.0 (the version for VS2005). I had everything setup the DropDownList and CascadingDropDown controls on my aspx page, the data access functions in a class and the web methods in the asmx's code behind. Everything was also in one project. No matter what I did I would only get ‘Method Error 500’ in the drop down and when I put a break point in the function of the asmx it would never get hit. I searched around ......

Posted On Friday, September 26, 2008 1:25 PM | Comments (1) |

No Show on Second ValidatorCalloutExtender
I was working on an application recently that was pretty typical data entry stuff. Nothing fancy but I did want to try out the AJAX ValidatorCalloutExtenders. I had them all setup using the ValidatorCalloutExtenders to well extend my RequiredFieldValidators. They were then tied to a button to save the data back to the database. All told there were seven different required fields for this form. <asp:Button ID="btnInsert" runat="server" CommandName="insert" Text="Add New" Visible="true" CausesValidation="true" ......

Posted On Wednesday, September 3, 2008 10:46 AM | Comments (0) |

CSS, Themes, Master Pages and Ajax Tabs
This was done using ASP.NET 3.5 in VS 2008. I had an application that I was using an Ajax TabContainer and TabPanels. The tabs looked great but I had wanted to change the background color of the tab body to a standard color my company uses. I took the default /*XP Theme*/ styles from Tabs.css and put them in my own CSS file. On the TabContainer I set the CssClass=”tabBackground” (tabBackground was the name I gave the class in my CSS file). I changed the background-color in .ajax_tab_body and everything ......

Posted On Monday, April 21, 2008 2:58 PM | Comments (1) |

Using Ajax Tabs
Prior to utilizing Ajax making a page with tabs was a bit of a pain. I would setup a MultiView and add in Views for each tab. Ajax’s Tab Container control is much easier to use. I’ve listed below the order on a sample aspx file that I setup the various Ajax controls to get it all to work. The only real tricks I saw were to add the ScriptManager and the order of the TabContainer/TabPanel/Conte... The ScriptManager and Tab controls went inside the <div> and I made sure that the toolkit ......

Posted On Tuesday, March 25, 2008 9:03 AM | Comments (2) |

Hello

Hello everyone!

This is my first post on my blog here so this is more a test than anything. I hope to blog about various items regarding SQL Server, VB.Net, ASP.Net and Ajax/JavaScript. Other technical blogging interests will most likely revolve around Windows, Linux, PC hardware and the XBox 360. Outside of the geeky realm I'll mostly write about soccer (or football if you prefer). Yeah I'm a Yank but I still love the beautiful game!

Bunch

Posted On Tuesday, March 4, 2008 11:23 PM |

Powered by: