C# Corner

Resources  
  • Get IP Address of a HostDec 03, 2000. The .Net DNS class can be used to get a host name or an IP of a given host name. To use DNS class in your project, you need to include System.Net
  • Mail Merge ProgramMar 16, 2001. This is a simple mail merge program. This program reads from 3 different text files (by default) and merge all the info to produce mail documents.
  • Mail Merge Program - Part 2Mar 21, 2001. This is a simple mail merge program (Part 2). This program reads from the access database (by default) from a specified table.
  • 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.
  • A Better Notepad using C#Jul 30, 2001. We can use windows registry for saving default setting of notepad. We can used notepad in C# easily.
  • TCP Client and ServerSep 20, 2001. You need to compile the server and the client programs separately. Before compiling, change the IP address in both programs to match that of your machine (NOTE: You can get IP address of your machine if you run 'ipconfig' from the command prompt in Windows NT/2000 m/c's)
  • Creating your own Web Server using C#Oct 15, 2001. This article explains how to write a simple web server application using C#.
  • 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.
  • Email Notifier with Microsoft Agent--- GENIENov 16, 2001. Email notifier with Microsoft Agent is a TCP/IP application that notifies the user if there is email in the user's email server.
  • Simple Sniffer in C#Dec 03, 2001. This program shows you how to retrieve data from a packet using Sockets.
  • 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.
  • IP LookUp Program in .NETApr 03, 2002. This is an IP look up program that uses C# Windows Forms and IPHostEntry to resolve the DNS request.
  • IP Address Hostname ConvertorApr 04, 2002. This is an IP Address-Hostname converter written in C# Windows Forms.
  • Trace Utility to Trace IP Packet PathMay 16, 2002. Trace utility traces the path of an IP packet. To understand the process, its important to understand ICMP protocol we are going to use for this purpose.
  • Windows Forms Printer Selection ListJul 30, 2002. In this example we will create a sample windows form containing a combo box which will list the printers installed on the machine on which the program runs. The default printer for the machine is set as the default selection in the combo box.
  • Changing User Information using Active DirectoryAug 14, 2002. If your company is one of the lucky? Ones to implement Windows 2000 Active Directory you may have been looking for a way to populate it with data. Perhaps adding people’s details from a file directly into the active directory.
  • SMTP and POP3 Mail ServerSep 13, 2002. This is simple implementation of SMTP and POP3 server. Two new features are added to the original code.
  • Customizing Default Project SettingSep 26, 2002. "How do I change the default exe name of my project?". I received this question in an email.
  • Implementing Design Patterns in C# - Singleton PatternJan 23, 2003. There are times, when one need to have a class which can be only instantiated once. Singleton Design Pattern addresses to such situation by providing a design for such classes (known as Singleton class).
  • AddressParserFeb 06, 2003. The AddressParser class provides 2 static methods - ParseIpAddress and ParseMacAddress.
  • MultipartForm UploaderMay 16, 2003. MultipartForm Uploader addresses a bug in .NET and also adds the ability to include data fields with the upload.
  • A CLassic Warm Game Over TCP/IP with Multiplayer SupportJun 09, 2003. Worms.NET is an example of networking and graphics programming on .NET. This is a classic game with a worm.
  • Changing the default limit of 25 threads of ThreadPool ClassJun 19, 2003. The Threadpool is useful for managing threads that are usually in a wait state and that take only a short amount of time to do their work. If still you would like to change the default limit of 25 threads then here you go.
  • Enter Null Values for DateTime Column of SQL ServerSep 26, 2003. Inserting a null value to the DateTime Field in SQL Server is one of the most common issues giving various errors. Even if one enters null values the value in the database is some default value as 1/1/1900 12:00:00 AM.
  • Hello World in different StylesJan 09, 2004. I've attempted to write the traditional 'Hello World' in different styles. This explores the different possibilities of addressing a problem - 'Hello World' with different features of C# language and .NET framework.
  • Masked TextBox ControlJan 26, 2004. This Masked Edit TextBox intelligent user control enhances the function of TextBox control, which can mask the Date, IP Address, SSN, Phone number, digit, decimal and check the validation, automatically set delimit location.
  • 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.
  • TFTP application written in C#Jul 07, 2004. This application is the beginning of a program I want to use to download switch/router configuration files via TFTP and archive them. This application merely asks for an IP address and a filename then it receives the file via TFTP and displays it in a RichTextBox.
  • A comprehensive view of SharePoint: Part IINov 19, 2004. Enterprise portals are an important part of today's enterprise IT infrastructure. Portals are used as an entry point for a specific topic, organization, project or team. Many enterprises have an enterprise portal, opened by default when an employee opens up a browser, which shows general information about the enterprise, its strategy, its departments, etc.
  • Posting to another .aspx using ASP.NET Mar 19, 2005. ASP.NET wont allow to post back to another aspx page. It will post back to itself. If you specify action attribute it will ignore it. If you omit the method attribute, it will be set to method="post" by default.
  • Enterprise Library 1.0Apr 02, 2005. Enterprise Library is a set of tested, reusable application blocks that address common problems developers face when developing enterprise-based applications.
  • Accessing Global Address List via System.DirectoryServices NamespaceMay 21, 2005. This is a how-to article to access the GAL from ASP.NET, using the DropDownList ASP.NET server control as the UI. To accomplish this the article will illustrate by utilizing ADSI technology from a C# assembly returning an ArralList in order to bind to the DropDownList.
  • Accessing Global Address List via System.DirectoryServices namespaceMay 21, 2005. This is a how-to article to access the GAL from ASP.NET, using the DropDownList ASP.NET server control as the UI. To accomplish this the article will illustrate by utilizing ADSI technology from a C# assembly returning an ArralList in order to bind to the DropDownList.
  • Using the AnyButton to Create Dynamic Image ButtonsJun 07, 2005. This article describes how to use the AnyButton server control and explains a few extra features.
  • Portscanning for Kazaa using C# SocketsJan 01, 2006. In this article, you will learn how to write c# code to scan a host computer, and determine if it is running Kazaa, the popular P2P file sharing program.
  • Migrating Java RMI to .NET RemotingJan 16, 2006. .Net Remoting and Java RMI are mechanisms that allow the user to invoke method/methods in another address space. The other address space could be on the same machine or a different one. These two mechanisms can be regarded as RPC in an object-oriented fashion. This article describes how to migrate java RMI applications to .NET Remoting applications, with practical examples.
  • Authorization and Programmatic ImpersonationFeb 03, 2006. By default, ASP.NET applications usually do not impersonate the original caller for design, implementation, and scalability reasons. For example, impersonating prevents effective middle-tier connection pooling, which can have a severe impact on application scalability.
  • Deploying ASP.NET 2 Web Site to Production Server: Part IIApr 10, 2006. On the first part we discussed in detail how to move our database which contains the membership tables from the default aspnetdb Database to our database. On this part we will show how to change the default settings of asp.net membership and role providers to read from tables which stored on our database.
  • Building the Address control: Part IJun 12, 2006. Reusability and component oriented development is one of the features of .NET development. This approach may be applied to any project. In this article, I share how you can build your own Address Windows controls and use it from a Windows Forms client application.
  • Building the Address control: Part IIJun 15, 2006. Reusability and component oriented development is one of the features of .NET development. This approach may be applied to any project. In this article, I share how you can build your own Address Windows controls and use it from a Windows Forms client application.
  • Building the Address control: Part IIIJun 17, 2006. Reusability and component oriented development is one of the features of .NET development. This approach may be applied to any project. In this article, I share how you can build your own Address Windows controls and use it from a Windows Forms client application.
  • 10 Measures to Reduce Credit Card Fraud for Internet MerchantsJul 27, 2006. The purpose of this document is to introduce 10 preventative measures that merchants can take in order to minimize credit card fraud. In addition, we would like to take this opportunity to introduce a complete suite of FraudLabs™ Web Services specializing in the analysis of credit card fraud risk for Internet merchants.
  • WCF Application Implementing the Anonymous Client over Certificate WS-Security scenarioNov 17, 2006. This article explains the techniques, architecture and design strategies in order to address one of the most common scenarios of secure communication in Internet, the Anonymous client over Certificate WS-Security scenario using the message level security mechanisms.
  • Text to Speech in Visual C# 2005Dec 20, 2006. This article describes an application used to exercise some of the Text To Speech features available to .NET developers through the Microsoft Speech 5.1 SDK. This article does not address the newer speech server related libraries nor does it address web based deployments of speech related technologies.
  • Simple Web and RGB Color Picker UtilityFeb 08, 2007. The article addresses the construction of a simple utility application useful for selecting an RGB or web color.
  • ASP.NET HTML Postback Custom ControlMar 01, 2007. Web form controls do not offer a complete solution to ASP.Net design and hence HTML tags are still required. Occasionally the need exists for a postback from an HTML tag, this article presents a Custom Control to address this requirement.
  • Error Provider in C#Mar 09, 2007. This article shall address the use of the error provider control in Win Forms application development. The error provider control is most useful in displaying errors associated with data entry tasks on a Windows form.
  • Docking Controls - Standard and CustomMar 16, 2007. This article addresses the user of the standard 2005 toolstrip container control used in conjunction with toolstrips and discusses an approach to building a custom dockable tool palette.
  • Hiding the Date in a Date Time Picker ControlMar 26, 2007. This very short article will address an extremely easy way to hide the date value contained in a date time picker control. While the control contains no property that will allow you to hide the current date, nor to set the value of the control to null or an empty string, it is still possible, and even very easy to generate a date time picker control that does not display a date.
  • Validating the Date in a Date Time Picker ControlMar 27, 2007. This is another short article on the date time picker control. This article will address an approach that may be used to require the user to confirm changing a date.
  • Interoperability between WCF and Oracle Application ServerApr 02, 2007. This article is to illustrate techniques and architecture that address the situation of one service running in WCF and a client consuming this service.
  • TreeView Control in C#Apr 16, 2007. This is an article addressing some of the basics of working with a TreeView control; the article will address dynamically adding TreeNodes to a TreeView control, searching the nodes to find and highlight a single node or a collection of nodes.
  • On-line Address Book in ASP.NET 2.0May 25, 2007. This is an On-line Address Book project. This project is very useful to keep the record and addresses of person. Here in this project we can view all record, edit any record, delete any record, search a record and update any record. This project will be very useful to those who are new or going to his/her first ASP.NET project.
  • C# and VB code mixed together in ASP.NET 2.0Jun 14, 2007. C# and VB.NET code classes can be mixed together in a ASP.NET 2.0. Such mixing of classes in different languages is not allowed with default settings. This article explains how to achieve this.
  • Knowing When to Leave Your Programming Job - Part IJun 21, 2007. This article is the first part in a series to guide you in deciding when it's best to leave your Programming Job. Part I addresses a host of myths that are associated with staying at a dead-end job, and how to combat them.
  • Sending Multiple emails using Mail Merge and SMTP using ASP.NET and C#Jun 26, 2007. This utility is used to send emails to multiple users by using the Mail Merge functionality and SMTP. The prerequisite for the same is that the DataGrid should be populated with the list of the desired recipient's email addresses.
  • WPF Database Communication Adding new Record to the DatabaseSep 06, 2007. WPF Database communication Adding new record to the database (XAML-MS-Access), I have a XAML form with FirstName, LastName, Email & Contact fields in it on click of submit button it will first check if the same email address is exists in the table else it will add new record I have made use of OleDbTransaction to perform add functionality.
  • How to display the records in DataGrid by using the PagingSep 11, 2007. Through this article you will learn the concept of Paging in detail. You can display the large records in DataGrid by using Paging.
  • Extracting the Country from IP AddressSep 25, 2007. Sometimes we want to get visitors details who visit our web site or using client connecting our server. This sample descirbes how to translate IP address and query countrie and city from IP address.
  • Geocoding a physical address using yahoo web services and c#Jan 17, 2008. This article tells you about the web service named yahoo geocoding service.
  • Running a web site in Kiosk mode with c#Jan 30, 2008. This article addresses a simple approach to supporting the display of a web site in kiosk mode using a simple win forms application.
  • Free Geocoder.us web service in c#Jan 30, 2008. This article gives you detailed information about the geocoding service. By using this you can easily estimate the latitude and longitude of a physical address.
  • Building a UNIX Time to Date Conversion Custom Control in C#Feb 15, 2008. This article addresses the construction of a custom control that will convert UNIX time into useful and readable dates for display in a Win Forms application.
  • Using the default keyword in C#May 22, 2008. The keyword default plays several and important roles in the C# language, therefore, I will enumerate some cases where the default keyword is used.
  • Using LINQ to Objects in C#May 26, 2008. This article provides an introduction to employing LINQ to Objects queries to support a simple win forms application; the article addresses the construction of LINQ to Objects statements and then goes on to describe how one might use LINQ to Objects within the context of an actual application.
  • How to Enable Remote Connections in SQL Server 2005Jul 17, 2008. By default, SQL Server 2005 doesn’t allow remote connection so you have to enable it manually. This article shows you how to enable remote connection in your SQL Server 2005.
  • Send Email Messages and Attachments Using C#Aug 05, 2008. This article describes an approach to sending email messages with or without attachments. The code required to send the message is contained within a reusable class. In addition to sending messages and messages with attachments, the class also validates the recipient email addresses using regular expression validation.
  • Tracking Clicks by IP Address Using C# and XMLNov 20, 2008. This is a very simple and easy article, which gives an idea for track the IP address and for getting the number of cliks from a particular system.
  • Support Mobile Browsers with Browser Detection and Redirection Using C#Dec 19, 2008. This article addresses an approach to determining the type of browser used to display a web page within the context of building an ASP.NET application that supports both mobile and standard desktop browsers.
  • What is IPV6Dec 29, 2008. Details about IP Version 6
  • C# and XAML within a Silverlight 2 context? - Binding Modes: Part VIIIDec 30, 2008. In this article I will expose the different binding modes.
  • How to create an address book using XMLJan 19, 2009. In this article I am going to describe how to crete an address book application using XML file.
  • Getting an External IP Address LocallyJan 20, 2009. This short article shall address the easiest way possible to get your external IP address (and local/internal IP address).
  • Changing the DNS or URL (host header) in SharePoint 2007 SiteMay 05, 2009. In this article we will see how to map the sharepoint site with public IP using Alternate Access Mappings.
  • Constructors in C#May 18, 2009. In this article, I will explain the constructor concept in C# along with practical demonstration which will help you to understand it in a simple way.
  • Geographical Information by IP Address in ASP.NET and C#Jun 02, 2009. This article and attached code demonstrates how to get a website visitor's geographical information such as country, region, city, latitude, longitude, zip code, time zone by using his or her IP address.
  • Using Embedded Fonts in Silverlight 2Jun 15, 2009. This articles guides you on how to use other fonts in your application other than the ones provided by default in Silverlight 2.
  • C# 4.0: Named ParametersJun 15, 2009. C# 4.0 has introduced a number of interesting features which includes Optional Parameters, Default Values, and Named Parameters.
  • ABCs of an EndPoint in WCFJul 06, 2009. This article is targeted to beginners in WCF. This is a totally theoretical article explaining the following: all the theoretical concepts of an EndPoint in WCF, Contracts, Addresses in WCF and Binding and where, which binding should be used.
  • Dynamic Data Web Application in ASP.Net 3.5 Extension Part#2Jul 10, 2009. This is Part#2 of ASP.Net Dynamic Data article series. This article will give introductions of different scaffold templates. This article will explain how to customize the templates also. This article is containing three samples which is demonstrating, how to update the default templates.
  • Splash Screen in Silverlight 3 ApplicationJul 30, 2009. In this article we will see how the default Splash Screen can be changed in Silverlight 3 Application.
  • What are Access Modifiers in C#?Aug 20, 2009. In this article I will explain you about accessibility modifiers in C#.
  • C# Command-Line Compiler OptionsNov 08, 2009. In this article let's address each of the compiler options available in C#.
  • Change Date Picker Image in Silverlight 3Nov 11, 2009. In this article we will see how can we change the default image associated with DateTimePicker Control in Silverlight3.
  • Row Header in DataGrid in Silverlight 3Nov 24, 2009. DataGrid in Silverlight 3 has Row Header, but by default it is collapsed. We will see how it can be useful to a DataGrid display.
  • ComboBox Default Selection in Silverlight 3Dec 01, 2009. In this article we will see how we can use default item in ComboBox in Silverlight 3.
  • Transparent Window in WPF ApplicationDec 17, 2009. In this article I will guide you through how to use it. Remember Transparent Windows is not available in Windows XP by default Shell, but in Windows Vista and Windows 7 the Shell supports Transparency.
  • Modifying the existing Tree View control in SilverlightDec 23, 2009. In this article we will see how we can modify the default TreeView control in Silverlight 3.
  • Add a Favicon to your ASP.Net pageFeb 04, 2010. A favicon is the little image displayed at the left edge of the address bar in most browsers, or on the tab.
  • Using StackPanel Silverlight ControlMay 04, 2010. The StackPanel control is a simple layout panel that arranges content into a single line that can be oriented horizontally or vertically (the default).The StackPanel control allow us to stack objects one on top of the other, or next to each other.
  • How to get the MAC address of system using Asp.net/C#May 06, 2010. In this article I want to share with how to get system MAC address using C#.
  • Validation in Linq to SQL and ASP.NETMay 19, 2010. In this article, I will show how to add business rules to Linq to SQL data model default set of schemas.
  • Creating Custom colors for PieChart in SilverlightMay 24, 2010. In this article we will see how to change the default color changing behavior of the pie chart control in Silverlight.
  • Authentication in Business Application in Silverlight 4Jun 18, 2010. We all know that Business Application is having its default Authentication. In this article we will see how one can configure the Authentication.
  • How to use Sharepoint default Datetimecontrol picker for custom application built in VS for Sharepoint 2007Jul 07, 2010. In this article we will see that how to use sharepoint default datetimecontrol picker in custom webparts.
  • Knowing When to Leave Your Programming Job - Part IJul 16, 2010. This article is the first part in a series to guide you in deciding when it's best to leave your Programming Job. Part I addresses a host of myths that are associated with staying at a dead-end job, and how to combat them.
  • LINQ to SQL in C#Jul 24, 2010. This article provides an introduction to employing LINQ to SQL within a Windows Forms application; the article will address the incorporation of LINQ to SQL into a win forms project, how to use LINQ to SQL to select, insert, update, and delete data, and how to use LINQ to SQL to execute stored procedures.
  • Login and Logout Page Navigation in Silverlight 4Jul 29, 2010. In this article we will see how we can navigate to a default page when user logs out in Silverlight 4 navigation framework.
  • Parsing US Postal Addresses from Textfile and seperating various fields of AddressAug 04, 2010. Here I'm presenting article about how to parse address that are of US format from text file or any other sources.
  • Get MAC Address of Network Card using WMI and C#Aug 12, 2010. Get MAC Address of Network Cards using WMI and C#

About Default-IP-address

NA

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.
European SharePoint Conference