Software / Technology Tips

How to add a TemplateField to a GridView dynamically?

GridView is a very powerful and highly customizable control provided by ASP.NET. The process of adding a GridView control dynamically to a page is almost same as of the other controls. But the problem comes when you want to add a TemplateField dynamically to a dynamically created GridView control. This is so because the TemplateField…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

jQuery and Asynchronous Postback with UpdatePanel Issue

What  If you are using jQuery in your application then you may be familiar withdocument.ready() function of jQuery. This function executes after all the elements are loaded in the page. So it is a better way to bind the events for elements or to write some initialization Javascript which we want to be called on…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Calling external WebService & parsing its XML Response using Salesforce's Apex

In this Tip, “ is used as external web service , which takes global IP as its request parameter (e.g Then it returns XML data as its response . The format of XML response for above example is as follows 111.93.167.67 Tata Teleservices ISP Tata Teleservices ISP Calcutta IN 22.569700241089 88.369697570801 2 Apex Class public…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Scroll to a specific position in UIScrollView

Dragging the scroller to a specific location automatically when user scrolls through the scroll view the very first time. If we have the requirement of dragging the scoll automatically to a specific position when the user scrolls the first time then just  1. set the scroll view delegate  2. add its protocol and use the…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Bulk Copy with Oracle using Array Binding

In an application one of the biggest overheads of data insertion into the database is making round trips to the DB for insertion purpose. ADO.Net provides a mechanism to copy a bulk of data to SQL server using SqlBulkCopy. But for inserting bulk data into the Oracle database we need the help of ODP.NET (Oracle Data…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

To display text words from a list of words in comma separated form in small div with Javascript

Description While designing websites we often come across situations where we have to display data in limited space  programmatically and we have to split data into chunks to accommodate them. However, if we are dealing with meaningful text then the splitting occurs without taking into account grammatical structures and words structures, so we end up…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Identifying Malware: Virus, Worms, Trojans and Spyware

This tip is intended to help you identify, classify malware and eliminate them from your computer. To make it more convenient I have divided the tip into two parts. This is the first part which discusses different types of malware, the next part will explain how to identify and eliminate malware. The more we take…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Basic PHP security tips

777 as the file or directory permission will allow the nobody user to edit the file and execute it. Always set the php script permission to 755 so that others cannot edit or change it. register_globals = ON allows parameters passed with url to gets initialised as php variable. if ( $KEY == “XXXX” )…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How to get distinct rows from a list using LINQ

How to get distinct rows from a list using LINQ: Think about a situation when records in list are something like below: Employee1: EmployeeId=1, Name=”Name1″, EmployeeType=2; Employee2: EmployeeId=2, Name=”Name2″, EmployeeType=3; Employee3: EmployeeId=3, Name=”Name3″,  EmployeeType=1; Employee4: EmployeeId=4, Name=”Name4″,  EmployeeType=2; Employee5: EmployeeId=5, Name=”Name5″,  EmployeeType=3; And we want the records of Employee1, Employee2, Employee3 (which are actually distinct…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Play audio/video with jplayer

Play audio/video with from your browser using jplayer. A very good player to play audio/video in your website. How to use- 1) Sincce the player is based on jquery, we need to include jquery.js first. for reference we can include 2) now go to : download plugin files extract and place the files in directory…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!