Skip to main content

Posts

Showing posts from 2014

SharePoint People Editor Control Validation

I was recently working on a visual web part in SharePoint 2013. I added a people editor control on the ascx file. And when I tried to enter the user's name and press enter, the text box started behaving like a multiline textbox. It did not validate the user. Even when I searched for the user and selected, the user did not show up in the textbox. The HTML for the control is simple. I have used this in many other projects. I went crazy. There is so much to learn in SharePoint. SharePoint makes you feel humble, rookie :) This is how the people editor behaved... I tried many things. I even tried to implement Client people picker introduced in SharePoint 2013. Then I stumbled upon a blog by Bill Daugherty II. He had explained about some issue he is facing. Which thankfully worked for me too. http://myspexp.com/2011/03/23/using-the-sharepoint-peopleeditor-in-a-gridview/ The solution was to give a script reference to EntityEditor.js file from _layouts. < script t...

Windows Server 2012 Standard Evaluation Edition Extension

I was recently reviving my Virtual Machine for some testing on SharePoint 2013. I found out that the windows server 2012 standard evaluation license is expired.  Because of this, the VM was getting rebooted every hour. I found out that by running the below script I can stop this from happening. slmgr.vbs -ato But to my surprise it did not work. Because I believe it was already activated. Then I found one more command line script.  slmgr.vbs -rearm This has solved my issue. I can work on SP 2013 peacefully now ;)