Friday, April 26, 2013

Infopath Get User's Profile

Monday, April 22, 2013

Json array to get list data

http://code.msdn.microsoft.com/office/SharePoint-2010-Retrieving-ee648f2f


Get choices from a choice field
http://devspoint.wordpress.com/2010/10/26/using-spservices-to-get-the-values-of-a-choice-field/

Thursday, April 18, 2013

MVVM pattern

http://www.shailensukul.com/2011/06/applying-mvvm-principles-to-sharepoint.html

http://www.slideshare.net/jhendrix88/mvvm-magic-in-sharepoint-2010-using-knockoutjs
JQuery file upload plugin

http://www.jainaewen.com/files/javascript/jquery/iframe-post-form.html
http://malsup.com/jquery/form/#getting-started
https://github.com/blueimp/jQuery-File-Upload/wiki/How-to-submit-additional-form-data

I used below one

http://malsup.com/jquery/form/
  1. Error Handling
    1. http://stackoverflow.com/questions/3995355/jquery-form-plugin-no-error-handling
to submit html form with file attachment to a httphandler

<form id='myhtmlform' name='myhtmlform' method='POST' enctype='multipart/form-data' action='MyHTTPHandler.ashx'>

Wednesday, April 17, 2013

To view html document in IE9 mode by default

<!DOCTYPE html>
<meta http-equiv="x-ua-compatible" content="IE=9" >
JQuery MVVM validation

http://jsfiddle.net/andybooth/2GUyX/

JQuery validation

http://docs.jquery.com/Plugins/Validation?em_x=22
http://jsfiddle.net/wTMv3/

Javascript console in VS2012 debug->windows->Javascript Console

Friday, April 12, 2013

Steps to use AntiXSS 4.2.1 are –

1.      Install AntiXSS4.2.1 from below location –

2.      After installation, run the setup file - AntiXss 4.2.1.msi
3.      This will install .dll file (AntiXSSLibrary.dll) at following location –
C:\Program Files (x86)\Microsoft Information Security\AntiXSS Library v4.2\NET35
4.      Add the reference of this .dll file in your project [Right Click on ProjectName -> Add Reference link]
5.      Once this is done, add following line at the top of file where you want to use AntiXSS’s Encode method –
using AntiXSS=Microsoft.Security.Application;

For more details, refer below url –

Monday, April 8, 2013

Windows 7, SharePoint Server 2010 Prerequisites

http://geekdeck.com/windows-7-sharepoint-server-2010-prerequisites/

Sharepoint Error when repairing wssmui.msi not found
http://hax.at/text/50

Installation Items
  1. MS-office
  2. SharePoint prerequisits
  3. SharePoint 2010
  4. SharePoint SP1
  5. SharePoint April 2012 Cumulative Update
  6. Visual Studio 2010
  7. Visual Studio 2010 - SP1
  8. Sharepoint designer 32 bit
  9. Infopath

Tuesday, April 2, 2013

Error: Cannot uninstall Language Pack 0 because it is not deployed when attempting to uninstall-spsolution on sharepoint 2010 foundation

I got above error while trying to unistall wsp package using central admin and also when I tried to unistall using powershell. The timer job trying to unistall this wsp package was stuck and so I was unable to uninstall or remove solution using powershell scripts or central admin site.

Finally after search through internet I restarted SharePoint 2010 Administration Service and also SharePoint 2010 Timer using services.msc. Then I refreshed central admin solution store list and clicked on the solution to see its status, here though status was same (Retracting) I found a new link Terminate Retraction Job, after clicking on this link, I was able to remove the solution and add it back again.

http://blogs.msdn.com/b/kunal_mukherjee/archive/2012/11/13/error-cannot-uninstall-language-pack-0-because-it-is-not-deployed-when-attempting-to-uninstall-spsolution-on-sharepoint-2010-foundation.aspx

http://stackoverflow.com/questions/7589908/cannot-uninstall-language-pack-0-because-it-is-not-deployed-when-attempting-to#

 

Send Email with headers

Secure micro services using jwt and ocelot

  Secure Microservices Using JWT With Ocelot in .NET Core (code-maze.com)