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:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1133090
Categories: Uncategorized Tags:
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 Vancouver has come up with a great tool to enable users of Orkut to send and receive instant scraps *without* a web browser. Check out their great product here.
I am sure that the Persian community with all that brutal filtering inside the country will appreciate their innovative idea.
Happy Scrapping!!!
Categories: Uncategorized Tags:
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:
Web Part:
protected DataList _dtList;
protected override void RenderContents(System.Web.UI.HtmlTextWriter writer)
{
EnsureChildControls();
// Database connection and populating a datatable called prDT for example
this._dtList.ItemTemplate = new ProductTemplate();
this._dtList.DataSource = prDT;
this._dtList.DataBind();
this._dtList.RenderControl(writer);
}
protected override void CreateChildControls()
{
this._dtList = new DataList();
this._dtList.RepeatDirection = RepeatDirection.Horizontal;
this._dtList.RepeatColumns = 2;
Controls.Add(this._dtList);
}
ProductTemplate.cs:
public class ProductTemplate : ITemplate
{
void ITemplate.InstantiateIn(Control container)
{
Label itemlbl = new Label();
itemlbl.Width = 110;
itemlbl.DataBinding += new EventHandler(itemlbl_DataBinding);
container.Controls.Add(itemlbl);
}
void itemlbl_DataBinding(object sender, EventArgs e)
{
Label lbldata = (Label)sender;
DataListItem container = (DataListItem)lbldata.NamingContainer;
lbldata.Text= Convert.ToString(DataBinder.Eval(((DataListItem)container).DataItem,”ProductName”))
}
}
Categories: Uncategorized Tags:
“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.
Categories: Uncategorized Tags: