December 2007 - Posts
In this article the author shows how to display a simple popup window to the user with the ModalPopup Extender available in the ASP.NET Ajax Toolkit. After giving a few example cases of when to use the ModalPopup, the author walks through how to use this AJAX Extender control using source code snippets and a source download.
Read more...
Our objective is to provide an Ajax equivalent to WinForms’ MessageBox and Javascript alert, which is adapted to both the HTTP submit pattern and the display of messages of Ajax callbacks. The function is fulfilled by an information box ASP.NET server control which displays messages within the page. Our environment is ASP.NET 2.0 on Windows and IIS and our information box uses ASP.NET Ajax Extensions 1.0 which you can download and install from http://www.asp.net/ajax/.
Read more...
Our objective is to provide a mean to manage small lists of items in the browser, including adding and removing items, where the final list can be posted to an ASP.NET server. This function is fulfilled by an ImageList control which is inspired from the WinForms’ ListView control. Our environment is ASP.NET 2.0 on Windows and IIS and our image list uses ASP.NET Ajax Extensions 1.0 which you can download and install from http://www.asp.net/ajax/.
Read more...

You are developing a desktop application for managing a fitness center. The members information is of course to be stored in a database, so you define a "Members" table with fields such as name, birth date, telephone, and the like. But your happiness ends when you are faced with the requirement of recording the member's photo together with the rest of the data. Then the second most trascendental question in human history (right after the meaning of life) comes to your mind: Should I store the photo in the database for the sake of data consistency, or in the local filesystem for the sake of performance?
This article presents a C# class that will allow you to grab the best of two worlds.
Read more...
Task Scheduler is the Windows service that schedules and automatically starts programs. Windows Explorer presents a user interface to the service when you browse the %WINDIR%\TASKS folder, typically from the shortcut in the control panel. From the command line, the schtasks command and the old at command do the same. Programmers have a well-documented COM interface, but the .NET framework does not offer any wrapper for it. The present library provides that .NET wrapper.
Note: Since this library was created, Microsoft has introduced a new task scheduler (Task Scheduler 2.0) for Windows Vista. This library is a wrapper for the Task Scheduler 1.0 interface, which is still available in Vista and is compatible with Windows XP, Windows Server 2003 and Windows 2000.
Read more...
Have you ever had to do something like this:
string typeName = "MyDataType";
Type type = Type.GetType( typeName );
object o = someGenericClass<typeof(type)>();
If you have, then you have also discovered that this does not compile. The good news is this capability is possible in C#, but its not obvious. This article is aimed at unmuddying the waters surrounding reflection and generic types. We will show how to accomplish this with a generic class (and, as an added bonus, the equivalent functionality for generic methods too).
Read more...
GenericDataGridView is a new control which is more flexible for coding than a simple datagrid. However, there are a lot of developers who are facing diffulties about DataGridView Calendar, Mask, ComboBox and also Validations. Actually, GenericDataGridView does not support such as important properties.
Generic Data Grid View is a user control which can be really helpful for,
1) Adding a combobox to DataGridView (DataGridViewComboBoxColumn),
2) Adding a calendar to DataGridView (DataGridViewCalendarColumn),
3) Adding a MaskedTextBox to DataGridView (DataGridView MaskedTextBox Column),
4) Validating DataGridView Columns,
5) Saving any editted row with automatic created queries.
Read more...
In November, Microsoft released the final version of ASP.NET 3.5 and Visual Studio 2008. As discussed in An Overview of ASP.NET 3.5 and Visual Studio 2008, version 3.5 is not a major reworking of the .NET Framework. Rather, it adds new classes and functionality on top of the existing core.
If you've had a chance to check out Visual Studio 2008, you may have noticed that it creates a rather verbose Web.config file with a bevy of configuration elements not found in the more terse Web.config file created by Visual Studio 2005. Likewise, when opening an existing Visual Studio 2005 project in Visual Studio 2008, you are prompted with a dialog box asking if you want to upgrade the website to use .NET Framework version 3.5. If you click Yes, Visual Studio updates the application's Web.config file to include the additional markup.
In this article we will examine each of the additional configuration elements added by Visual Studio 2008 to ASP.NET 3.5 applications.
Read more...
In the new version (.NET framework 3.5), Microsoft have provided a way to define the queries in the programming language (C# 3.0, VB.NET 9.0) using LINQ which is called Language-Integrated query. It's basically a programming concept to query the data against the following :
- database (LINQ to SQL),
- dataset (LINQ to Dataset),
- xml (LINQ to XML) and
- objects (LINK to Entities).
In this article John Prabhu will show you an approach on how to build multi-tier web application in ASP.NET 3.0 Using LINQ to SQL. In the present programming world, creating N-Tier application has become a common practice. and .NET framework is more flexible in providing a greater support to do the same. In general N-Tier applications have the following layers or tiers : 1. Presentation 2. Business Logic 3. Data Access and 4. Database Layer. Each of these layers serves a dinstinct task. The architecture explained in this article is similar to the classic N-Tier but will replace the Database layer with a new layer called DataLinq Layer that Uses LINQ to SQL to perform the database operation.
Read more...
Social sites may have the spotlight at the moment, but online shopping sites have held an important place in the Internet economy for years. With electronic commerce so vital, it shouldn't be surprising that ASP.NET offers a useful framework, dubbed ASP.NET AJAX, to help you build such a site. This article, the first of eleven parts, starts you off on a step-by-step journey to building the e-commerce site of your dreams.
Read more...
More Posts
Next page »