State Management in ASP.NET

Web form pages are HTTP-Based, they are stateless,which means they don’t know whether the requests are all from the sameclient, and pages are destroyed and recreated with each round trip to theserver, therefore information will be lost, therefore state management is reallyan issue in developing web applications Wecould easily solve these problems in ASP with [...]

Read more

Using Hidden Fields and Query Strings in ASP.NET

By Joe Mayo You also can store small amounts of information on the client by using hidden fields. Hidden fields are HTML elements, similar to text boxes, where you can store strings. Web browsers don’t display hidden fields in page output. However, when you use a hidden field within an HTML form, the contents are submitted [...]

Read more

Datagrid Tidbit

By Alvin Bruney Have you seen this annoying error with the datagrid? Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount. Permutations of this bug appear to occur when paging is used and viewstate is turned on. Let?s examine why it occurs and, most importantly, how we can cure this ailment. Because [...]

Read more

WebServices with Language Interoperability

By Vijay Cinnakonda A webservice in general is a way of exposing the properties and methods through the Internet In other words, it’s an URL-addressable resource that programmatically returns information to clients who want to use it. A webservice is based on XML standards and has been implemented by different vendors like IBM, Sun Microsystems, CapeClear [...]

Read more

Data Base Independent Data Access Layer

Introduction In this Article I want to describe you how we can approach a data base free data layer. It doesn't mean that we will not use anydatabase, but we will try to incorporate any data source with our datalayer. This kind of problem happen when we are not sure about eitherdata source/Database will be [...]

Read more

C# Chain of Responsibility Pattern

Introduction This article shows a how to make a custom Wizard control using Chain of Responsibility Pattern which passes and returns data between each step. This sample creates a wizard control through windows form. Every step is responsible for its own validation and responsibility is break on each step rather then a single form .Previously [...]

Read more

C# Input, Output, Other File Operations, and Persisting Data

Welcome to the 9th tutorial in the "C# for the Completely Uninitiated" series.   Creating Files Programmatically Reading Files Checking For File Existence Moving a File to Another Location Source code used in this tutorial:   readerwriter.cs streamreader.cs char_by_char.cs file_attributes.cs file_copy.cs Creating Files Programmatically The first thing you need to know about file operations in [...]

Read more

C# Simple, Rectangular, Mixed, and Jagged Arrays, Foreach Loops and Nested For Loops

Welcome to the 8th tutorial in the "C# for the Completely Uninitiated" series..   Simple Arrays Multidimensional (a.k.a. Rectangular) Arrays Jagged and Mixed Arrays Source code used in this tutorial:   namesarray.cs boundslength.cs deptstore.cs jobcandidates.cs simplenested.cs threed.cs Single Dimension Arrays An arrayis a collection of contiguous storage spaces in memory that are setaside to hold [...]

Read more

C# String manipulation, string constructors, string assignment, and the StringBuilder class

Why is string manipulation so important?Because, as programmers, we do so much of it. In fact, on some days, itseems that everything is string manipulation. If you know how toprogram with strings, you're a great way along the journey to becominga powerful programmer. Fortunately, C# provides facilities for workingwith and manipulating strings. In this tutorial [...]

Read more

C# If Statements, Switch Statements, For Loops, and While Loops

So far in our series, we've covereddownloading and installing the free Visual C# 2005 Express Edition IDE,basic variable types, methods (including the crucial 'Main' method),properties, classes, objects, comments, encapsulation, instantiation,namespaces, assemblies, the 'static' keyword, using references, syntaxerrors, the 'private' versus 'public' keywords, brace pairing, and theConsole class. We've also looked at code folding in the [...]

Read more