Software / Technology Tips

Razor Way | ASP.Net Tip

Razor is a view engine of ASP.NET  MVC .It’s primary objective is to  implement a syntax which is compact ,easy and more fluid. It’s vey helpful in maintaining the flow of  code and markup together with very less hinderance from the control character which programmar has to enter every time he shifts betwenn  code and…

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

How to display the multipage Tiff images over a Web page in ASP.Net?

 Step 1: Place the Literal control on the web page as mentioned below: Step 2; Add the Interop.Tiff2PdfX.dll in the project. Step 3: Call the ConvertTiff2PDF(l_strImgSrcPath, l_strImgDestPath) function to convert the single\multipage Tiff image into the PDF as shown below. Here l_strImgSrcPath will be the source path of the single\multipage Tiff image to be converted. l_strImgDestPath will be the…

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

Using Javascript Intellisense for MS Dynamics CRM 2011 in Visual Studio

The Xrm.Page Script Library Template is a Microsoft Visual Studio 2010 project that provides JScript IntelliSense and JScript libraries which uses Xrm.Page objects and methods.This template provides JScript IntelliSense completion and method documentation. The latest release of the Microsoft Dynamics SDK (Version 5.0.3) contains Microsoft Dynamics CRM Solution and Visual Studio extension that together will…

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

How to Create Custom Configuration Section in ASP.Net3.5

We can create our own configuration section in the Web.Config file and can store any value we want to. Below is an example for creating a custom configuration section.Our custom configuration class will look like the following which contains two properties that is SiteName and ForeColor. using System; using System.Configuration; using System.Web; using System.Drawing; namespace…

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

Google Docs Adds OCR Features

The concept of Optical Character Recognition has been around for a long time but it has never gained as much popularity as it promises to gain this time if Google goes on to impelement it in Google Docs. For the benefit of those unaware, OCR tools are those that can match patterns and extract text from the images, for instance,…

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

Retrieve Hex Code of RGB format color to avoid cross browser back color issue

At times we need to calculate the equivalent hexadecimal code of the RGB color format to avoid cross-browser compatibility issue. For instance, you want to get the background-color of elements but the result is different for each browser. E.g. When you try to get the backcolor of the above given div using JavaScript, the result…

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

Change the UI of ListBox and DropDownList on the fly

The ListBox and DropDownList both are very useful for their own advantages. Their differences lie in their User Interfaces, DropDownList take less space but need more clicks to access while ListBox takes more space but provides everything itself on the page. You can easily change the UI of a ListBox to DropdownList and vice versa.…

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

Debug A Webpage In a Mobile Device Using WEINRE

It describes how to debug a mobile webpage in a phonegap application. Weinre is used to debug a mobile web page remotely. When using  weinre, there are three programs interacting with each other.  Debug Server It’s the HTTP server that’s used by the  Debug Client  and  Debug Target.  Debug Client the web page which displays…

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

Observable binding data to the controls using WinJS.Bind

Goal : Observable binding data to the controls using WinJS.Bind from the JS. Let’s bind a Student data to the text boxes located in the Html file. We will make this binding observable. On any changes made to the data will get reflected in the controls automatically. Add a Student page control (Student.Html, Student.CSS, Student.JS)…

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

Few Tips on C#/.Net

1. Nullable Types/Nullable Modifier(?):  We cannot directly assign “null” value to “Value-Type”. For this purpose nullable types has been introduced in C# 2.0.  using this we can assign null to “Value-Type” variables. For ex:     int? num = null; A nullable type has two members: HasValue: It is set to true when the variable contains a…

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