A function can have one or more parameters of different data types, but what if you want to pass a function itself as a parameter? How does C# handle the callback functions or event handler? The answer is – delegate.

A delegate is like a pointer to a function. It is a reference type data type and it holds the reference of a method. All the delegates are implicitly derived from System.Delegate class. Read more

Occurs after an item in the repeater control is data-bound but before it is rendered on the page.

Final Output

Repeater with Item Data Bound Event
Repeater with Item Data Bound Event

The following example demonstrates how to specify and code a handler for the ItemDataBound event of the repeater control. The data is modified after it is bound to an item in the repeater control but before it is rendered on the page.

  Read more

In this article, I am going to upload a document programmatically to a SharePoint document library. I am using SharePoint Server Object model to add document. Make sure the SharePoint user has enough permissions (contribute ideally) to add documents, or use “RunWithElevatedPrivileges

Drop me a line if you find this useful. Happy SharePointing! Read more

Close