C# Corner

Resources  
  • Asynchronous Request in .NET (C#)Jan 09, 2000. This code sample shows how to call a COM component in .NET framework using C#.
  • Creating a Class and Call it from Main ProgramSep 30, 2000. This article explains how to create your class, add some functions and call it from Main function.
  • A Simple Calculator ClassNov 28, 2000. Code sample shows how to create a simple calculator class and call it from Main C# program.
  • CSDownloadURL : Download Contents of a Web PageDec 03, 2000. CSDownloadURL is a class which has two functions - SetURL and DownloadURL. The set URL sets the current URL and GetDownload downloads the URL contents and returns its contents in a string.
  • Creating an Empty Project using VS.NETDec 04, 2000. This tutorial guides you towards your first C# Empty project step by step. After that I'll show you how to add a class to the project and few members to the class and call this class members from the main method.
  • Creating C# Class Library (DLL) Using Visual Studio .NETDec 09, 2000. This tutorial explains how to create a C# class library(dll) and call it from a C# console client application.
  • Calling a COM Component From C# (Late Binding)Jan 08, 2001. This code sample shows how to call a COM component in .NET framework using C#.
  • Implementing Delegates in C#Feb 04, 2001. The Zip file contains two projects. One is VB.Net and the other is C#. Each project is an example of the same use of a delegate. A base class is derived and the delegate calls a method on several classes derived from the base class.
  • Chat Server and Client in C# Using Remoting TechnologyFeb 16, 2001. This application is a simple Chat server and Client, which is conversion of Java RMI chat server and client. The Java client was a Applet and present application client in Windows Forms.
  • Using Transforms with GDI+ in C#Mar 15, 2001. Transforms are matrices that allow you to rotate and translate your graphics shapes. In this example we are going to rotate a very powerful element in C# called the GraphicsPath.
  • Introduction to SOAPMar 22, 2001. Since the release I have been fascinated with this thing called SOAP, This bubbly new protocol backed by the power of XML is certainly going to make waves in the world of distributed computing. The first thing which comes into our mind is “Why the heck we didn’t think of this before?
  • Developing Web Applications in VS.NET Mar 29, 2001. This tutorial describes about Step-by-step tutorial guides you towards developing your first web application.
  • Using Delegates to Choose Right FunctionApr 01, 2001. The need to call different class method based on some string passed to class is an old problem.
  • Writing Secure Code using C#Apr 06, 2001. Code access security is a mechanism that grants/denies access to resources within a method call. For example, code written by a person may be allowed to write to the disk while code from another one may be forbidden from accessing the disk. This control can be enforced even if the code written by both of them is used within a single application
  • Understanding How Assert Effects SecurityApr 25, 2001. Assert is a security action that is evaluated at run time. Code Access Permission classes and Permission Sets support a method called Assert. Using the Assert method to control access to resources or actions will allow your code to perform actions that it normally has permission to perform and will allow other callers up stream in the call stack to have access that they would not normally have.
  • Ouch! There is a Hook in My C#May 15, 2001. As an extension to the J++ design practice, C# has a syntactic construct, called Attributes, which let you drop hooks to Windows API or modify the runtime semantics, like threading synchronization behavior. The C# has legalized the hooking practice by calling them Attributes, and including them in ECMA C# specification.
  • Graphics Animator in C#May 26, 2001. This program will generate a html page with animated gif. You just need at least 2 gifs and use the program to set the time to display each image.
  • TCP/IPLib SampleJun 22, 2001. This compopnent contains both a TCP/IP server and client. TcpIpClient inherits from System.Net.Sockets.TCPClient and is very straight forward. After construction, specifying the host and port, a network connection is established by calling Connect(). Internally, upon a successful connection, the client receives a TcpIpPacket, which contains a unique cookie that is used in any subsequent transactions.
  • Calling Java Program from C#Jul 18, 2001. This article shows you how to call a Java program from C#.
  • Post in Mobile FormsJul 27, 2001. Till now whatever we are doing is in single page and the traversing between forms take place only in a single Page. If you Remember Something of WML there our most effective funda is posting from one form to other.
  • Providing Style on Mobile PagesAug 03, 2001. This articles explains how to provides style in the mobile pages using Mobile Internet Toolkit.
  • Printing out your W2 Form using C# and .NETAug 07, 2001. This article covers a fairly practical aspect of using a computer - dealing with forms.
  • Editing, Deleting, Sorting and Paging in DataGrid Web ControlAug 08, 2001. The following article is about techniques for editing, deleting, sorting and paging using web Datagrid control.
  • Get the Place Game in C#Aug 14, 2001. I have written a game in C# called Get the Place.
  • Validation Controls in Web Forms: Part IAug 24, 2001. Validation is one of the less talked about areas – often taken for granted.
  • Call Control in Mobile Internet ToolkitAug 24, 2001. This only provides you to make you calls easier but also gives a nice look to your program.
  • Menu Page on Mobile SiteAug 31, 2001. My basic idea to stat this site is to show you a real-world example and how mobile programming can be integrated to a web site. I would try to build this site as useful as I can. If you've got any ideas or suggestions, please don't hesitate to send it to me.
  • Brick Out in C#Sep 17, 2001. Way back, I'd say about 1981 (ok maybe not so far back!), there was a game for the Apple II called Brick Out.
  • Mobile Page Unit of Mobile SiteSep 19, 2001. This is something like creating WAP Pages it is still as usual my basic starting So here i will be storing only some info but What it exactly is the same as if people heard of WAP Pages and many sites offer you to create your own WAP Pages similar to WebPages but limit it to the device size and strength.
  • IComparable: Under the HoodSep 21, 2001. We now calling Array.Sort() on C# Types such as int, char, string will automatically do sorting based on that type.
  • Mobile Page View UnitSep 24, 2001. This addition to the site retrieves the unit and shows the content of that page.
  • Encapsulation in C#Oct 12, 2001. In Object Oriented programming Encapsulation is the first pace. Encapsulation is the procedure of covering up of data and functions into a single unit (called class).
  • Introduction to Pocket PCOct 31, 2001. At the time of writing (Oct 2001) Microsoft has shipped Pocket PC 2002 and also has just released the Visual Studio .NET add-on for Pocket PC called the compact framework.
  • Mark Six on the FlyDec 04, 2001. In this sample, I demonstrate how a WebForm can be called directly as an Image.
  • C# and ActiveX DLLDec 14, 2001. As you know with Visual Basic 6.0, it is possible develop a COM server and implement them in a Visual Basic client program. But this is being done by using Visual Basic. You may wonder about the idea of calling this DLL in a C# Application. Well, C# language provides us a way to call this COM server in a program. When we compile a C# program an Intermediate Language is generated and it is called as Managed Code.
  • Returning an Array Listing using Remote Procedure CallDec 26, 2001. In this article we will create a Web Service that will return an ArrayList of students.
  • Graphics Programming in C#Dec 26, 2001. The new improved version of GDI is called GDI+. The .NET framework provides a rich set of classes, methods and events for developing applications with graphical capabilities.
  • C# Discussion Forum from Harrison LogicJan 29, 2002. Threaded Discussion Forum that utilizes the .NET framework, with C# as the ASP.NET server side language. Uses MS Access Database for data.
  • SOAP Message with Binary AttachmentsFeb 28, 2002. Recently Microsoft announced new format called DIME: Sending Binary Data with Your SOAP Messages.
  • Calling Managed Code from Unmanaged CodeMar 11, 2002. One significant part of developers (including myself) are doing some kind of automation of Microsoft Office. So I will concentrate on opposing side of problem, how to use managed assembly from MS Office or VB script. In this article, I will discuss how to call managed code from unmanaged code.
  • Space Remover UtilityMar 25, 2002. In this article, I want to show you how you can remove white spaces in a web page.
  • .NET COM Interoperability - Part 1: Using COM Components from .NET FrameworkApr 02, 2002. The DotNet framework exposes COM objects through a proxy called the runtime callable wrapper (RCW). The primary function of RCW is to marshal call between a managed client (.Net) and unmanaged COM object. The runtime maintains a single RCW for each COM object.
  • .NET COM Interoperability - Part 2: Using .NET Component from COMApr 02, 2002. When a COM client calls a DotNet object, the DotNet framework will create a COM callable wrapper (CCW). COM clients use the CCW as a proxy for the managed object.
  • WhoIs in ASP.NETApr 15, 2002. Quite often you want to know who owns a particular domain. To obtain the registry information, you go to the respective registry and start a so called WHOIS query (lookup).
  • A Database Component: Inserting Serializable ObjectsApr 23, 2002. The attached zip file contains two projects - a database component (DLL) project and a Windows forms project called Test. Both projects are written and compiled using Visual Studio .NET version 1.0.
  • Tracking your lottery pick on the Web Using .NETApr 29, 2002. A few weeks ago, the New Jersey State lottery was up to 300,000,000 dollars.
  • An XY Plot User Control in GDI+May 24, 2002. This is a follow up of the article written originally for the beta version of .NET. called, A Graphics Component in C#.
  • Custom Error Handling in ASP.NETMay 30, 2002. Structured exception handling is a fundamental part of the CLR and provides .Net programmers a great way of managing errors. In addition to CLR exception system, ASP.Net also provides ways of handling errors.
  • Paging in Mobile Web FormsJun 10, 2002. The biggest difference between web applications designed specially for use on Mobile Devices is the limitation imposed by the small screen size of Mobile devices.
  • Using MSIL Code to Close Application ProgrammaticallyJul 18, 2002. You can use MSIL code to call Win32 APIs and one of the simplest example of it is by closing an application programmatically.
  • Web Forms Code ModelJul 23, 2002. ASP.NET introduces a new programming model for Web Forms to separate the code and visual elements in different files.
  • Master-Detail Display using Nested Repeater Web Forms ControlAug 05, 2002. In this example, we will create a web page that displays a formatted view of data with a master detail hierarchy using nested Repeater controls. We will use the Northwind sample for our example. There are many different ways to accomplish this task. We will use data binding and data relations in an effort to get a simple solution.
  • Master-Detail Display Using Nested Repeater Web Forms ControlAug 05, 2002. In this example, we will create a web page that displays a formatted view of data with a master detail hierarchy using nested Repeater controls. We will use the Northwind sample for our example. There are many different ways to accomplish this task.
  • Implementing Search in a DataList Web Forms ControlAug 07, 2002. Searching for the data and displaying the result in paging on the site it is important functionality for the web type applications.
  • Calling Procedural COBOL from VB.NETAug 28, 2002. Many clients will have existing COBOL source code that they will want to use within the .NET Framework.
  • Calling Procedural COBOL from C#Sep 05, 2002. In a previous article we discussed how to call procedural based COBOL programs from VB.NET.
  • User Management Utility for Web Form Authentication.Sep 06, 2002. This article deals with the management of user login and password information for a Forms Authentication in ASP.NET.
  • Working with COBOL Data Groups in C#Sep 11, 2002. In this article we will begin with a C# console application calling a COBOL DLL file. The C# application will pass it a number of occurrences to create in the table (much like a user requesting a specific number of months to report on).
  • Remoting Calls RecommendationSep 19, 2002. The goal of this article is not to describe remoting technology in details. It is more focused at the practical design and implementation mistakes development process concerning garbage collection and performance.
  • Remoting Calls RecommendationsSep 19, 2002. The goal of this article is not to describe remoting technology in details. It is more focused at the practical design and implementation mistakes during development process concerning garbage collection and performance.
  • Remote Procedure Calls using SOAPOct 04, 2002. Here is the sample RPC (remote procedure call) using SOAP ( simple object access protocol).
  • ATL COM Component, ASP.NET Web Service, and VB ClientOct 14, 2002. This article describes how to use ATL COM Components in ASP.Net web service and how to consume the ASP.Net Web Service from Visual Basic 6 Client. Ultimately the VB6 client calls the method of the COM component created in Visual C++ through the ASP.Net Web Service.
  • Printing Directly to the PrinterOct 21, 2002. Using this code enables you to print directly to the printer using WIN32 api calls and therefore should enable you to print at maximum speed rather than relying in the Windows Printing subsystems.
  • Platform Invocation Services in .NET FrameworkOct 25, 2002. This article will cover the details of Platform Invocation Services provided in .Net Framework. Platform Invoke Services acts as a bridge between the managed and unmanaged code. This service enables managed code to call unmanaged functions which are being exposed by any dynamic link libraries (DLL’s) such as Win32 API’s or any custom DLLs.
  • Working with Win32 API in .NETNov 21, 2002. Windows exposes lots of functionality in the form of Win32 API. Using these API you can perform direct operation in windows, which increases performance of your application.
  • DigitizeAny - A .NET Windows Digitization ToolDec 17, 2002. DigitizeAny uses Win32 API calls to obtain the coordinates of the cursor and then translates to the graph coordinates once set. Since a mouse click would essentially bring to focus the window where it is pointed to, this tool uses the key event to capture the coordinates of the cursor.
  • Filling out your 1040EZ Tax Form in .NETJan 21, 2003. Since the 1040EZ form is only a single page, I thought it would be fun to create a Window Form application that helped into the form. This program will allow you to fill out most of the fields and perform the calculations on certain fields as well.
  • Writing an ActiveX Control in .NETMar 12, 2003. In this example, I will walk you through creating an ActiveX control that will show a simple user interface and accept input from a web page.
  • Accessing COBOL Properties with C#Apr 02, 2003. This article will review a new option for exposing those assets via the use of Properties.
  • Implementing Custom Paging in ASP.NET DataGrid ControlJun 01, 2003. This article shows you how to implement custom paging in ASP.NET DataGrid control.
  • BuckyBalls: An Animated DirectX9 DemonstrationJun 02, 2003. BuckyBalls is an animated Managed DirectX demonstration. A buckyball, or fullerene, is a complex carbon molecule whose full name is buckminsterfullerene. The molecule contains 60 carbon atoms which form what is called a truncated icosahedron. It is shaped like a soccer ball or a geodesic dome, and is named after Buckminster Fuller, the inventor of the geodesic dome.
  • Implementing Caching in ASP.NetJun 10, 2003. This article explains the concepts, advantages and types of caching and the implementation of caching in ASP.NET applications.
  • Using Linked List in C#Jun 25, 2003. What we going to make is a linked list. Yeah I know there is a class which does the same as a linked list called ArrayList, but we (as a diehard C# programmer) want absolute control and knowledge of what we use.
  • Building a Navigation System in ASP.NETJul 16, 2003. This article shows you how to display single record per page and navigate through single record using ASP.NET.
  • Output ASP.NET Page to HTMLJul 29, 2003. There are various reasons why it would be more appreciative to have the html page to be served to client.
  • C# MethodsAug 05, 2003. This article explains hot to define and use methods in C#.
  • Export ASP.NET DataGrid to ExcelSep 08, 2003. Export to Excel is one of the most common functionality required in ASP.NET pages. Users can download the data from the DataGrid into an Excel spreadsheet for offline verification and/or computation.
  • Pros and Cons of ActiveX and DHTML ControlsSep 16, 2003. This document shows a comparison study of web pages using simple ASP and ActiveX Controls. By the End of this document, we arrive at a conclusion of which one to use when.
  • Creating Word Find Pzzules in C# and GDI+Sep 30, 2003. Perusing the newsstands in New York you'll find newspapers, TV-Guides, magazines, and even books. In the magazine section you'll often find crosswords and books containing the puzzles you'll see in figure 1. The books contain pages and pages of puzzles with hidden words contained in the matrix of letters in which you can spend time going blind trying to find.
  • Dynamic Data Grid for Windows Forms Sizing RoutineNov 11, 2003. This article and the attached source code project is called GridLayoutHelper and it allow you to size a Windows Forms DataGrid much like you can an ASP.NET DataGrid.
  • Paging in ASP.NETDec 09, 2003. Days are over when developers had to write complex logic for implementing paging in an ASP pages. With DataGrid control in ASP.NET, paging has become far simpler than it was in earlier ASP days. Using DataGrid control we can implement paging in variety of ways. This document discusses various ways in which we can implement the same.
  • Migrating COM/DCOM Applications in Microsoft .NET FrameworkDec 09, 2003. In the current Internet scenario, various classic applications run on multiple networks. These applications could have been written using different languages like Visual Basic, Visual C++. For example, a retail organization would have different systems, such as an inventory management system, a bill of material systems, and a general ledger system, all implemented using various technologies available for application development. These systems need to be integrated to form a higher-level enterprise information system for an organization.
  • Automatically Break into Code When Calling Debug.AssertDec 22, 2003. This sample creates a dll that once referenced by your ASP.Net or Web Service app, just adding a small block of xml into your web.config file will cause the debugger to automatically break into your code.
  • Reading and Display Source of Web PagesDec 30, 2003. This sample project is made to help ASP.NET developers. This projects highlights how to add HTML page inside your ASP.NET page which is hosted on same or different webserver. This page can still run on that server and only output is included in the ASP.NET page.
  • Distributed Computing Using .NET RemotingJan 05, 2004. AppDomain is an isolated environment for executing Managed code. Objects within same AppDomain are considered as local whereas object in a different AppDomain is called Remote object.
  • Using Web.Config in ASP.NET and ASPJan 09, 2004. Web.config acts as a central location for storing the information to be accessed by web pages.
  • Training and Simulating a Neutral DotNetwork in C# Jan 16, 2004. In this article we will explore a well-known AI algorithm for modeling the training of neural networks called back propagation.
  • Using Index Server for ASP.NET Site SearchJan 23, 2004. This projects highlights how to add search facility to your ASP.NET page using ADO.NET to browse index server search catalogs.
  • Configuring Publisher Policy FileFeb 20, 2004. Versioning in the Microsoft .NET Framework is managed at the assembly level and is only used when locating strong-named assemblies. By default, the common language runtime loads the assembly whose entire version number matches the version number in the calling assembly's metadata.
  • Implementing Security Access Rights in ASP.NET ButtonMar 24, 2004. In Web based Application, each of the users have different privileges and access rights based on their roles. Each of these roles can have read or write access for different Web pages.
  • Constructors In C#May 06, 2004. This article explains constructors in C# with sample examples including constructor overloading, static constructors, and constructor chaining.
  • HTML Client for Web Services using DHTML BehaviorMay 23, 2004. In this example we will access a Web Service created in C# from an HTML client.
  • Difference between passing reference types by ref and by valueSep 02, 2004. We all know the difference between passing value types byval and byref, if the variable is passed byval any change to the variable value in the called function is not reflected back in the callee.
  • Posting Form Data from ASP.NET Page to Another URLSep 27, 2004. This article shows you how to post a Form data to a different URL from ASP.NET pages. For example, you might need to send user to a third party payment processing system using post method. ASP.NET does not provide any straight forward way to accomplish this task.
  • Writing unsafe code - pointers in C#Oct 13, 2004. In this article I will give a short description of one of the feature of C# which are pointers and so-called unsafe code. This subject is particularly close for C++ programmers. Moreover, it is a feature that we do not find in Java.
  • Moving C Structures into .NET with Custom MarshalingDec 17, 2004. Microsoft provides several attributes for marshaling C to C#. In our example we will take the case where we have hundreds of structures and only a few API calls, so we only need to generate the marshaled code for the structures.
  • Passing Values between User Controls and ASPX PageJan 20, 2005. This article is for beginners who are learning. NET. This will be really helpful for them. Beginners will be wondered how to pass values between User Controls and ASPX page .In this article I have listed some of the ways through which you can access and set the User control values in an ASPX page.
  • Performance Improvement in ASP.NET Using CachingFeb 01, 2005. ASP.NET provides caching at several levels for you to leverage and improve the responsiveness of your application by storing the page output or application data across HTTP requests and reuse it. This allows the web server to take advantage of processing the request without recreating the information and thus saving time and resources.
  • Session State Management in Application having ASP and ASP. Net PagesFeb 15, 2005. If we are developing a web application in which both ASP and ASP.NET pages resides, then passing session information from ASP to ASP.NET page or vice versa becomes a critical issue. To share session state between ASP and ASP.NET pages, session state need to be stored in some common format like in database.
  • ASP.NET Page Life CycleMar 04, 2005. In this article, we will see the stages of execution of the ASP.NET Page.

About Call-ASPX-Page

NA

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.
European SharePoint Conference