Tag Info

New answers tagged

0

You can try setting the current HTTPContext as null, this way sharepoint does not recognise that it is a GET Request. Please see the below code, which worked for me: using (SPSite site = new SPSite(SPContext.Current.Site.Url)) { using (SPWeb web = site.OpenWeb()) { HttpContext ...


0

I've stolen from the mysitehost. There the mysite is create with this mechanic: if (Page.IsPostBack) { SPLongOperation operation = new SPLongOperation(this.Page); operation.LeadingHTML = "Meeting wird erstellt"; operation.Begin(); SPUtility.ValidateFormDigest(); Do site creation ... operation.End(currentMeeting.Url); } // This code ...


2

Create a custom 404 page for your site collection, then either add code behind to it with your own logic as when you want to create a subsite and when not.. OR in SharePoint 2013 create a custom error page, add a content editor webpart to it, and some javscript code which will create a subsite for you, but there is a lot of things that you will require to ...


1

Is the stuff with promises important? If not why not just use 'Include(AllProperties)' to include the properties and do something like this: var context = SP.ClientContext.get_current(); var webs = context.get_site().get_rootWeb().get_webs(); context.load(webs, 'Include(AllProperties)'); context.executeQueryAsync(function(){ var enumerator = ...



Top 50 recent answers are included