Our discussion about how other people are generating application definitions in BDC has become a controversial one (and the most popular post as well). Nick from bdcmetaman defends their great product and in the meantime is considering my replies as an Anti-Microsoft movement 😉 which I respectfully do not agree. It is worth taking a few minutes to read and possibly judge the point I was trying to make:
Well, let’s take a break from the SharePoint/technology in favor of a more personal/marketing post……..
Assaf Koren , my volleyball partner and a close friend in
I am sure that the Persian community with all that brutal filtering inside the country will appreciate their innovative idea.
In order to bind data returned from database or a search query to a datalist at runtime in your web part , there are certain steps that you should take,otherwise data list won’t render its content.The most important step is setting the ItemTemplate property to a proper template:
protected DataList _dtList;
protected override void RenderContents(System.Web.UI.HtmlTextWriter writer)
// Database connection and populating a datatable called prDT for example
this._dtList.ItemTemplate = new ProductTemplate();
this._dtList.DataSource = prDT;
protected override void CreateChildControls()
this._dtList = new DataList();
this._dtList.RepeatDirection = RepeatDirection.Horizontal;
this._dtList.RepeatColumns = 2;
public class ProductTemplate : ITemplate
void ITemplate.InstantiateIn(Control container)
Label itemlbl = new Label();
itemlbl.Width = 110;
itemlbl.DataBinding += new EventHandler(itemlbl_DataBinding);
void itemlbl_DataBinding(object sender, EventArgs e)
Label lbldata = (Label)sender;
DataListItem container = (DataListItem)lbldata.NamingContainer;
“Last year’s Toronto Code Camp was a great success with over 220 attendees, 20 speakers and over $17,000 in prizes. This year’s event is expected to be bigger and better”.
I will also be presenting a session on MOSS 2007.There are already some great speakers and some great sessions planned.If you are available on March 31 2007 register now as seats are limited and come out to this event for great take-aways.