Recent Articles

Modify MessageBox by MessageBoxManager

| December 18, 2010 | 0 Comments

You want to modify your default System.Windows.Forms.MessagBox look. You want to modify its fonts or its own size. In all you want to modify its appearance. And sometimes you wish to modify or change its functionality to some extent. Well … then there is some good news for you. But its not from Microsoft and […]

Continue Reading

Print integers in reverse order using LinkedLists

| December 15, 2010 | 0 Comments

Scenario: You need to make program in C that can accept numbers from user and print integers in reverse order using LinkedLists. Solution: There are three functions: Insert – Insert each number or integer into LinkedList from user. Reverse – Reverse each number in linkedlist starting from first number in linkedlist. PrintList – Print each […]

Continue Reading

Add first ten odd numbers in C

| December 15, 2010 | 0 Comments

This article demonstrates how to add first ten odd numbers in C starting from 1. I am writing this article as I was preparing assignment of SMU MCA First Semester August 2010 MC0061. So I too faced problem for that. Well … this is solution for those students.

Continue Reading

GridView values to DataTable

| December 11, 2010 | 0 Comments

Sometime you need GridView’s values to DataTable for programming requirement. So this article tries to help you achieve that objective. We have simply declared DataTable and added columns of matching types to it(matching with columns in sql database). And then used foreach loop for each GridViewRow in GridView’s rows to add GridView row to DataTable’s […]

Continue Reading

The type initializer for CrystalDecisions.CrystalReports.Engine.ReportDocument threw an exception

| December 8, 2010 | 2 Comments

Problem I am having simple Window Forms application developed in VS 2005. And in that I am using Crystal Report so that reports can be shown to users. So when I was trying to show report application reported runtime exception as: The type initializer for CrystalDecisions.CrystalReports.Engine.ReportDocument threw an exception Solution I faced this exception because […]

Continue Reading

Disable default button click in Asp.Net

| December 8, 2010 | 0 Comments

If your Asp.Net page is having Button control on it & if user press Enter key of keyboard then default’s button (first button on form declared or if developer set attribute defaultButton of form) click event is fired. This is the default behavior of button click in Asp.Net page. However in some of the browsers […]

Continue Reading

Access page control from class file in App_Code

| October 27, 2010 | 6 Comments

Simple tasks seems hard while development. I too faced the issue of accessing page controls from class files in App_Code folder. But since each and everything is possible in development. This one appears impossible first but now the matter has been resolved. Check it out how… Scenario You are having simple .aspx page with two […]

Continue Reading

Access Page control from User control

| October 23, 2010 | 0 Comments

Many times during programming we need to access .aspx page’s control from our user control. This article just tries to satiate query about how to access page control from user control in Asp.Net. Scenario Suppose you are having user control User.ascx and this user control contains single button with ID btnShow. And you are having […]

Continue Reading

Access App_Code classes in Asp.Net

| October 21, 2010 | 2 Comments

You have added business classes(.cs) in App_Code folder. And now you want to use them either in .aspx page or in .aspx.cs page. Here are the solution for that. I have added a single class with name as File1.cs in App_Code folder. See code snippet: To use in .aspx page Add tag <%@ Import Namespace=“Department”%> […]

Continue Reading

Nested User Controls in Asp.Net

| October 20, 2010 | 1 Comment

Learn step-by-step how to create nested user controls in asp.net, how to dynamically add user control to another user control & how to handle events of user control. Scenario You are having a single .aspx page, two user controls UCA & UCB. UCA contains button and panel. UCB has one label and textbox.  You want […]

Continue Reading