How to concatenate and display 2 fields in a dropdownlist

Method1 ‘Select FirstName + ’ ’ + LastName as fullname from Employees’ then use ’fullname’ as the datatextfield for the dropdownlist Method2 Dim newColumn As New DataColumn() With newColumn .ColumnName = ‘fullname’ .DataType = System.Type.GetType(‘System.String’) .Expression = ‘LastName+’ ’+FirstName’ End With ds.Tables(0).Columns.Add(newColumn) ddlName.DataTextField = ‘FullName’ ddlName.DataValueField = ’employeeid’ ddlName.DataSource = ds.Tables(0).DefaultView ddlName.DataBind() C# DataColumn newColumn =new DataColumn(); newColumn.ColumnName = ‘fullname’; newColumn.DataType = System.Type.GetType(‘System.String’); newColumn.Expression = ‘LastName+’ ’+FirstName’; ds.Tables[0].Columns.Add(newColumn); DropDownList1.DataTextField = ‘FullName’; DropDownList1.DataValueField = ’employeeid’; DropDownList1.DataSource = ds.Tables[0].DefaultView; DropDownList1.DataBind();

How can I reference simple DLL which contains one class but has no namespace assigned to it in an .aspx page

You don’t need a namespace to reference it; anything in the bin folder is implicitly in the same namespace as the page being compiled. So if your class looks like this: Public Class MyClass1 Public Sub New() End Sub public Function getTheName(byval strval as string) as string Return ‘Hello’ + strval End function End Class VB.NET Dim mc As New MyClass1 Response.Write(mc.getTheName) C# MyClass1 mc = new MyClass1(); Response.Write(mc.getTheName);