I have been trying out LINQ to XML for the past few weeks. I am impressed with the improvements in the API made over XML DOM. In this post, I will illustrate a few nice features where LINQ scores over DOM.
In a web page, there are multiple validators and a dropdown. In the dropdown, if the option selected is Y, all validators should fire. If option selected is N, then all validators should be disabled. Doing it at the server-side
When a button click uses an AJAX postback, no page refresh happens. Due to poor network connectivity, the user might experience latency in getting the response. This might lead to the user making multiple button clicks. This is undesirable. If
A GridView contains two dropdownlists. The first dropdownlist is a simple Yes / No. On selecting Yes, the second dropdownlist should be enabled. How do I implement this? The GridView contains three columns: First Name, Alien DropDownList (Yes/No), Country DropDownList.
How can I display Country and City information in a nested fashion like: India Delhi Bangalore Chennai USA New York Chicago UK London This can be done in three steps: Create a object that will fetch data from database and
I want a label box to be refreshed every one second with a random number generated at the server This is a classic example of WebMethods. WebMethods are written on the server side in the page class. WebMethods are static.
I want to show images of different sizes in a ListView. The image is displayed in a standard size. However, I do not want the images to be skewed or expanded while displaying.How can I do this? The most common
I have a nested GridView in my project. The top level grid will display a list of names and a link-button. On clicking the link-button, the detail (child) grid will be shown with a OK button. When the OK button
I want a simple Calendar control. The Calendar control should function like a FileUpload control. It should have a textbox and a button. On click on a button, the calendar control should open. On selecting a date in the calendar