Thursday, 20 September 2012

How to Enable Anonymous Access ?

Hi,

If you want to enable anonymous access, after creating your Web Applications, then here are the steps to enable it to your site.

Step 1 : Goto Central Administration ->Application Management ->Manage Web Applications




Step 2 : Select the web application for which you need to enable anonymous access



 3 : Select Default (Authentication Providers)



 Step 4 : Select Enable anonymous access and Click Save.

 Step 6 : GoTo the site for which you need to enable anonymous access
 Step 7 : Click on Site actions -> Site Permissions
 Step 8: Click on Anonymous Access 



And for Step 9, we have three options to select
  1. Entire Web Site - Select this option to enable Anonymous access to the entire web site
  2. Lists and Libraries - Select this option to enable Anonymous access only to your lists and libraries, This way you can provide access only to a particular list or a library for your anonymous users.
  3. Nothing 
and than click OK.




Step 10: Done, anonymous access is enabled for your site's Lists and Libraries.


That’s all, If you followed these steps properly you should have now Anonymous Access enabled.

Thursday, 13 September 2012

Picture Library Slide Show Images within fixed size

This slide show web part displays the images with it's original size. Due to this the web part changes its size according to the image size. If we want the slide show to run within the specific size on the page then we need to control the size of the images to the fixed length during runtime.

To achieve this we need to add the picture Library Slide Show web part & insert the following script in that web part.

<style type="text/css">

.ms-WPBody TD {
    PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: auto !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: auto !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING-TOP: 0px
}
.ms-WPBody TD DIV {
    PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 100% !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: auto !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING-TOP: 0px
}
.ms-WPBody TD IMG {
    PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 260px !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 190px !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING-TOP: 0px; align: center
}
.s4-wpcell-plain {
    PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 100% !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: auto !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING-TOP: 0px
}
.ms-PartSpacingVertical {
    MARGIN-TOP: 0px
}
.style1 {
    COLOR: #808080
}</style>

Tuesday, 4 September 2012

Host the Project(asp.net) in IIS Fixing the Error


i Have the webapplication in to server IIS, its Error Will come.
Its was

"Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'"

I will  use this Command line as below,

This can be accomplished by using the –iru parameters when running aspnet_regiis.exe as follows:aspnet_regiis.exe -iru
 
start-> Run--> 

         c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -iru


Saturday, 18 August 2012

Body Onlode Script Loaded not working in Advanced Chrome Browser

Issue with SharePoint 2010 and Google Chrome where the scrolling and ribbon do not work sometimes.


My master page has the following

<body scroll="no" onload="if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();" class="v4master">

Since I am using jQuery anyway, I pulled the code from the body onload and instead used a jQuery document ready method to call this: 

<script type="text/javascript">
  $(document).ready(function(){
   if (typeof(_spBodyOnLoadWrapper) != 'undefined') 
   {
    _spBodyOnLoadWrapper();
   }
  });
</script>


(or)

 just simply past on bottom of the Master page

 <script type="text/javascript">
  _spBodyOnLoadWrapper();
 </script>

Anyway - this seems to have solved my issue. Please try and let me know if this works for you as well.

Tuesday, 14 August 2012

SharePoint SlideShow Using Java script



using this  code in master Page at where you want

 <a href="javascript:gotoshow()">
        <img src="images/1.jpg"" name="slide" border="0" width="300" height="375"></a>

      <script type="text/javascript">
        slideshowimages("images/1.jpg", "images/2.jpg", "images/3.jpg");
        slideshowlinks("#", "#", "#");

        //configure the speed of the slideshow, in miliseconds
        var Sspeed = 2000

        var Currentimage = 0
        var whichimage = 0
        function slideit() {
            if (!document.images)
                return
            document.images.slide.src = Simage[whichimage].src
            Currentimage = whichimage
            if (whichimage < Simage.length - 1)
                whichimage++
            else
                whichimage = 0
            setTimeout("slideit()", Sspeed)
        }
        slideit()
    </script>


After that Add this script to inside the Head tag in SharePoint Master Page.


    <script type="text/javascript">


var Simage=new Array()

var Slink=new Array()

function slideshowimages(){

for (i=0;i<slideshowimages.arguments.length;i++){

Simage[i]=new Image()

Simage[i].src=slideshowimages.arguments[i]

}

}




function slideshowlinks(){

for (i=0;i<slideshowlinks.arguments.length;i++)

Slink[i]=slideshowlinks.arguments[i]

}




function gotoshow(){

if (!window.winslide||winslide.closed)

winslide=window.open(Slink[Currentimage])

else

winslide.location=Slink[Currentimage]

winslide.focus()

}    </script>



That's it... it working all browser.


Monday, 13 August 2012

The expression Condition rules limited to 5?

          However when we try to add conditions for formatting I cannot add more than 5 Conditions? How can this be overcome? 

          You can overcome this by changing your last condition to "The expression" and use "and" or "or" as needed to create your compound condition.

So, for example,

xdUser:get-UserName() != "" and xdUser:get-UserName() != "" and xdUser:get-UserName() != ""

     then change the first drop down to "The expression" -- whatever your condition was will auto populate into the box for the expression.

Thursday, 28 June 2012

Hide the (Select or deselect)Checkbox in Web Part Title bar

Simply add the following style to the Master Page
  <style>
    .ms-WPHeaderTdSelection
    {
         display none;
     }
  </style> 

KendoUI Chart using in AngularJS with Dynamic data

Here i'm going to do the KendoUI Chart using AngularJS  and getting dynamic data from angular services. First need to down-lode the r...