Bind Dropdownlist using Enterpriselibrary 5.0.
Your aspx page like
<%@
Page Language="C#"
AutoEventWireup="true"
CodeFile="Default.aspx.cs"
Inherits="_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>
City: <asp:DropDownList
ID="ddl_city"
runat="server">
</asp:DropDownList>
</div>
</form>
</body>
</html>
Your .cs file like
using
System;
using
System.Collections.Generic;
using
System.Linq;
using System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
System.Data;
using
System.Data.Common;
using
System.Data.SqlClient;
using
System.Configuration;
using
Microsoft.Practices.EnterpriseLibrary.Common;
using
Microsoft.Practices.EnterpriseLibrary.Data;
using
Microsoft.Practices.EnterpriseLibrary.Data.Sql;

Chirag SolankiPosted Jan 25, 2012, 10:04 AM
hi, Kai jagya e 6o atyare.... prabhu...