Jun. 5th, 2008

netbard: (Default)
Toping the list is trying to understand why a 3rd party AJAX component simply doesn't seem to want to work in my project, when it works fine in the sample project.

Doesn't this code know that its supposed to ph34r m3?
netbard: (Default)
Finally found the answer to my problem.

Basically, the AjaxControlToolkit has an AutoCompleteExtender that allows you to add an auto-complete function to a TextBox. This works by specifying a method on a web service that takes in the currently typed text and returns suggestions.

Actually, calling it a web service is inaccurate - it can be used as a web service. But what the AjaxControlToolkit requires is that it not be a web service but what is called a script service - the main difference being (I think) that JSON is used to serialize data being passed back and forth to it.

Interestingly enough, making a web service a script service in ASP.NET requires adding one attribute to your class - System.Web.Script.Services.ScriptServiceAttribute. Doing so will automagically make your web service a script service.

That's right - I spent two hours because instead of coding this:

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
[ScriptService]
public class SurveyList : System.Web.Services.WebService

I typed this:
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
public class SurveyList : System.Web.Services.WebService

And of course the AutoCompleteExtender simply failed silently. Argh.
netbard: (Default)
Went to Aikido a little earlier today, as [livejournal.com profile] jilliko did not have rehearsal. Today was actually pretty hot and humid in Rochester and the dojo does not have air conditioning. Ceilings that go from waist high to the vaulted ceilings, but no air conditioning. This makes it tough in a cotton gi. I powered through, though.

Actually, though the heat made things tough, today was easier than the first day. I'm snapping back into the routine - I didn't feel nearly like I was going to cough out a lung once we finished ukemi. Throws were all variations on a dynamic, cross-hand wrist grab: two line throws and then four different partner throws. I think the best one was where the ukemi goes for your wrist and, instead of turning the shoulder away from him you turn the shoulder towards him. As it happens, your lifting up your wrist to draw yourself underneath your arm and theirs - the ukemi passes behind you as you're turning. You then step and extend your arm, sending the ukemi into a roll. It was really graceful when seen; and I actually did pretty good on the throw so it was all good.

First difficulty with training came up - I apparantly roll such that the same portion of my left foot scapes the matt. This causes a scrape which turns into an open wound. I bandaged it up before class, but ran into a problem where the bandage kept falling off. I stopped and left class after the fourth bandage. :/ Before Tuesday I'll need to invest in something a little tougher that will hopefully stay on during the class.
netbard: (Default)
After figuring out my insane coding issue earlier today, the day totally improved. :)

Finished reading Dark Journey today, book something-or-other in the NJO series. Good book, right up until the last hundred pages. Its like the author didn't realize until too late that she was reaching her word-count and tossed entire chapters in order to make it fit. The resolution of the book happened over the course of, like, a page. Bleh.

Profile

netbard: (Default)
netbard

September 2025

S M T W T F S
 123456
78910111213
14151617181920
2122232425 26 27
28 29 30    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 2nd, 2025 03:34 am
Powered by Dreamwidth Studios