Social Icons

Apply Background image to SharePoint 2010 site

Add below lines of CSS and done!!! <style type=”text/css”> BODY { background-image:url(“bg.png”) !important; background-repeat:no-repeat; BACKGROUND-COLOR: transparent !important; }   .s4-ca { BACKGROUND-COLOR: transparent !important; } .ms-alternating,.ms-gb,.ms-alternatingstrong { background-color:…

How to Activate MIME Type using Powershell

$mime = “text/html” $webAppUrl = “http://test.company.com” $webApp = Get-SPWebApplication $webAppUrl If ($webApp.AllowedInlineDownloadedMimeTypes -notcontains $mime) { Write-Host -ForegroundColor White “Adding MIME Type “$mime #$webApp.AllowedInlineDownloadedMimeTypes.Add($mime) #$webApp.Update() Write-Host -ForegroundColor Green “MIME…

Export data table to Excel Sheet(CSV) on Button Click

First You have to Create a grid view that will show details which you want to Export <asp:GridView ID=”GridView1″ CssClass=”footable” runat=”server” AutoGenerateColumns=”false”         Style=”max-width: 500px”…

Detect the device (Mobile/Desktop) in asp.Net

Create a page Desktop.aspx Add the following code in aspx page <asp:Label ID=”lblBrowser” runat=”server” Text = “Desktop” /> Add the following code in code behind(aspx.cs) protected void Page_Load(object…