C# Corner

Resources  
  • Using the ref ParameterMar 06, 2001. The ref keyword on a method parameter causes a method to refer to the same variable that was passed as an input parameter for the same method. If you do any changes to the variable, they will be reflected in the variable.
  • Naming Guidelines in .NETApr 20, 2001. Commenting and following a uniform naming guidelines in your code is one of good programming practices to make code more useful.
  • Serializing Objects in C#May 14, 2001. In simple words serialization is a process of storing the object instance to a disk file. Serialization stores state of the object i.e. member variable values to disk. Deserialization is reverse of serialization.
  • Transaction Web SiteMay 16, 2001. When I started working with this technology I faced a problem dealing with session as in any transaction or Database oriented portal this is a must requirement to deal with.
  • The out and ref Paramerter in C#Jun 12, 2001. The out and the ref parameters are used to return values in the same variables, that you pass an an argument of a method. These both parameters are very useful when your method needs to return more than one values.
  • Using ref and out ParameterJun 20, 2001. When we pass a parameter as ref to a method, the method refers to the same variable and changes made will affect the actual variable.
  • What & Why : Properties :: Part 2Jul 09, 2001. In the part 1 of this series, I discussed about the get method of the properties, with the help of which you can make your variable so that nobody can modify the value of the variable.
  • Is there any need to Boxing and UnboxingSep 21, 2001. With Boxing and unboxing one can link between value-types and reference-types by allowing any value of a value-type to be converted to and from type object. Boxing and unboxing enables a unified view of the type system wherein a value of any type can ultimately be treated as an object.
  • Pointers in C#Oct 25, 2001. C# also supports pointers in a limited extent. A pointer is nothing but a variable that holds the memory address of another type. But in C# pointer can only be declared to hold the memory address of value types and arrays.
  • 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.
  • .NET Static Variables : Better than Application!Feb 22, 2002. In traditional ASP, we always had the Application object to store application-wide variables in.
  • A Shaped Windows Forms Application with Variable OpacityMar 11, 2002. This application demonstrates two simple techniques that beginners might find useful in developing creative new looks for Windows applications.
  • Using DTS from C#Sep 16, 2002. In this article I will concentrate on enumerating, executing and changing properties or global variables of DTS package.
  • Mail Checker 1.0Jan 16, 2003. In this article, author shows how to create a program to check your IMAP mail.
  • Telnet Scripting in C#Jan 28, 2003. This library, written in C#, expands on some telnet code from various other sources, presenting the caller with a number of functions handy for scripting telnet sessions (i.e. SendMessage, SendAndWait, WaitAndSend, WaitFor).
  • Storing Data in C#Sep 17, 2003. In this article, we will talk about C# data types and how data storage works with different types of data types.
  • Creating Word Find Puzzles for the Web in C# and GDI+ Part IIOct 06, 2003. In our last article we showed you how to create Word Find Puzzles inside of a Windows Form. This article will show you the migration process of bringing it over to an ASP.NET application.
  • Live Communication Server 2003 v 1.0Mar 12, 2004. Live Communication server enhances the power of instant messaging and real-time communications to improve employee productivity. It is based on industry-standard protocol and offers secured messaging. It is an extensible system which enables the people to communicate and collaborate on various medias.
  • 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.
  • Will swap work if C# Manipulates Objects by Reference?Feb 15, 2005. C# does manipulate objects by reference, and all object variables are references. On the other hand, C# does not pass method arguments by reference; it passes them by value. Thus, a regular swap method will not work!
  • 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.
  • Out and Ref Parameters in C#Feb 27, 2005. The out and the ref parameters are used to return values in the same variables that you pass an an argument of a method.
  • Session Management in Web Garden using Custom ComponentsMay 17, 2005. This article provides an insight on creating a custom Session Manager component using C#.
  • Session Management in Web Garden Using Custom Components May 17, 2005. This article provides an insight on creating a custom Session Manager component using C#.
  • ASP.NET Session StateSep 21, 2005. Session state is nothing more than memory in the shape of a dictionary or hash table, e.g. key-value pairs, which can be set and read for the duration of a user's session.
  • Template for Designing Web ApplicationNov 14, 2005. This article explains to develop a web application with ease and make it more robust and scalable.
  • Learning Delegates in C#, an IntroductionJan 03, 2006. There is this thing in C# called a delegate, which is going to be crucial to build interactions between our objects. What’s a delegate, you ask? Good question. A delegate is a pointer to a method. What’s that mean? Just like you can pass variable by reference, you can pass a reference to a method. Let me give you an example.
  • Types of VariablesJan 14, 2006. In this article we'll cover the behaviors of variables to Reference Types.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IIIJan 15, 2006. Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article we’ll cover an issue that arises from having reference variables in the heap and how to fix it using ICloneable.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IIJan 15, 2006. Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article I'll cover some of the behaviors we need to be aware of when passing parameters to methods.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IVJan 30, 2006. Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article we’ll look further into Garbage Collection (GC) and some ways to keep our applications running efficiently by using static class members.
  • How to get Security UserId after windows Starts a Session Feb 23, 2006. This article explains how to get the security userid after a succesful login when windows starts the session for authenticated user.
  • Using static variable and Activated Event for Building "Home" Button of Windows applicationApr 10, 2006. In this tutorial I will share experience how , just with the help of a few clicks and a few lines of code , to build a windows application with "Home" button, that allows to return to "Home" form (in fact to close all opened forms by one click) . The examples are written using C#.
  • Server.Transfer : Passing Values from One Page to Another PageJun 19, 2006. Some times, we want to pass values from one page to another page. There are many ways by which we can do this like: by using query string, or session variable, or Server.Transer etc. This article shows you, how to pass values from one page to another page by using Server.Transfer method.
  • Working of Reference Type and Value TypeSep 18, 2006. This article shows you all the difference between reference and value type variables.
  • Tip related to sub containers and SqlDataSourceDec 06, 2006. This article provides some tips when working With Master page or SqlDataSource insert function In VS 2005.
  • ASP.Net State Management TechniquesJan 02, 2007. This article gives brief introduction to various state management techniques in ASP.NET.
  • Read Asp.net Request Param and Session dynamically into propertiesOct 04, 2007. This Article shows how you can use Attributes and Reflection to dynamically populate property with value from param, session or context without writing any addition code. I have used this technique in past and I hope you will also find it useful.
  • F# Tuples and Binding (and more Binding)Mar 26, 2008. Binding in F# is similar to using variables in C# but there are some big differences. This article discusses one of the most used keywords in F# for binding ("let") and how it is different than setting a C# variable. I also cover the tuple F# data structure.
  • Save the application settings for subsequents sessionsApr 19, 2008. It is very important to save the application settings established by the user in the current session, in order to avoid the application pattern establishment for each time a new session is opened.
  • Save the application settings using VS2005 for subsequent application sessionsApr 21, 2008. It is practical to save some usefuls data that can be kept in a separate file when the application is out of the service.
  • Simulating Autonomous Transactions in Microsoft SQL ServerOct 10, 2008. In the article, I will cover how to use table variable techniques in order to simulate the autonomous transaction behavior of Oracle databases in Microsoft SQL Server.
  • SharePoint Quick Start FAQ: Part IIJan 14, 2009. In the previous session of SharePoint article we had discussed about the basics of SharePoint. In this session we will - create site / site collection, understand the ready made functional reusable modules, learn how we can display a simple page and later apply master pages of SharePoint, host a Inline code and behind code page in SharePoint, understand the concept of features and understand step by step how to enable / disable a feature, how do display a feature in Admin.
  • Caching FAQ's: Part IJan 22, 2009. In this section we will touch base on one of important concepts in .NET Caching.
  • Session Timeouts Causes and RemediesFeb 19, 2009. In this article I present a brief checklist that may come in handy while dealing with Session Timeouts in ASP.
  • Singleton PatternJun 09, 2009. In this article we will implement Singleton pattern to maintain global variables in Winform application.
  • Instance Management in WCF Part # 2Jun 23, 2009. This article is part # 2 of Instance Management in WCF. This article will explain Session Full Instance management service. This will explain different Session Mode at Contract level. This will explain Per-session service also. This article will be explaining Session Full Service with a code also.
  • Instance Management in WCF Part # 4Jun 25, 2009. This article is part # 4 of Instance Management in WCF. This article will explain how to work with Session ID in WCF. This article will give theoretical introduction and explanation of coding sample also. It will explain 2 full coding sample that how to work with Session ID in WCF.
  • Session ObjectAug 10, 2009. The Session object is used to store information about a user. The information is retained for the duration of the user session. Variables stored in the Session object are not discarded when the user browses from one page to another, they only destroyed when the user abandons the session or the session time out.
  • State Management in ASP.NetAug 24, 2009. In this article we will see different methods of State Management in ASP.Net.
  • One Way Operation in WCFSep 08, 2009. This article will discuss about One Way Operations in WCF. I am also going to explain One Way Operation with Session full service pros and cons.
  • Using Table Variables Instead of Temporary Tables in SQL ServerOct 23, 2009. This article demonstrates how to use Table variables in SQL Server instead of temporary tables.
  • ASP.NET Web Configuration FileNov 11, 2009. In this article I will explain you about ASP.NET Web Configuration File.
  • Variables in C#Nov 17, 2009. In this article I will explain about variable in C#.
  • C# 3.0 New Features: Part INov 26, 2009. This article explains about the new features introduced in C# 3.0 with sample codes.
  • Debugging and Tracing in C# Feb 04, 2010. In this article I will explain you about the Debugging and Tracing in C#.
  • How to Create Session Variable without Cookies?Mar 05, 2010. In this article you will learn how to Create Session Variable without Cookies?
  • Application State in ASP.NETMar 05, 2010. Application state is used to store data on the application machine. It works as a global variable in other programming languages. Application variable is an object that is shared by the multiple sessions. We can use application variable within page, HttpHandler and Global.asax.
  • Persisting info into session using JavaScriptMay 24, 2010. In this article we will see how to persist info into session using JavaScript.
  • 3 Ways to Do WCF instance Management (Per call, Per session and Single)Jun 07, 2010. Many times we would like to control the way WCF service objects are instantiated on WCF server. You would like to control how long the WCF instances should be residing on the server.
  • How to: Create multiple rows of controls in ASP.Net Jun 09, 2010. This articles illustrates how to create multiple rows of controls in an asp.net web page dynamically using C# code with the help of a Panel, table, Session and ViewState.
  • Temporary Table vs Temporary Variable in SQL ServerJun 11, 2010. We have seen lot of difference between temporary variable and temporary table. Here is a nice difference in Transaction perspective.
  • New Features of ASP.NET 4Jul 03, 2010. In this article, I want to give an overview of the new features of ASP.NET that are included in the .NET framework 4 and Visual Studio 2010.
  • Scope and Type of Variable and Performance in GDi+Jul 05, 2010. In this article you will learn how to Scope and Type of Variable and Performance in GDi+.
  • Transaction and Sessions in Windows Communication FoundationJul 16, 2010. In this article, I am going to show step by step approach using Transaction and Sessions together in WCF.
  • Introduction to Session Initiation Protocol (SIP)Aug 02, 2010. In this article I will provide you an introduction to Session initiation protocol (SIP).
  • GridView Sorting, Paging without using Session, ViewState or CacheAug 29, 2010. In this article you will learn how to use GridView Sorting, Paging without using Session, ViewState or Cache.
  • Code Review and Code Optimization - ASP.NETSep 03, 2010. In this article you will learn how to use Code Review and Code Optimization in ASP.NET.
  • Session Variables as ObjectsSep 22, 2010. Everyone uses session variables at some point in their career. What I am doing is offering what I feel is a better way to deal with session variables.
  • Maintaining Session from the Client Application to the Web ServiceSep 23, 2010. This article is based on maintaining session from the client application to the Web Service.
  • Performance of If-else if tree vs. Switch (multiple variables) in C#Sep 28, 2010. This article demonstrates multiple ways to implement if-else if tree, when there are multiple values to check, and compares their performance to a switch.
  • Values caught in intervalsOct 26, 2010. In this article we will see how to set your variables in defined interval or range.
  • ASP.NET Session and web.config explainedNov 12, 2010. In this article I will explain about ASP.NET Session and web.config.
  • Difference between value type and reference typeDec 02, 2010. This article tells us the difference between value type and reference type variables.
  • Indexing Table Variables in SQL ServerDec 08, 2010. In this article you will learn how to use Index Table variables in SQL Server.
  • Deferred Execution and Immediate Execution in LINQDec 31, 2010. Deferred Execution executes a query only when a loop starts. What I mean here is that, we iterate through the query variable to get the result.
  • Variables and Function in F#Jan 13, 2011. This article shows how to define variables and functions with the let construct in F#.
  • Difference Between Temp Table and Table VariableJan 20, 2011. This article explains the basic differences between table variables and temp tables. Because these things are mostly and widely used for temporary storing mechanism in the stored procedures in sql.
  • Enable Session in SharePoint 2010Feb 07, 2011. In this article I am describing how to enable Session in SharePoint 2010. It is not the same as in SharePoint 2007. It is very important when you work with session state in your custom application.
  • Looking Inside Web.Config configuration file in ASP.NET 3.5Mar 21, 2011. The web.config file contains information that controls module loading, security configuration, session configuration, and application language and compilation settings.
  • Calling Unmanaged Functions Which Take a Variable Number of Arguments From C#Mar 29, 2011. Many C# programmers are familiar with the Platform Invoke mechanism (using the DllImport attribute) for calling unmanaged functions from C#.
  • Getting Session ID in SQL Azure programmaticallyApr 13, 2011. In this article, I will show how to fetch the Session Id programmatically.
  • Constructors in C#Apr 26, 2011. A constructor is a special method available under every class responsible for initializing variables of the class.
  • Hour 4: Understanding 5 ASP.NET State management techniques in 5 hoursApr 28, 2011. Session State Management is a storage mechanism that is accessible from all pages requested by a single Web browser session. Therefore, you can use session state to store user-specific information.
  • Variables And Data Types in JavaJul 01, 2011. Some more Java basics for Java neophytes; this article is about the variables and primitive data types in Java.
  • The Concept of Functions And Variables in F#Jul 05, 2011. In this article you will learn about Functions and Variables of F#. This is for the people who want to have a Quick Review.
  • Using Window Server AppFabric For Caching Your ASP.Net SessionJul 19, 2011. Here I’m going to talk about the caching feature available in the latest version and its use in ASP.Net session management.
  • Object Initializer in C#Jul 29, 2011. Here you will learn some new features in C# 3.0 ike Object initializer, implicitly typed variables, extension methods, anonymous types, object initializer, Collection initializer, and automatic properties.
  • Sesion Servlet in JavaSep 07, 2011. In this article we will know how to use session servlet in Java.
  • How to Access Environment Variables in VisualCOBOLSep 07, 2011. The purpose of this article is to provide the reader with an example of how to read and set environment variables from within a managed COBOL environment. We will utilize a WinForm to provide our user interaction.
  • Scope of Variable in ServletSep 19, 2011. Servlets can use four types of scope for the variables.
  • Introduction to F#Oct 05, 2011. F# is a multi-paradigm .NET language explicitly designed to be an ML suited to the .NET environment. or, F# is a functional programming language that runs on Microsoft's Common Language runtime and the .NET Framework.
  • Creating Generic Enums using C#Oct 11, 2011. An enum variable can then be set to any one of these constants or (in the case of ‘Flags’ enums) to a meaningful combination of them.
  • Sending Automatic mail through ASP.NETOct 20, 2011. In this article we’ll try to make use of Session and we’ll store the value in the session and after a specific interval if the session value is equal to that of the current systems time value then we’ll try to send the mail.
  • Session and Application in ASP.NETNov 01, 2011. This article shows the use of session and application level variables in ASP.NET.
  • Session Management in WCF and SilverlightNov 07, 2011. This article will explain you the code and settings required in different files like web.config, service class, service interface etc.
  • Session Management and Cookies in JAVANov 09, 2011. In this article you will learn about Session Management and Cookie. Also Session Tracking by using Cookies in Java.
  • .NET 3.0 & 3.5 New FeaturesNov 12, 2011. This article is very useful to understand the features of C#. There are many features like Auto implemented property. Anonymous types, Partial methods, object initializes, implicitly typed local variables.
  • Chat application in Expression Blend Using SilverlightNov 21, 2011. In this article I will be demonstrating a simple application in Expression Blend using Silverlight. In this application you wil know how to use remote user class and chat session class.
  • Naming, passing data and capturing variables in ThreadNov 26, 2011. We know that every thread has a name property that you can set for the benefit of debugging. Thread’s name is displayed in the threads window and debug location toolbar.

About Session-variable

NA

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
Download Free eBooks