Browse by Tags
All Tags »
AJAX (
RSS)
As I mentioned before, AJAX supports calling web services from the client using an XmlHttpRequest object. But sometimes, things don't go as expected. If you make the call, an error may occur in the web service, which you'd get an error prompt...
If you use web services to stream data to the client via the ASP.NET AJAX framework, you may experience challenges when you use LINQ to SQL or Entities as your data model. This is because LINQ objects retain all of their relationships, which the serialization...
I got the above error when passing data to a web service. On the web service, a field is defined as int?. But when I try to pass a null value, I get the above error because the value is showing up as NaN. So it sees NaN and throws this exception. As an...
JavaScript code overall isn't that difficult to write. It may sometimes be hard to come up with a particular task, but it isn't that hard to write. It's hard to get syntatically correct, even with all of the features VS 2008 has to offer....
JavaScript Event Handlers don't work the way that you may expect. For instance, if you had a component that defined an event itemCreated. That event could add an event handler through the "add_" method, as such: add_itemCreated You'd...
When working with custom AJAX controls and extenders, you may experience that you have blank script files pushed down to the client. This is often for one of several reasons: The script isn't setup as an embedded resource. The WebResource assembly...
I got the above error when I was trying to assign a string like: "color:Red;background-color:blue"; directly to the style property of an element, as such: var td = document.createElement("td"); td.style = this._style; //style holds...
When setting up class inheritance, you may have seen the error that the method or property is undefined. This results from the fact that a property or method exists in the base class, or is not explicitly defined or overridden in the derived class. This...
Sorry for the long title, but I wanted to post about some of the differences between the controls and extenders client component's client state, which are defined for AjaxControlToolkit.ControlBase and AjaxControlToolkit.BehaviorBase on the client...
One of the errors that frustrated me when developing AJAX controls was when I got <Namespace> is undefined, even though the script appeared to be correct. I couldn't figure it out right away because the class was registered correctly and the...
Every AJAX control or extender you build has an ID on the client, accessible through get_id and set_id. This ID is a unique ID and doesn't have to match the ID of the control it's given on the server, but the script registration process ensures...
I may have mentioned somewhere in my blog that AJAX components go through a process of describing the properties and events (at least) so that the server component can push down values to the client. This process happens in the GetScriptDescriptors method...
I previously posted about the format that a web service method has to be in for the AutoCompleteExtender to work. This blog post focuses on some of the other capabilities of this extender. In an example web method, I concatenate text and return the concatenation...
When developing AJAX-ified controls using the AJAX framework from microsoft and the AJAX control toolkit, you have to rethink the control development approach a little bit. After all, the key to making AJAX controls work is rendering code on the client...
If you've worked with the AutoCompleteExtender, you know that the extender returns a nice drop down list that only contains items with the keywords entered. As you type more and more characters, the results in the list are filtered by the characters...
More Posts
Next page »