Articles on Microsoft Dot Net Technologies

How to Generate PDF Using CSharp and Convert HTML To PDF
How to Generate PDF Using CSharp and Convert HTML To PDF
Post Office Protocal (POP3)
POP3 is not intended to provide extensive manipulation operations of mail on the server; normally, mail is downloaded and then deleted. A more advanced (and complex) protocol, IMAP4, is discussed in [RFC1730].
XLINQ Example (Dot Net 3.5)
XLinq was developed with Language Integrated Query over XML in mind from the beginning. It takes advantage of the Standard Query Operators and adds query extensions specific to XML. From an XML perspective XLinq provides the query and transformation power of XQuery and XPath integrated into .NET Framework languages that implement the LINQ pattern (e.g., C#, VB, etc.).
Reading and Writing Text File using C#.Net
This C# code snippet writes a text file from an internal string then reads it back using StreamReader, StreamWriter, TextReader, and TextWriter.
A potentially dangerous Request.Form value error
Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack.
Creating and Deleting Folders using ASP.NET 2.0 and C#.NET
This tutorial will show you how to create a directory on the disk using ASP.NET 2.0 and C#.NET The .NET Framework offers a number of types that makes accessing resources on filesystems easy to use.
File downloading in ASP.Net using C#
For downloading a file in ASP.Net we application provides a class WebClient. This class contains method called DownloadData(), with file path as input parameter.
Difference between RegisterStartupScript() method and RegisterClientScriptBlock() method?
The RegisterStartupScript method inserts the specified client-side script just before the closing tag of the Page object's element. The code can access any of the form's elements because, at that time, the elements have been instantiated.
How to create Windows Service in Visual studio 2005 (.Net)
This is a simple example for windows service which automatically send a good morning mail on every day in morning.This service will run for every one hour, if hour value equals to 9 then it sends the mail to the recipants.
DefaultButton property of panel in ASP.Net
The DefaultButton property is used to set or return the id of the default button for the Panel or Form control.
What is Remoting in ASP.Net?
This article describes about what is remoting in dotnet, why we need remoting and how it can be implemented in dotnet with a simple example.
What are Web Parts in ASP.NET
This article discuss about the Web Parts, new feature introduced in ASP.NET 2.0. Web Parts are objects in the Portal Framework which the end user can open, close or move from one zone of the page to another.
Web Part Zones in ASP.NET
There are four kind of zones in web parts Web Part Zone. They are Editor Zone, Catalog Zone, Connection Zone. Web Part Zone: It's a basic unit of web parts. By placing different contents in a web part zone we can allow a user to drag and drop contents on a page.
Encrypt and Decrypt strings in Dot Net for Sensitive Data Like Passwords
This example tells how to Encrypt and Decrypt strings in Dot Net for Sensitive Data Like Passwords by Using C#.Net
What are XML Comments in Dot Net
The XML comments specifies the description of the methods and input and output parameters.
Invoking a Page Method from UserControl in C#
How to Call a Method in ASPX Page from a UserControl in C# and ASP.Net ?
Storing Session State in a SQL Server Database
Before you can actually store a session state in SQL server, you need to configure it. This configuration is done via a command line tool called ASPNET_REGSQL.EXE. You can store the session state in three possible locations within the SQL Server
Get all Methods from a class and all Classes of Assembly
This code snippet shows hot to get all the methods of a specified Class using C#.Net
Sample Code to do Operations with DopDownList
For binding data in Draopdown you need to specify which column is to displayed Draopdown and which column is the value filed. Otherwise Draopdown doesn't is in ambigious to show which column
State Management in ASP.NET
This article discusses various options for state management for web applications developed using ASP.NET. Generally, web applications are based on stateless HTTP protocol which does not retain any information about user requests.
ASP.NET Page Life Cycle Overview
When an ASP.NET page runs, the page goes through a life cycle in which it performs a series of processing steps. These include initialization, instantiating controls, restoring and maintaining state, running event handler code, and rendering.
String Format for Int
Integer numbers can be formatted in .NET in many ways. You can use static method String. Format or instance method int.ToString. Following examples shows how to align numbers (with spaces or zeroes), how to format negative numbers or how to do custom formatting like phone numbers.
Indent String with Spaces
This example shows how to indent strings using method for padding in C#. To repeat spaces use method String.PadLeft. If you call „hello“.PadLeft(10) you will get the string aligned to the right: „ hello“. If you use empty string instead of the „hello“ string the result will be 10× repeated space character. This can be used to create simple Indent method.
Visual Studio in the context of an administrator account
To access local IIS Web sites, you must run Visual Studio in the context of an administrator account.
Binding Site Map to Treeview Programmatically
The TreeView control supports declarative binding to a site-map file by using SiteMapDataSource controls.
Constructor And Destructor
A constructor looks like a special method having no return type and its name is same with the class name. If we do not declare constructor explicitly for a class, compiler will create a default constructor at run time.
How to Implement Forms Authentication Tickets
How to implement Forms authentication tickets and managing user roles based access in ASP.NET using C#
New Features in ASP.NET 4 and Visual Studio 2010 Web Development
New Features in ASP.NET 4 and Visual Studio 2010 Web Development
How to redirect to the login page automatically when session timeout in asp.net
This article explains how to redirect to the Login page automatically when session timeout in asp.net using C#