New answers tagged

0

Below is the code to Create a Publishing Page Programmatically in SharePoint 2013. You will get the idea from it. protected void btnCreatePage_OnClick(object sender, EventArgs e) { try { string currentSite = SPContext.Current.Site.OpenWeb().Title; string strPageURL = txtURL.Text.Trim() + "....


1

When doing a CAML query for the page web URL I use: var fieldsToRead = "<ViewFields>" + "<FieldRef Name='WebPage' />" + "</ViewFields>"; as my CAMLViewFields var web = ($(this).attr("ows_WebPage")); gets the URL for the page. $("#relatedTable").append("<tr>" + "<td>" + "<a href=" + web + ">" + name + "</a>" + "...



Top 50 recent answers are included