About NGenious Solutions

NGenious Solutions is a Microsoft Certified Gold Partner - specializing in Information Worker and ISV/Software Solutions. We are highly focused on Microsoft SharePoint Technologies, .Net Development, Managed Support (SharePoint & Database) and Mobile Application Development.

Add user in list from csv or excel file using PowerShell


 $spAssigment = Start-SPAssignment    #Use to dispose SPWeb safely $spWeb = Get-SPWeb “http://weburl” -AssignmentCollection $spAssignment     #Get SPWeb Instance $spList = $spWeb.Lists[“ListName”]    #Get list instance $testcsv = import-csv C:\user.csv Write-Host “Start To Add Item” foreach($test in $testcsv) { $spItem = $spList.AddItem() $spItem[“User”] = $test.UserID # .UserID is column name $spItem.Update() # ====================== $UserID

Read More

Responsive GridView for Mobile Phone, Tablet and Desktop display in ASP.Net


 In order to make the GridView responsive,You can use Footable jQuery plugin which is compatible with Bootstrap design. To use Footable jQuery include the following code inside the form tag- <link href=”https://cdnjs.cloudflare.com/ajax/libs/jquery-footable/0.1.0/css/footable.min.css”         rel=”stylesheet” type=”text/css” />     <script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js”></script>     <script type=”text/javascript” src=”https://cdnjs.cloudflare.com/ajax/libs/jquery-footable/0.1.0/js/footable.min.js”></script>     <script type=”text/javascript”>      

Read More

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” >         <Columns>             <asp:BoundField DataField=”Id” HeaderText=”Id” />             <asp:BoundField DataField=”Name” HeaderText=”Name” />

Read More

Window scroll event is not firing in SharePoint


 In SharePoint $(window).scroll() event is not firing because code is load in master page web part zone. SharePoint master page doesn’t use the scrolling on the “body” tag. Add scroll event on div tag with ID=”s4-workspace”. Replace $(window).scroll() code with something like bellow $(‘#s4-workspace’).scroll(function() { alert(‘Hi’); });

JavaScript To Split The Words or Concatenated Word


 <html> <body> First Word:-Hello<br/> Second Word:-world!<br/> <button onclick=”myFunction()”>Click To Split</button><br/> <pre>Concatenation:-<p id=”orgi”></p><br/> First Word:<p id=”demo”></p> Second Word:<p id=”demo1″></p> <script> function myFunction() { var str1 = “Hello”; var str2 = “world!”; var res = str1+”$|$”+str2; document.getElementById(“orgi”).innerHTML = res; var res1 = res.split(“$|$”)[0]; var res2 = res.split(“$|$”)[1]; document.getElementById(“demo”).innerHTML = res1; document.getElementById(“demo1″).innerHTML = res2; } </script> </body> </html>

Read More