Tuesday, December 31, 2013

Grant access to all authenticated users in your domain for SharePoint


  1. Click Site Actions, and then click Site Permissions.
  2. Click Grant Permissions.
  3. In Select Users, type NT AUTHORITY\authenticated users.
NT AUTHORITY\authenticated users

Copy/Extract/Get DLL files from Global Assembly Cache (GAC)

If you need to Copy/Extract DLL files from Global Assembly Cache (GAC) under path %windir%\assembly or c:\windows\assembly


Open Run (Press Windows + R) and type %windir%\assembly\GAC_MSIL


Run

Select folder with dll name and you will find needed dll under folder named with Version__PublicKeyToken 

GAC File System

Thursday, December 26, 2013

Auto number column in GridView or DataList ASP.NET


You can do it by adding the flowing line of code on GridView ItemTemplate HTML

<%# Container.DataItemIndex + 1 %>


Example:

<asp:GridView ID="GridView1" AutoGenerateColumns="true" runat="server">
    <Columns>
        <asp:TemplateField HeaderText="Sequence">
            <ItemTemplate>

                <%# Container.DataItemIndex + 1 %>

            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>


Sign in as different user on SharePoint 2013


"Sign in as Different User" menu option is missing in SharePoint Server 2013

To work around this issue you can access your SharePoint site using below link

http://{SiteURL}/_layouts/closeConnection.aspx?loginasanotheruser=true

Note: Currently this option does not work in IE 10 and Safari.