Speeding Up Visual Studio by Disabling the Startup Page

May 28, 2018

to Tools -> Options then select the Environment node and then select the Startup child node. You can set it up to “Show empty environment”.

Advertisements

jquery select2 length keeps increasing

December 7, 2016

width:198px !important;

Fixing the Width of a Select 2 with a Long Value in a Bootstrap Form Group or Input Group


Remove “Restricted User” in SQL Server 2008

October 10, 2016

ALTER DATABASE DatabaseName SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO
ALTER DATABASE DatabaseName SET MULTI_USER
GO


Dotnet Bangalore training Institute : pragimtech

June 15, 2016

http://www.pragimtech.com/Home.aspx

https://www.youtube.com/user/kudvenkat/playlists

http://csharp-video-tutorials.blogspot.in/


entity framework view not refreshing

November 23, 2015

https://christianarg.wordpress.com/2013/06/13/entityframework-refreshall-loaded-entities-from-database/

AsNoTracking

http://stackoverflow.com/questions/22177491/how-to-force-entity-framework-to-always-get-updated-data-from-the-database


Sharepoint notes : Sharepoint 2013 in maintenance mode

November 16, 2015

http://blog.portiva.nl/2014/06/25/sharepoint-2013-site-stuck-in-read-only-mode/

https://nasironline.wordpress.com/tag/we-apologize-for-any-inconvenience-but-weve-made-the-site-read-only-while-were-making-some-improvements/

Issue : “We apologize for any inconvenience, but we’ve made the site read only while we’re making some improvements.”

So I woke up this morning finding one of our SharePoint 2013 sites in read-only mode. When I browsed the site I got the following message: “We apologize for any inconvenience, but we’ve made the site read only while we’re making some improvements.”

DH-ReadOnly-Screen1

On further investigation I noticed that the nightly backup of this specific site collection did not complete successfully”. When you backup a Site, SharePoint places the site in read-only mode. But since my backup hanged the site never got out the read-only mode.

When you check the site in the Site Collection Quota and Locks Screen you’ll find all options greyed out:

DH-ReadOnly-Screen2

I checked the SPSite.MaintenanceMode setting and it was set to true.

DH-ReadOnly-Screen6

So I first turned to PowerShelll trying to set the lockstate to unlocked. And although I did not get an error, the site was still locked. So I tried good old STSADM. Operation completed successfully but still LOCKED.

DH-ReadOnly-Screen3

DH-ReadOnly-Screen4

Luckily since the April 2013 CU update for SharePoint 2013 we now have the SpsiteAdministration.ClearMaintenanceMode method. So we can clear the flag with the flowing two lines:

$site = new-object Microsoft.SharePoint.Administration.SPSiteAdministration(‘http://intranet.demo.local’)
$site.ClearMaintenanceMode()

DH-ReadOnly-Screen7

and your site is out of maintance mode again!

DH-ReadOnly-Screen8


Sharepoint notes : Invalid characters in filenames

October 30, 2015

As per share point, the below are invalid character in a file name which we are already handing from UI.
” # % & * : ? \ / { | } ~

the below things about share point file names which we have to implement across all the processes.

• Do not use: ” # % & * : ? \ / { | } ~
• File names cannot be longer than 128 characters
• Do not use the period character consecutively in the middle of a file name.
• You cannot use the period character at the end of a file name
• You cannot start a file name with the period character
• Many other symbols are not recommended such as $^()-_=+[]`! (other international currency symbols and international symbols should be avoided in site names, but some are more acceptable in file names. Ascii is preferred when possible.