Coding is Fun, Coding is Boring, Coding is Love!
Tutorials and Snippets for easy life.
-
Redirect HTTP to HTTPS along with WWW or Without WWW using web.config
After Google has recommended to use SSL in all your websites that collect personal data. Most of the major websites are implementing SSL – secure socket layer for their websites. You can buy a cheap SSL from namecheap.com or Get a free SSL from Let’s…
-
Add Canonical tags on .ASPX pages Automatically using C#
Just a small snippet to add link rel=”canonical” tag to your aspx pages using c# We can use the canonical tag to tell the search engines to discard duplicate pages. if you see a red underline in HtmlLink object, because if it does not has…
-
Solved – DataTable does not support schema inference from Xml
Getting the error: DataTable does not support schema inference from Xml When you are trying to read XML file to DataTable. This error throws when the datatable does not have any columns defined matching the XML FILE. To fix this, Create the DataTable with the…
-
PPC Adwords Keywords Generator and Match Type Tool
A colleague of mine working in Internet Marketing asked to me make a keyword generator and match type tool for his adwords campaigns. This tools creates combinations of keywords with the selected match type. Even if you have keywords and want the match type, just…
-
Getting and Setting New Values in FormView.ItemInserting Event
In this example snippet, i am going to show how to get values from a FormView Control and also assign new values to a field. This is a raw snippet, so if you are searching for an idea to insert or update a value in…
-
jQuery.min.php Malware Affects WordPress Website How to Fix it
WordPress Sucks, One of our site was affected with Jquery.min.php malware. Don’t want to explain more. It just injects a jquery script in the header of your website and alter the last modified date of the affected file so you could not guess which file…
-
Default .htaccess File content for wordpress
WordPress sites are easily hackable, to avoid this you have to update the themes and plugin often. However, if your site is hacked and your .htaccess file is modified in the root. This is what the default htaccess contents are.
-
Get Your Website Indexed in Google Faster
Hi If you have a new site and want to indexed in google in 24 hours or couple days. And you want to go through the hassle of signing up for google webmaster tools. The i found a easy to index some sites in 1…
-
Select/Deselect all Items in asp.net Checkbox list using Jquery
The following snipped shows how to select/deselect all items – check/uncheck all items in asp.net CheckBoxList Control using jquery. I have omitted the page directive from example.
-
Get Registered user email in asp.net identity
We all started to use the new asp.net identity for our user management in asp.net applications. In your asp.net identity system if you are using plain user name as login username then in situations you may need to get the registered user’s email if you…