Category: Visual Studio
-
URL Encoded Characters
backspace %08 tab %09 linefeed %0A creturn %0D space %20 ! %21 ” %22 # %23 $ %24 % %25 & %26 ‘ %27 ( %28 ) %29 * %2A + %2B , %2C – %2D . %2E / %2F 0 %30 1 %31 2 %32 3 %33 4 %34 5 %35 6 %36 7…
-
Add/Update SP (SharePoint) Site Quota Template using PowerShell
Please see the reusable script: $ver = $host | select version if ($ver.Version.Major -gt 1) {$host.Runspace.ThreadOptions = "ReuseThread"} if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) { Add-PSSnapin "Microsoft.SharePoint.PowerShell" } function AddUpdate-SPQuotaTemplate{ <# .Synopsis This advanced function add/update Site Quota Template. .Description This function uses .NET code to instantiate an instance of an SPQuotaTemplate class. An…
-
Resetting user information in Visual Studio (Sign in as different user), change license to another user account / switch user account
C:\Program Files (x86)\Microsoft Visual Studio 12.0>devenv /resetuserdata 1. Close Visual Studio 2. Start the Developer Command prompt installed with Visual Studio as an administrator. 3. type ‘devenv /resetuserdata’ 4. Start Visual Studio Normally. Other user useful commands: devenv /ResetUserData This command is used to reset user data. Settings in the Tools->Options within Visual Studio will…
-
Relative Paths in SharePoint using SPUrlExpressionBuilder ($SPUrl)
Two useful links: http://thechriskent.com/2012/04/02/relative-paths-in-sharepoint-using-spurlexpressionbuilder-spurl/ http://blog.bugrapostaci.com/tag/spurl/
-
Developer productivity–script to deploy an assembly quickly to Global Assembly Cache (GAC)
Very often we want to deploy the assembly to GAC and test our work, without having to follow a quick deployment process. here is a script which does the assembly deployment (uninstall the old one and install a new version). $ProgamFiles_x86 = "$env:ProgramFiles (x86)" #configure GacUtil environment set-alias gacutil "$ProgamFiles_x86\Microsoft SDKs\Windows\v7.0A\bin\GacUtil.exe" # un-install the old…
-
A .net disassembler/decompiler
Now that Red Gate have started charging for the .NET Reflector tool you might want to check out these free alternatives instead… Telerik JustDecompile JetBrains dotPeek (Open Source) ILSpy [ All can create Visual C# project. The generated code did not compile for JustDecompile and Reflector. In one case, ILSpy made a code that compiled…
-
Url/Uri combine
Isn’t all of us wonder whether there is a good utility method available out of the box to combine uri together, I mean something like Path.Combine(). System.IO.Path.Combine() System.IO.Path.Combine() combines two path strings and manages the trailing separator character (backslash (“\”)). Using Path.Combine() you will get an output which mixes backslashes with forward slashes: string…
-
How the Execution Timeout is managed in ASP.NET
As you are probably aware, it is possible to specify the execution timeout of an ASP.NET request through the config file. All you need to do is to set the executionTimeout attribute on the httpRuntime element in either the web.config (for one ASP.NET application) or even the machine.config (to affect all ASP.NET applications): <httpRuntime executionTimeout="200"/>…