Geeks With Blogs
AzamSharp Some day I will know everything. I hope that day never comes. April 2008 Entries
Silverlight BETA 1 Installation Messed Up!!!!!!

It seems like the installation part of this product is totally messed up. Take a look at the image below in which the left window is running a game created in Silverlight BETA 1 and the right window is displaying the message saying "Install Silverlight". The installation part of the Silverlight is completely messed up!!!!!

Posted On Tuesday, April 29, 2008 8:54 AM

PODCAST: Introduction to the ASP.NET MVC Framework

I just published a new podcast on www.gridviewguy.com. In the podcast I talk about the new ASP.NET MVC Framework. You can download the podcast using the link below:

Introduction to the ASP.NET MVC Framework

Posted On Monday, April 28, 2008 3:27 PM

Creating Bar Chart Using .NET Graphics API => Article Published

I just published an article on www.gridviewguy.com. The article demonstrates how to create simple bar charts using the graphics API provided by the .NET API. You can check out the article using the following link:

Creating Bar Charts Using .NET Graphics API

Posted On Sunday, April 27, 2008 3:13 PM

Understanding Mock Objects
Mock object is basically a mirage of the real object as they posses the same qualities by don't do anything. Mock objects really shines when working with some entity that continuously changes like time, temperature, air speed etc. In this post I will introduce mock objects and how can they be useful when unit testing such entities. I took the idea from a great article published on AspAlliance. The article "Beginning to Mock Using Rhino Mocks and MbUnit" is written by Ben Hall. The idea is that we ......

Posted On Sunday, April 27, 2008 11:08 AM

Creating Bar Graphs in .NET
I always wanted to play around with the graphics API included in the .NET framework. So, I decided to create simple application that creates bar graph using the data supplied. In the past, I have used the WebChart control to fulfill my graphics needs. You can check out the article here. The first task is to create a class that will hold the data from which the graph is plotted. The class is called ExamData class. public class ExamData { private double _score; private string _name; public double Score ......

Posted On Friday, April 25, 2008 4:14 PM

Running Unit Tests Using Post Build Events in Visual Studio

I just published a new article on www.gridviewguy.com which explains how to run unit tests using the Post-Build option in Visual Studio. You can check out the article using the link below:

Using Post-Build Event to Execute Unit Tests

Posted On Tuesday, April 22, 2008 7:19 AM

Creating Better FindControl Method
The default implementation of the FindControl method which is part of the Control class is not recursive. This means that if you are trying to find a TextBox control "txtUserName" which is nested inside a FormView control you cannot use the following code: Page.FindControl("txtUserNa... The reason is that the txtUserName is not contained inside the Page control but actually is a part of the FormView control. So, the only way to access the txtUserName is to use the FindControl method of the FormView ......

Posted On Sunday, April 20, 2008 2:38 PM

Hitchhiker’s Guide to MVP Summit 2008 Part 4
This (04/16/2008) did not started out on the right foot. I missed the last bus to the Microsoft campus which left at 8:15 AM (I know it is too early to be the last bus). So, I went inside the hotel and asked for help. Anyway, I found two other guys who were in the same situation. I told them let’s take a taxi since my company will be paying all expenses. It was in the car that I realized that I am sharing the taxi with David Laribee and Scott Bellware(I guess everything happens for a reason). We ......

Posted On Saturday, April 19, 2008 4:12 AM

Hitchhiker’s Guide to MVP Summit 2008 Part 3
This (04/15/2008) was a fun day! It started out with breakfast where the only thing I could eat was muffins so I ate two of them. I had breakfast with Venkat Subramaniam. We talked a little bit about what we are working on and what exciting things are happening in the technology field. Later during the breakfast I spotted Sahil Malik. A gentleman that I am I immediately went to him and told him about his great book about the ADO.NET framework. The first session was about Silverlight which was given ......

Posted On Saturday, April 19, 2008 3:58 AM

Hitchhiker’s Guide to MVP Summit 2008 Part 2
My flight from Houston to Seattle was pretty smooth and quick. It only took four hours for the entire trip. My hotel was Westin Seattle which is located right in the middle of downtown. Microsoft had arranged the bus service from all the hotels to the Convention Center where the registration took place but I decided to walk. The registration was pretty quick basically they just give you a badge with your name on it and the group that you belonged to which in my case was ASP.NET. After the registration ......

Posted On Saturday, April 19, 2008 3:44 AM

Hitchhiker’s Guide to the MVP Summit 2008 Part 1 (Packing)
Let’s start by saying that I am super excited to attend the MVP Summit 2008. I have a flight on Monday and I can’t wait to be in Redmond. But before I do that I need to do some packing. I am not an alpha geek hence I don’t have much to pack. Following Scott Hanselman wise advice I am taking a power supply with 3 outlets. I got it from the dollar store for … a dollar. The picture below shows the 6 outlet supply but I have the one with 3 outlets. Now, let’s turn to the most important thing, the laptop. ......

Posted On Saturday, April 12, 2008 3:57 PM

Houston .NET User Group Meeting LINQ to SQL Demo Downloads!

I managed to get some time today and recoded all the demos that I presented in Houston .NET User Group meeting. You can download the samples using the link below:

[Download Demo]

Posted On Friday, April 11, 2008 5:43 AM

My Presentation at Houston .NET User Group on LINQ to SQL
Just came back from the Houston .NET User Group meeting. If I can define the whole experience in one word then it would be FUN. My presentation started at 6:45 PM. There were close to 100 people at the presentation. I wanted to start the presentation with a joke so I came up with the following first slide: That worked well as the ice breaker. Off course, I had to make it clear that this presentation is highly code base and consist of total 5-6 slides. I covered the following topics in the presentation: ......

Posted On Thursday, April 10, 2008 4:28 PM

Extracting and Displaying Excel Data on ASP.NET Page
Extracting data out of an Excel file is not that hard. The only problem you might face is creating a valid connection string. Below is a simple Excel file that I will load into a webform. The file has four columns and I have left the first cell of the first column blank (on purpose). Now, let's see how to load it on the page. public class ExcelDataAccess { private static string connectionString = @"Provider=Microsoft.Jet.OL... Source=C:\Timesheet.xls;Ext... Properties=Excel 8.0;"; public ......

Posted On Wednesday, April 9, 2008 2:31 PM

Where the hell is edit, update and delete options for GridView with SQLDataSource?

Ahh!! I am tired of these Microsoft Visual Studio bugs!! I am using GridView with SQLDataSource control and I cannot find the automatic edit, update and delete events. Check out the screen shot below:

where_is_my_edit_and_update

Posted On Tuesday, April 8, 2008 12:37 PM

LEFT JOINS and DefaultIfEmpty Operator in LINQ
Suppose you have a tblRoom and tblUserInfo. Now, you need to select all the rooms regardless of whether the room has user information or not. This calls for a LEFT JOIN which will select everything from the LEFT side (the room side) regardless of the join on the right side. Here is the example. var list = from r in dc.tblRooms join ui in dc.tblUserInfos on r.UserName equals ui.UserName into userrooms where r.CourseID == 1848 from ur in userrooms.DefaultIfEmpty() select new { FirstName = (ur.FirstName ......

Posted On Monday, April 7, 2008 7:45 AM

HttpContext Dependent WebMethods
Recently, I came across a situation where my WebMethod was accessing the Session object. This particular WebMethod was used extensively by the application so I decided to write unit test for it. Here is a simple example of a webmethod. [WebMethod(EnableSession=tr... public int foo() { int userId = Convert.ToInt32(HttpContext... return userId; } First of all I don't really think that using HttpContext inside a WebMethod is a good idea. One of the main purpose of using web ......

Posted On Saturday, April 5, 2008 3:41 PM

Subscribe to GridViewGuy Podcasts

GridViewGuy podcasts are now available on Feedburner. Simply, subscribe to the podcasts using the link below:

http://feeds.feedburner.com/GridViewGuyPodcasts

Thanks,

Posted On Thursday, April 3, 2008 9:21 AM

PODCAST: Introduction to Code Coverage

I have just published a new podcast on www.GridViewGuy.com. In this podcast I talk about advantages of code coverage and how it can help to develop better application with lesser bugs. You can check out the podcast using the link below:

http://www.gridviewguy.com/ArticleDetails.aspx?articleID=394_Introduction_to_Code_Coverage

Posted On Thursday, April 3, 2008 9:20 AM

Copyright © Mohammad Azam | Powered by: GeeksWithBlogs.net