Archive for February, 2007

Our hot discussion on how to generate application definition in Business Data Catalog

February 16th, 2007 No comments

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:

Categories: Uncategorized Tags:

Scarpboy it babe!

February 6th, 2007 No comments

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:

DataList and Runtime Databinding in a Web Part

February 3rd, 2007 No comments

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)

                          // 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;
                     lbldata.Text= Convert.ToString(DataBinder.Eval(((DataListItem)container).DataItem,”ProductName”))



Categories: Uncategorized Tags:

Toronto Code Camp (March 31st)

February 2nd, 2007 No comments

“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: