Archives

Archives / 2007 / December
  • Working with ModalPopup Ajax Control

    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.

  • An information box control to display messages using Ajax

    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/.

  • An Ajax image list control to manage list of items displayed with icons

    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/.

  • Database local cache

    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?

  • A New Task Scheduler Class Library for .NET

    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.

  • Generic DataGridView V2.0

    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.

  • Building an ASP.NET AJAX Server-Centric Based Online Shopping Website

    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.

  • Creating a Data Access Layer for Paging in SQL Server 2005

    Visual Studio 2005 introduced a number of tools that allow web developers to create dynamic web pages more easily than ever. The GridView encapsulates most of the functionality needed for displaying and editing tabular data efficiently, and can bind to several types of data sources. The DetailsView is a sibling to the GridView, supporting most of the same functionality but displaying a single record at a time. While these controls can bind to databases through simple DataSets and SqlDataSources, the ObjectDataSource control provides a more clearly defined, more sophisticated -- but potentially more complicated -- connection. For developers looking to model their SQL data within the application through custom classes, the ObjectDataSource allows them to bind their strongly-typed classes to user controls and add a discrete Business Logic Layer to ensure user interactions follow defined rules of behavior.

  • MyFriends : A simple contact keeper using XLINQ/LINQ/WPF

    The other week I was surfing the web and I came across something that perked my interest, and this article is kind of a result of what I found. Basically, I come from a database type of background, so am used to seeing forms with grids, list and listviews which were functional, but looked pretty boring. This is kind of why I like WPF so much, as you can make functional apps, but make them look really sexy. Anyone that has done any WPF will probably know, that there are a couple of data type controls, such a ListBox and a ListView, and with some clever binding and some templating/styling we could probably make these look like a grid. But the truth is that there simply is no DataGrid or anything like that.

  • LINQ to SQL

    This article demonstrates what LINQ to SQL is and how to use its basic functionality.

  • Understanding Code Access Security in .NET

    In Microsoft .NET you have two types of security, Code Access Security and Role Based Security. In this article we will explore what the latter implies, how it can be used, etc. So, what is Code Access Security then? Code Access Security (CAS) is a security feature of .NET that enables the code that is to be executed to be properly verified and different levels of trust granted accordingly. It actually provides the flexibility to define what the code could perform and what not to perform. This article discusses CAS, the functions and benefits of CAS, permissions and permission sets.

  • Creating and Consuming ASP.NET AJAX Page Methods

    Web services provide a great way to exchange data between ASP.NET AJAX pages and a server using lightweight JSON messages (see my previous articles for examples of integrating Web services into ASP.NET AJAX applications). However, creating a separate .ASMX Web service file and adding the ScriptService attribute to the service class may feel like overkill in situations where a single page consumes the service's methods. In some cases, it's more convenient to simply add the functionality provided by the Web service directly into an ASP.NET code-beside page. In these cases, ASP.NET AJAX page methods can be used instead of Web Services.

  • Authenticating Users with ASP.NET AJAX

    However, each time a user logs in to your application, a postback operation occurs which, in some situations, may not be desirable. In cases where you'd like to log users into a Web site without performing a complete postback of a page, you can use the ASP.NET AJAX authentication service instead.

  • DataTableReader in ADO.NET 2.0

    In this fast and furious world, everyone needs everything to be faster. Once upon a time Pentium MMX was considered as faster system, but now we don’t accept even Pentium Dual core as the fastest system. If this is the situation for a computer system, then what will be the situation for the data we managed in our web application? Readers need data to be load faster into their webpage irrespective of the size of data that page contains. So someone in someway needs a solution to overcome this problem. Let us go straight to the concept.

  • Creating Globally Unique Identifiers (GUIDs)

    When storing data, either in a database or other storage medium, it is usual to assign an identifying value or key against each item held.  There are many ways in which to generate such a key.  In an accounting system, the ID for each customer may be entered by the user or generated from other data using a standard that is easy to remember.  In this case, the software will perform a validation check to ensure no duplication.  In other systems a sequential series of numbers may be used to ensure that the keys remain unique.

  • Understanding Interfaces in C#

    Interfaces are a very useful tool built into C#. In this article Brendan explains the basics of how interfaces work and for what they may be used. He explains how to create simple custom interfaces and how to implement them.

  • Code To HTML colorizer

    I published my first professional article! Tough job, I realise now how hard it might be to write a technical book.

  • Flyout - A great way to save space on your webpage.

     This article describles the ASP.NET Flyout Control and its application. Flyout can make your webpage contain more information, look neater and more stylish. Above images shows how Flyout is used as QuickLinks in Microsoft MSDN website. The Flyout control that I would like to introduce here is from obout inc. This Flyout is features-rich and total free: free to download, free to use, free to distribute.

  • DAL Class and Transact-SQL generator for C#.Net

    This program help you write the necessary code for doing base operations of your application's Data Layer (both Web and Windows applications). The function of this program is making a DAL class to easily selecting, manipulating and deleting records of the Database. The result is a simple class for each table in your database.

  • Fast Exporting from DataSet to Excel

    Exporting data from a .NET application to Excel is a very common requirement. A simple search on the Web results in several examples that show us the method to copy data and put it into the Excel cells. However, there is a payload with this method: each interaction to put a value into an Excel cell requires an InterOp invocation. If the amount of data to transfer is huge, we have a problem with the performance of the method. Is there a better way to accomplish this?

  • Jobs Site Starter Kit for ASP.NET 3.5

    Jobs Site Starter Kit (JSSK) is an ASP.NET starter kit demonstrating many features of ASP.NET 3.5 including themes, master pages, data controls, membership, roles, profiles and AJAX. JSSK is a web application that provides a platform for candidates seeking job and the employers to share their needs.