Displaying code snippets in Sharepoint wiki
I found hilite.me which produces html styled code which you can insert into a sharpoint wiki. It supports a number of languages and styles and is an online app.
I found hilite.me which produces html styled code which you can insert into a sharpoint wiki. It supports a number of languages and styles and is an online app.
The error message you are getting tells you exactly what you need to do if you don’t care about the existing database or log. RESTORE DATABASE DAtabaseName FROM DISK = ‘C:\DBName-Full Database Backup’ WITH REPLACE In SQL Server Management Studio (Tasks > Restore), you can add the WITH REPLACE option by opening the page “Options” … Read more
Q. When running with SPSecurity.RunWithElevatedPrivileges (web context) what credentials are being used? A. The App Pool Identity for the web application running SharePoint.
I’m going to buck the trend here a bit. I see SharePoint as a development platform – plain and simple. It utilizes other technologies such as IIS, ASP.NET, SQL Server, and Windows Workflow so I don’t have to reinvent the wheel. It lets me focus on solving business problems instead of worrying about plumbing and … Read more
If the 2nd company is happy for you to access their content in an IFrame then they need to take the restriction off – they can do this fairly easily in the IIS config. There’s nothing you can do to circumvent it and anything that does work should get patched quickly in a security hotfix. … Read more
By default Sharepoint does not allow server-side code to be executed in ASPX files. See this for how to resolve that. However, I would raise that having a code-behind is not necessarily difficult to deploy in Sharepoint (we do it extensively) – just compile your code-behind classes into an assembly and deploy it using a … Read more
To stop the discussion I decided to finally answer this question on my own. There are several really helpful solutions in the comments which I want to gather in this short answer: Introducing a facade / adapter MS Fakes or other frameworks to fake access to SPTimeZone create a fake HttpContext go with the hack … Read more
External Sharepoint site’s text inputs inaccessible on iPhone and iPad [closed]
The application pool will restart and session state will be lost. Imagine each ASP.NET application (as defined in IIS) is a program on the desktop. Saving web.config will do something similar to closing the program and reopening it.
Alternatively you can register a call back delegate which ignores the certification error: … ServicePointManager.ServerCertificateValidationCallback = MyCertHandler; … static bool MyCertHandler(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors error) { // Ignore errors return true; }