addItem

Sitecore.SecurityModel.DomainAccessResult result = Sitecore.Context.Domain.Login

string userName = "admin";
string password = "";
Domain domain = Sitecore.Context.Domain;
domain.Login(userName, password);

Database database = Sitecore.Configuration.Factory.GetDatabase("master");

Item item = database.Items["/sitecore/content/Home/Teus/T1"];
this.Label1.Text = item.Name.ToString();

of alles in een list:

string userName = "admin";
string password = "";
Domain domain = Sitecore.Context.Domain;
domain.Login(userName, password);
Database database = Sitecore.Configuration.Factory.GetDatabase("master");
Item item = database.Items["/sitecore/content/Home/Teus"];ChildList mijnList = item.GetChildren (Sitecore.Collections.ChildListOptions.AllowReuse );this.GridView1.DataSource = mijnList;
this.GridView1.DataBind();

{{opmerking.Naam}}:

{{opmerking.OpmerkingText}}

            

Saving your comment....

Naam is verplicht!
Email is verplicht!
Opmerking is verplicht!