Author: SibeeshVenu
-
Change your Azure Website URLto your cname for all Posts and Categories
In this article we will learn how we can change our website URL which we have hosted in Azure. And here I am using WordPress as ... -
Read appsetting from a web config file in client side
To read app settings key value from a web config file, do like the following. [js] var datalimit = ‘@System.Web.Configuration.WebConfigurationManager.AppSettings["JQXExcelLimit"]’; [/js] -
Disable the back button of a browser
Add this script to head section of that particular page. [js] <script language="javascript" type="text/javascript"> window.history.forward(); </script> [/js] -
Find out the nth element and get the particular string
To get the nth element [js] $.trim($("#pagerjqxgrid div:nth-child(3)").text()); [/js] To get the 1539 from a string of “1-10 from 1539” [js] $.trim($("#pagerjqxgrid div:nth-child(3)").text().split(‘of’)[1]); [/js] -
Find the span from the series of div and apply style to it
Find the span from the series of div and apply style to it. [css] #columntablejqxgrid div[role="columnheader"]:first-child span{ text-align: left!important; } [/css] It will find out the ... -
Select elements with a specific attribute using JQuery
Here let us assume that we have an HTML mark up as follows [html] <table Id="YearlyGridReport"> <tr level="1"> <td >Header Row1</td> <th ><span>2014</span></th> <th><span>2015</span></th> </tr> <tr ... -
JQuery Language Selector
Using the lang attribute to our HTML element, here I am using a div [js] <div lang="en"> <div lang="en-us"> [/js] Using the JQury Selector to select ... -
Find a string contains a particular string in JQuery
[js] var myVar="sibeesh passion"); if (myVar.toString().indexOf(‘passion’) > 0) { } else { } [/js] The above code helps you to find whether a string contains a ... -
Split method with a string value in c#
As you know a normal split method is accepting only a character . It will throw an error when we give a string to split. This ... -
Find Out the Missing Indexes in SQL
This code helps you to find out the missing Indexes in SQL [sql] SELECT d.[object_id], s = OBJECT_SCHEMA_NAME(d.[object_id]), o = OBJECT_NAME(d.[object_id]), d.equality_columns, d.inequality_columns, d.included_columns, s.unique_compiles, s.user_seeks, ...