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.

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

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 sender, EventArgs e) { string userAgent = Request.ServerVariables[“HTTP_USER_AGENT”]; Regex OS = new Regex(@”(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino”, RegexOptions.IgnoreCase | RegexOptions.Multiline); Regex device = new Regex(@”1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s

Read More