Excellent article from Ken Getz
http://msdn.microsoft.com/en-us/magazine/cc700332.aspx
http://msdn.microsoft.com/en-us/magazine/cc793963.aspx
Saturday, September 20, 2008
DropDownList and ListBox Controls in ASP.NET
Sushila Patel, in his article explains the method, yhanks to him
http://www.c-sharpcorner.com/UploadFile/sd_patel/DropDownListBox11222005064123AM/DropDownListBox.aspx
http://www.c-sharpcorner.com/UploadFile/sd_patel/DropDownListBox11222005064123AM/DropDownListBox.aspx
Load xml document to DataSet
This article describes the process
http://www.java2s.com/Code/VB/XML/LoadxmldocumenttoDataSet.htm
http://www.java2s.com/Code/VB/XML/LoadxmldocumenttoDataSet.htm
Thursday, September 18, 2008
MVC - JQuery
Here is a very nice sample on using using JQuery with ASP.NET MVC Framework
http://www.bryanhales.com/archive/2008/08/16/easy-ajax-with-the-asp.net-mvc-framework-and-jquery.aspx
http://www.bryanhales.com/archive/2008/08/16/easy-ajax-with-the-asp.net-mvc-framework-and-jquery.aspx
Wednesday, September 17, 2008
Displaying the Files in a Directory using a DataGrid
In his article from http://aspnet.4guysfromrolla.com/articles/052803-1.aspx
Scott Mitchell describe the method.
Here is the c# version
Here is the aspx page
Scott Mitchell describe the method.
Here is the c# version
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
namespace WebApplication2
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
var rootFolder = @"C:\Documents and Settings\All Users\Documents\Mes images\Échantillons d'images";
var selectedImages = from file in Directory.GetFiles(rootFolder,"*.jpg")
select new {
Name= new FileInfo(file).Name,
};
imageList.DataSource = selectedImages;
imageList.DataBind();
}
}
}
Here is the aspx page
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication2._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DataGrid runat="server" ID="imageList" Font-Name="Verdana"
AutoGenerateColumns="False"
AlternatingItemStyle-BackColor="#eeeeee"
HeaderStyle-BackColor="Navy"
HeaderStyle-ForeColor="White"
HeaderStyle-Font-Size="15pt"
HeaderStyle-Font-Bold="True">
<Columns>
<asp:HyperLinkColumn DataNavigateUrlField="Name"
DataTextField="Name" HeaderText="Nom du Fichier"
ItemStyle-ForeColor="DarkOrange"
ItemStyle-BackColor="#FF0066" />
</Columns>
</asp:DataGrid>
</div>
</form>
</body>
</html>
Sunday, September 14, 2008
Building a Plug-In Architecture Using C#
Matthew Cochran shows us a way to create such a project
http://www.c-sharpcorner.com/UploadFile/rmcochran/plug_in_architecture09092007111353AM/plug_in_architecture.aspx
http://www.c-sharpcorner.com/UploadFile/rmcochran/plug_in_architecture09092007111353AM/plug_in_architecture.aspx
Generics in C#
This article explains the importance of generics and their use.
http://www.c-sharpcorner.com/UploadFile/Ashush/GenericsInCSharp03232008084615AM/GenericsInCSharp.aspx
http://www.c-sharpcorner.com/UploadFile/Ashush/GenericsInCSharp03232008084615AM/GenericsInCSharp.aspx
Factory Patterns in C#
A definition of this design pattern
http://www.c-sharpcorner.com/UploadFile/rajeshvs/FactoryPatternsinCS11202005231940PM/FactoryPatternsinCS.aspx
http://www.c-sharpcorner.com/UploadFile/rajeshvs/FactoryPatternsinCS11202005231940PM/FactoryPatternsinCS.aspx
Subscribe to:
Posts (Atom)