Software / Technology Tips

Use JavaScript to change display text of a lookup field in Dynamics CRM 2011

Usually when we select a value in a lookup field it displays the Primary Name Field in the text after selection. However it holds the PrimaryIDField in the background. While working in a requirement a need arrises to display a field in the LookUp display which is not a PrimaryNameField. Let’s concider the Account Lookup…

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

Retrieval Of The Record Into An Array Using AJAX

This tip is deal with the retrieval of the data from the database by using the AJAX in a web method in an array. Generally while retrieving the data from the database through the SQL query most of the times the database operations are time taken so the loading of the data takes slower. To…

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

Oops… Who Killed My OOPs?

Background: It is very common for people to use   to bind controls in ASP.NET web pages. There are many developers who use to bind controls in their aspx pages. It is also prevalent to bind also using this But is it OK to use this for every single control (let us say all dropdowns) in…

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

Downloading an Image from an external (Image) URL

The url has to be an Image URL, ending with jpeg, png, jpg, gif Note: 1 ) The entire code has not be en implemented following the MVVM pattern Every thing has been done from the code behind just for example purpose. 2 ) The Project should also have a reference to * Microsoft.Xna.Framework.dll *…

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

How To Display The Searched Place In Bing Maps Windows Store App JavaScript SDK In Windows Store App

Following are the steps lets first create a new project and add the Bing maps for javascript reference. Step 1: Add the following in the default.html Search Search clear Step 2:   lets add a new Js file in the Js folder of the project and add the refence in the default.html. Now  we will add…

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

How to detect and identify mounted and unmounted USB device on Mac using Cocoa

There could be a situation in which we have to notify the application about mounting and un-mounting the USB and also to identify the USB i.e on which path it is mounted, what is the type of USB e.g I-Pod, I-Phone , Pen Drive etc. 1. To get the notification for mounting and un-mounting  of…

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

Displaying countdown time on webpage

Some times we need to diaplay countdown time on the webpage. Here is a small javascript code to display countdown time on the webpage. Countdown time countdown_start("timer","07/29/2009 2:00 PM") function countdown_start(divid,givendate) { var given_date = new Date(givendate); var cur_date = new Date(); diff = new Date(given_date - cur_date); secs = Math.floor(diff.valueOf()/1000); count_back(divid,secs); } function calculate(secs,…

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

Keys to developing iframes for offline solutions in MS CRM

Developing Iframe for Offline:- a) While implementing Iframe custom web pages cannot function offline because the Internet connection is absent:So Iframe wont work in the below scenarios and the best solution is to notify the user with a friendly message or have the IFrame detect whether the user is offline and redirect the user to…

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

Run a Project in Device using XCode

Steps to Build and Run a Project in Device in PhoneGap 1.1.0 using XCode 3.2.6 1. Connect your device to the MAC m/c. if Xcode displays the “unknown iOS detected” dialog, let the Xcode collect the information about the iOS version by clicking “collect”. 2. Now launch “Keychain Access”. application -> utilities -> keychain access.…

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

Some best practices while writing ASP.NET code

Use int.TryParse() to keep away from Exception. While using Convert.ToInt32(), if the input parameter is of wrong format and if it can not be convertable into integer then an exception of type “System.FormatException” will be thrown, but in case of int.TryParse() no Exception will be thrown. e.g :- If we are converting a QueryString value…

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