Binding an image in a DataGrid

ImageUrl=’<%# “../productimg/” + DataBinder.Eval(Container.DataItem, “imageurl”) %>’

Add an Additional Item To a Databound DropDownList Control in ASP.NET

In ASP.NET 2.0 and onwards things are much easier. The DropDownList control and other list controls now have a AppendDataBoundItems (7) property. With this property set to true, a call to DataBind leaves all existing items in the list. That allows you to add the extra items declaratively in the markup:

<asp:DropDownList ID=”DropDownList1″ runat=”server”
[...]

Select Top Query

Ever had the need to get the 3rd record from a table using a query only?
Well, in case you want to know how to do it here is the select top records query solution:
1) Create a query (Query1) to get the top three records.  We are interested in field called Submit_Date from [...]