|
|
Front Page News
-
|
|
Filling up Mock objects with random data is possibly one of the most time consuming and boring chapter of writing test cases. Let say we have the following classes and we want to write some mock objects. Mock Object Code Example ...
|
-
|
|
.NET Reflection can be quite handy to transform one object to another, and specially when the target data structure varies a lot. Lets say, a "source party" has a stable Source data structure. But different clients have different requirement and expects...
|
-
|
|
1. Make sure your dynamic controls are Loaded on every postback. Lets play with a very simple example, ASPX <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <body> <form...
|
-
|
|
IntroductionThere are many situations where we need to identify if partial rendering is supported in a page, especially when a control uses javascript, to get the control work in partial rendering mode, the script needs to be registered using a ScriptManager...
|
-
|
|
Declaring a property in C# 3.0 is super easy and super short.public class Student{ public string Name { get; set; }}yes that's it, the framework will take care of the rest, the private variables will be automatically created and the getter...
|
-
|
|
WebRequest is the abstract base class for the .NET Framework's request/response model for accessing data from the Internet. To get content of a website, in .NET 1.0. we used to use WebRequest, which is good and also works asynchronously. public static...
|
-
|
|
The theme of this year’s Imagine Cup is "Imagine a world where technology enables a sustainable environment." It had been a great honorary for me to take part as one the Judges of the 2008 Imagine Cup Australia. All the teams worked real hard and came...
|
-
|
|
Couple of days back me and my colleague, we discovered an issue with the ASP.NET Multi View Control. We were surprised to see that it do not add ViewState, of the dynamically added controls, of the Inactive Tabs. ASP.NET 2.0 ...
|
-
|
|
The following 2 links may help. VS 2005: http://learn.iis.net/page.aspx/431/using-visual-studio-2005-with-iis-70/ VS 2008: http://learn.iis.net/page.aspx/387/using-visual-studio-2008-with-iis-70/...
|
-
|
|
Problem I started writing an ASP.NET Custom Server Control, where I wanted an Image to be Embedded Resource of the Assembly itself, so that, I do not need to ship the images separately, but surprisingly it did not work straightway for me. The following...
|
-
|
|
Very recently I wrote an application where I had to deal with DataSet from a Web Service. Please note, I have no control on the Web Service and I ended up writing a small function which converts DataTable to JSON. I understand I haven't gain anything...
|
-
|
|
Problem: I was trying to debug in Visual Studio 2005 in my new machine which came with Vista Home Premium. Surprisingly I found that none of the break points are touched and I cannot debug. I tried giving all types of permission to the folder but no luck....
|
-
|
|
As professional software developers, we often face a situation where a desparate need of the SQL statement "insert into TableA values..." arises for tests & reviews and due to time constraint, it seems pretty difficult to migrate data from...
|
-
|
|
Please check the following link for all the Power tools and Utilities for Power .NET developers. http://www.hanselman.com/blog/ScottHanselmans2007UltimateDeveloperAndPowerUsersToolListForWindows.aspx OR http://www.hanselman.com/tools...
|
-
|
|
IE 8 Beta1 links are live now. You can download it here:http://www.microsoft.com/windows/products/winfamily/ie/ie8/readiness/Install.htm MIX 08To access additional information including customer and partner demos and footage from the event floor,...
|
-
|
|
This user group consists of .NET preachers from Bangladesh who perform extensive research on different aspects of the platform and futures of it that impact ranging from traditional way of software development to daily life coding. The purpose of the...
|
-
|
|
One of my colleagues Mehfuz Hossain developed a wonderful open source project which allows you to query Flickr photos by LINQ, also lets you insert, delete photos directly to/from Flickr. You wonder how to extend LINQ in such an amazing way? It’s easy...
|
-
|
|
Lets say we want to declare a class in Javascript, which is equivalent to the following C# class.public class Student
{
public string FirstName = "";
public string LastName = "";
public Student( string firstname, string lastname)
{
...
|
-
|
|
I was trying to host a small DNN application in one of our Server and I was facing couple of issues. Problem 1: The first problem I faced is it was always redirecting to localhost, whenever I tried http://domain.com/dnn it was redirecting to http://localhost/dnn...
|
-
|
|
Two common errors done while writing the SqlDataProvider SQL for Dotnet Nuke Modules are1. Not saving the file that contains SqlDataProvider SQL codes in the correct format. A quick trick is to open the files in NotePad and save them as "Unicode".2. Not...
|
-
|
|
Check out the following from Matt Warrens blog posts, if you are interested on how to implement IQueryable Provider. source: http://blogs.msdn.com/mattwar/archive/2007/07/30/linq-building-an-iqueryable-provider-part-i.aspx Part I - Reusable IQueryable...
|
-
|
|
Recently, I came across this great article written by Tomas Petricek, a C# MVP, I thought I would share with you. source:http://tomasp.net/blog/dynamic-linq-queries.aspx Building LINQ Queries at Runtime in C# Since the first beta versions of LINQ we could...
|
-
|
|
In LINQ to SQL, the data model of a relational database is mapped to an object model expressed in the programming language of the developer. When the application runs, LINQ to SQL translates into SQL the language-integrated queries in the object model...
|
-
|
|
ProblemIf you try to query an ArrayList via LINQ you might be surprised to see that its not supported and throwing an exception. In other words the following query will not work at all. ArrayList students = GetStudents();var query = from student...
|
-
|
|
Be careful while querying the disposable object inside an using block, you may find that the yielded objects are all disposed before you have used them. To get over this issue use the ToList() method. You can exit the using block, and yield the results...
|
|
|