﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Most Recent ASPNet101.com Samples</title><link>http://ASpnet101.com/SamplesRSS.aspx</link><description>The latest Code Samples at ASPNet101.com</description><copyright>(c) 2008, August Wind Enterprises. All rights reserved.</copyright><ttl>5</ttl><item><title>Visible Panels via RadioButtonList</title><description>This is a sample which shows how to, by choosing items in a RadioButtonList, you can show (make visible/invisible) only certain panels.</description><link>http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=245</link><pubDate>Mon, 14 Apr 2008 08:25:40 GMT</pubDate></item><item><title>Mass Delete Using Gridview with Checkboxes</title><description>This sample shows how to use a Gridview to delete multiple records all at once, having marked them with a Checkbox, and clicking one button, external to the Gridview, to delete them all&lt;p&gt;
As usual, here, we're using the Northwind Database. If you want to try this on your own Northwind database, adhere to this word of caution - "BACK IT UP FIRST". You will be making multiple deletes, so in order to get it back to the original state, you must make a backup and then restore afterwards.&lt;p&gt;
Remember too, that you will need to substitute your own Web.Config connectionstring entry for "YourNorthwindString" in the sample code
&lt;/p&gt;
</description><link>http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=244</link><pubDate>Mon, 14 Jan 2008 17:36:32 GMT</pubDate></item><item><title>Databound Accordian Control</title><description>This sample shows how to bind data to an AJAX Accordian control, using the AJAX Control Toolkit. The first thing you will need to do, is to download it from the &lt;a href="http://AJax.ASP.Net" target="_blank"&gt;AJax.ASP.Net website&lt;/a&gt;.&lt;p&gt;
Then, once it's downloaded and installed, go to the Bin folder, where it's located, find the AjaxcontrolToolkit.dll and copy it to the Bin folder of your website. &lt;p&gt;
Once it's there, you're off to the races. Note the 'Register' statement at the top of the code here, and then, look at the different properties in the control itself. When databinding the Accordian control, you will use the HeaderTemplate and ContentTemplate tags, instead of the normal Header and Content pane tags.&lt;p&gt;
Add a little CSS for flavor (see the ContentCssClass property of the Accordian control, and the DIV class for the header), and we're good to go.</description><link>http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=242</link><pubDate>Tue, 27 Nov 2007 12:14:04 GMT</pubDate></item><item><title>HTML Named Colors + Hex Using Reflection</title><description>This sample actually shows several things, like how to add controls to a page/Placeholder, dynamically, how to get a color from RGB, convert a color to Hex, plus (the main point) it shows how, using reflection, you can iterate through the system colors and display them (using dynamic labels), plus get the HTML hex for each color.</description><link>http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=241</link><pubDate>Fri, 05 Oct 2007 13:12:19 GMT</pubDate></item><item><title>Gridview - Conditional Images</title><description>This Gridview sample shows how to, for each row, based on other data within that row, to show a different image. We do this by creating a TemplateField, and putting an ASP.Net Image control within it, called 'Image1'.
&lt;p&gt;Then, inside the RowDataBound event of the Gridview, we put code, which first, checks and finds the Image control in that row, and then assigning a different JPG file to the ImageURL property of that image. One other thing here, you'll notice, is that when the criteria is matched, we set the Image control's Visible property to 'True'. That's because, one extra criteria is, that if the Units In Stock is larger than 80, we set the Image control's Visible property to 'False'. &lt;p&gt;Naturally, since we're checking one particular column in the Gridview for this data, we're using a Select Case statement.</description><link>http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=240</link><pubDate>Fri, 20 Jul 2007 17:17:12 GMT</pubDate></item><item><title>Conditional Gridview Text - Checkboxes</title><description>This code sample shows how to either show or make invisible, a checkbox in each row of the Gridview, along with making text conditional, based on certain criteria. In this case, if the Postal code starts with a non-numeric character, we change it to "Alt Text", and we set the Visible property of the checkbox in that row to "False"</description><link>http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=239</link><pubDate>Thu, 21 Jun 2007 07:21:48 GMT</pubDate></item><item><title>Creating a Datatable Manually</title><description>This sample shows how to create a datatable manually, adding files from a directory (using System.IO), and then binding the datatable to a Gridview</description><link>http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=237</link><pubDate>Wed, 20 Jun 2007 14:08:29 GMT</pubDate></item><item><title>Gridview Columns - Visibility</title><description>The main point of this sample is showing the way to programmatically (during runtime) make a Gridview column visible or invisible. One thing to remember, is that the numbering of columns are zero-based, so, a Gridview with 11 columns are numbered 0-10.&lt;p&gt;
One other item shown here, is the CommandArguments property of ASP.Net buttons. With only one click event, you can program the click events of many buttons, based on the CommandArguments (new with ASP.Net v2.0). Also, using the FindControl method, you can set the ids of your buttons similarly, with numbers, and easily use concatenation to find the button and make it either enabled or disabled, based on the visibility of the represented row.</description><link>http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=236</link><pubDate>Mon, 11 Jun 2007 09:59:20 GMT</pubDate></item><item><title>Search With a DropDownlist - 2.0</title><description>This sample shows a non-code way to use a Dropdownlist for a search. It populates with the Categories table of the Northwind Database, so to use this code, as presented, you'll need to create a connectionString entry in your Web.config called 'NorthwindConnectionString'.

As you will see, by choosing a category in the DropDownlist, the Gridview is then populated using the selected item from the Dropdownlist.</description><link>http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=235</link><pubDate>Thu, 03 May 2007 07:46:21 GMT</pubDate></item><item><title>Different Text Colors in DDL and Listbox</title><description>This sample shows how to use CSS to create conditional item coloring with DropDownLists and ListBoxes (ASP.Net controls). As you see, in order to show the code here, with a DropDownList and a Listbox, some code lines are doubled. Just use whichever one applies for your useage.&lt;br&gt;
&lt;i&gt;&lt;b&gt;(Many thanks to Juan Llibre, ASP.Net MVP)&lt;/b&gt;&lt;/i&gt;</description><link>http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=234</link><pubDate>Tue, 20 Mar 2007 06:53:09 GMT</pubDate></item></channel></rss>