Software / Technology Tips

Create A PDF To Show Document In Table Format Using C#

I was trying to create a pdf document which should show document in table format in C#. So at first I added iTextSharp library to my application. Then three namespaces: using iTextSharp.text; using iTextSharp.text.pdf; using iTextSharp.text.html; Then added code: Document doc = new Document(PageSize.A4); PdfWriter.GetInstance(doc,newFileStream("/hello.pdf",FileMode.Create)); doc.Open(); Then tried to add table to document using Table…

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

How to compare start and end time in JavaScript

Think of a form where we have entries for start and end time. There obviously we need to check that the end time should be after start time. Here at this point we will need to compare time and preferably that in client side(using Javascript). In Javascript comparing date is quite simple. Just create date…

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

ASP.net project migration issue with ASP.net Ajax. Solution : xhtmlConformance in web.config

Few days back I was stuck with this, and after struggling for few days, doing google for all possible reasons, I found the issue was in web.config file. There was a “xhtmlConformance” tag, which was generated while migrating the project to ASP.Net 2.0.                 When we use the VS 2003 -> VS 2005 Web Project Migration Wizard…

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

How To Convert String Into Hashmap

What is hashmap? A Hashmap is like a foreign language dictionary. You have a key which you use to look up corresponding value.The Hashmap uses a hash of the key for lookups . This is very handy , in the conditions when you have to store a value which has a distinct key and can…

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

Fixed Header and Fixed First Column of a HTML Table using jQuery

Sometimes when designing a table in html page we find a lot of columns for a table which exceeds the width of the page. In this case the horizontal scrollbar of the browser come into play. But when we scroll the horizontal scroll bar we can not see the first column which generally contains the…

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

How to display the GridView Header and Footer when there is no data in the GridView:

Although GridView is a very powerful control provided by ASP.NET, it has a major flaw : Whenever we are populating the GridView from database, then, if there is some data to be shown in the grid then it displays fine(along with Header and Footer) but if there is no data then nothing is shown in…

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

How to create Ordered List in ASP.NET

For almost all HTML controls there are its corresponding ASP.NET controls. For HTML ‘Div’ there is its ASP.NET counterpart ‘Panel’, for HTML ‘Span’ there is ASP.NET ‘Label’. Likewise for HTML ‘Ul’ (Unordered list) there is Bulleted List. Both HTML Unordered list control and ASP.NET Bulleted list control have their own advantages and disadvantages, like –…

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

Creating an Event on Google Calendar using Ruby on Rails

The option to share events on Google Calendar is an important feature introduced by Google to as an answer to the changing needs of users as they spend more time and socialize online. This tip demonstrates how to add an event to Google Calendar using Ruby on Rails. Before starting the application we need to…

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

Hide all tool-tips in jqGrid

Here is a simple tip on jqGrid. Some times there are requirements in the project to hide all the tooltips(that is automatically displayed in all the columns) in jqGrid. So, how we do that? We have to go each column and set the attribute like { title: false } in each column of our grid.…

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

Parsing XML Content in C# – Possible Errors And Walkthrough

Often we deal with XML content/files in our projects, for read/write/parse/save/delete etc.. operations. The two classes that will come handy in this case are XDocument and XmlDocument. XDocument is what we know as the extended version of XmlDocument which was the standard DOM-Style API for XML whereas the former is the LINQ to XML API.…

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