Use LINQ to Query ASP.Net Control Data
Overview
[inline][/inline]The purpose of this article is to demonstrate the use of LINQ for the purpose of searching and manipulating elements from repeating controls such as an ASP.Net CheckboxList. This exercise will consist of a simple WebForm that allows the user to select a series of checkbox list items by searching within the list for all items containing a user defined string value. If you haven't done so already, please load Visual Studio and create a new web site or web application project.
JSON Parameter String Builder
Overview
[inline][/inline]In continuing my love affair with code generation or using code to create code, we will be creating a small jQuery based utility for creating JSON parameter strings that can be used as parameter strings to page/web methods when making Ajax calls with jQuery. While creating these strings is mostly a trivial task, the formatting that is required between parameter names and values could be error prone when build manually due to the mixing of double quotes, single quotes and the concantenation of parameter names and values. The utility we will be creating will accept two comma delimited strings, one containing parameter names and the other their matching values, combine them and output these together in JSON data parameter format.
Web Service Calls With jQuery Ajax
Overview
[inline][/inline]In this article we will explore web service calls with jQuery Ajax from ASP.Net webforms. We will be doing this without the use of an ASP.Net UpdatePanel by performing all Ajax calls directly with jQuery. In my opinion, Ajax calls are far more efficient when making the Ajax call directly because we bypass the overhead of update panels, refreshing the HTML we want to refresh directly, rather than refreshing all the content of the UpdatePanel ContentTemplate HTML on every partial postback. While there is JavaScript code to be written to accomplish this, the impact is minimal and with some usage and experience, the task becomes trivial over time.