Posts

Showing posts from December, 2008

AutoComplete using AutoCompleteExtender, JQuery and C# Web service

I implemented autocomplete functionality on one of my client website. Requirement: if user types in a location name incorrectly then the site is supposed to show a page which holds suggested names in radio button. The user selects one of the location and then clicks search, which will show a Search result page with properties relating to the location. The solution I offered was to use an auto suggest functionality which shows a list of suggested locations as and when the user types in the location textbox. This was agreed quickly since the time quoted was far less than the suggested requirement implementation and the UI would look 'very cool'... The solutions uses - AutoComplete Extender control (which is part of the Ajax Control Tool kit v3.5). - JQuery - perform ajax query to retrieve data. - Webservices written in C# to query the db and return results as JSON objects. I will publish the code sample.

NAnt development tips

Here are some Tips which might help you when debugging NAnt scripts. 1. Remember to update NAnt Framework tag if you are working with new version of .Net framework in Nant.exe.config file. I upgraded our system to .Net 3.5 and started coding. But when I checked in the files the nant build broke. I was racking my head for a while before I figured out that Nant was building for framework 2.0 and hence the new features which I coded against did not compile. 2. if you create new targets remember to add it in the 'depends' attribute of the 'build' target. I included a new component in my NAnt build script. I included the target for getting the latest file from sourcesafe and another target for building the file. When I ran the build script, it did not call the new targets. I figured out that I had not updated the 'depends' attribute of the build target task. Ex: 3. I use 'NantBuilder' tool which helped me in running specific targets and debugging it.