Friday, May 31, 2013

How to kill a session on Windows Server(Log off other user from server)

This post is continution to my previous post

http://gadekarsatish.blogspot.in/2013/02/log-off-other-user-from-server.html

In alernative to above approach we can also use below approach

Warm Up Script for SharePoint

You can use this warm up script after deployment in SharePoint it will bring back your site faster thna browser.


Write below line in text file and save as BAT file


####################################################################
powershell -command "& 'D:\Satish\WarmUp\Satish\WarmUp.ps1'"
####################################################################


Write Below lines in text file and save as ps1 file

Discussion Board SharePoint Invalid index. (Exception from HRESULT: 0×80070585)

I got this error When I created SharePoint Discussion Board using C# code.

Resolution

  • Navigate to List Settings
  • Open Current View
  • Unchecked Last Updated field
  • Save view
  • Enjoy
  • Tuesday, April 16, 2013

    Using ID as Query String Parameter in SharePoint (Reserved Query String Parameters for SharePoint)


    While developing custom web part we may need to redirect to some page with some Query String.  In SharePoint there are some reserved query strings

    When creating the SPContext object SharePoint evaluates the following query string parameters if provided(To ensure that the creation of the SPContext object does not fail your application should ensure that your query string parameters are different from those listed below):
    • FeatureId
    • ListTemplate
    • List
    • ID
    • VersionNo
    • ContentTypeId
    • RootFolder
    • View
    • FolderCTID
    • Mode
    • Type
    • PageVersion
    • IsDlg
    • Title
    • _V3List_

    Dont use above query string parameter in your custom development or you will get some error like -Object reference not set to an instance of an object by using query string

    Thursday, April 11, 2013

    Very Basic JQuery Image Slider


    <html>
    <head>
    <script src="jquery-1.8.3.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {

            $(function () {
                $('.fadein img:gt(0)').hide();
                setInterval(function () {
                    $('.fadein :first-child').hide()
             .next('img').fadeIn()
             .end().appendTo('.fadein');
                },
          3000);
            });
        });
    </script>
    <style>

    Sunday, February 17, 2013

    Adding webpart Propert using editor part and fetching list item title with styling


    using System;

    using System.Collections.Generic;

    using System.Linq;

    using System.Text;

    using System.Web.UI.WebControls.WebParts;

    using System.Web.UI.WebControls;

    using Microsoft.SharePoint;

    using ZS.CodeChallenge.V1.common;

    using System.Web;

    using Microsoft.SharePoint.WebPartPages;

    SharePoint document metadata not updating

    I faced a weird issue today, Metadata for document which has lookup column was not updating even after saving the item. There was no erro...