Quantcast
Channel: ASP.NET 101 » Code Samples
Browsing latest articles
Browse All 10 View Live

Conditional Gridview Text – Checkboxes

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...

View Article



Gridview – Conditional Images

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,...

View Article

HTML Named Colors + Hex Using Reflection

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...

View Article

Databound Accordian Control

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 AJax.ASP.Net website. Then, once it’s...

View Article

Mass Delete Using Gridview with Checkboxes

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 As usual, here,...

View Article


Visible Panels via RadioButtonList

This is a sample which shows how to, by choosing items in a RadioButtonList, you can show (make visible/invisible) only certain panels. <script language="VB" Runat="server"> Sub GetPanel(Source...

View Article

List and Read Text Files

This sample takes files from a folder (in this situation, text files), and lists them in a listbox. Then, the user can click on a particular file, and display the text from the selected text file, in...

View Article

Displaying an Image with a DataList

Sometimes, with a Datalist, it would be nice to actually display an image as one of the Data items. This sample uses a simple Access DataSource ID to do so <asp:AccessDataSource ID="AccDS1"...

View Article


Filling a Grid with Files in a Folder – C#

This code sample shows, in C#, how to get all the files within a specific folder, and list them all, including the file size, in a Gridview control. To access the FileSystem, you’ll need to import the...

View Article


Sending Mail from a .NET App Using Amazon SES (Simple Email Service)

Amazon’s Simple Email Service (SES) is a great solution for any project which requires bulk emails. the primary advantage of SES is cost, at $0.10 per 1000 emails sent it is between 5-10x cheaper than...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images