C# Corner

Resources  
  • Read Microsoft Access Database in C#Jan 01, 2000. How to connect and read data from a Microsoft Access (.mdb) database using ADO.NET and C#.
  • Ping Utility in C#Feb 16, 2001. Ping is a very useful utility used to determine the speed of a Network Connection. It establishes a socket connection with the given hostname and sends a Data Packet using ICMP Protocol.
  • Programming in ADO.NETMar 19, 2001. A simple example shows you how to read a database table in a dataset and display in a list view control.
  • Assemblies : The Ins and Out : Part IApr 13, 2001. In Part 1, I will cover what exactly an assembly is, and what an assembly contains.
  • Assemblies : The Ins and Out : Part IIApr 16, 2001. In this part, I will discuss both Private and Shared assemblies and how to create a "Shared Assembly".
  • Assemblies : The Ins and Out : Part IIIApr 20, 2001. In this part I will discuss in more detail than Part 2, the available utilities for manipulating assemblies.
  • Connect to an Oracle DatabaseMay 03, 2001. This sample code shows you how to connect to an Oracle database using C#.
  • FTP Explorer in C#May 21, 2001. I have developed a GUI based FTP client application. This takes connection information and populates folder and files in treeview and listview respectively.
  • Working with OleDb Data AdaptersJun 20, 2001. This step by step article guides you to create your database applications using OleDb Data Adapters in VS.NET.
  • 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.
  • Basic Database Operations in ADO.NETAug 08, 2001. This Article will show the basic database transactions select, insert update and delete.
  • CDataService: A Generic Database Access ClassAug 09, 2001. Using a generic database access component in data-aware applications can simply development and separate data tier from business tier.
  • WhoIs Sample CodeAug 27, 2001. Sample example shows you how to implement WhoIs...
  • Socket Programming in C#Sep 03, 2001. This program is useful for a starter who wants to write C# code using .Net Sockets.
  • A Simple Multi-threaded TCP/UDP Server and Client V2.Sep 24, 2001. This is the second version of my client/server program. The server and the client can be run on the same machine or on different machines. The following is the brief description of the server and the client programs specifically.
  • Console Based ChatOct 01, 2001. This is a article on how to create a simple console based chat application using socket connections.
  • Real Time ApplicationOct 02, 2001. The Real time Application is a sample that shows the communication techniques between a client (TcpClient) and a server (TcpServer) application using Socket class on each side. The project also demonstrates how to using listview control in the real time project.
  • Mapping Objects to Relational DatabasesNov 01, 2001. The application generates C# Class files for each table in a relational database. I have used Mysql and ODBC.NET for this project. The application only supports MySQL right now.
  • C# IRC BotNov 19, 2001. This is a very simple program that establishes a connection to irc server, joins a channel and greets every nick that joins.
  • SharpHSQL - An SQL engine written in C#Jan 08, 2002. .NET! C#! If you haven't been inundated with the marketing of Microsoft's new initiatives, you've been living in your cube without a web connection for quite a while. Like a lot of developers, I had installed the .NET SDK and the Beta 1 of Visual Studio .NET and played with it. However, since its release was so far out in the future and I had deadlines to meet, I soon went back to working with the things my customers needed now.
  • FTP Explorer in C#: Beta 2Jan 10, 2002. FTP Explorer is a MDI application that can explore FTP server. This application takes FTP connection information and populates folder and files in treeview and listview respectively.
  • FTP Explorer in C#(Beta 2)Jan 10, 2002. FTP Explorer is a MDI application that can explore FTP server. This application takes FTP connection information and populates folder and files in treeview and listview respectively.
  • Web/WAP Calender form Harrison LogicFeb 11, 2002. This application provides an updateable web-based calendar that can be viewed from both the Web and through a Mobile device, such as a cellular phone.
  • A Database Web ServiceFeb 22, 2002. This program is a Web service, which contains Web methods that return a dataset after querying a database (any database) given the connection string, the password, the database, the table, the user ID and the SQL commands.
  • Sorting Object Using IComparer and IComparable Interfaces Mar 01, 2002. The System.Collections namespace contains interfaces and classes that define various...
  • Authenticate Web ServiceMar 04, 2002. In this example we will build a web service that authenticates userid and password from an a very simple MS Access database. This web service exposes only one method to the client.
  • SQL Server Database ExplorerMar 20, 2002. This application connects to a running SQL Server 2000 and displays all the available databases in it.
  • Peer-to-peer Chat Program using Asynchronous SocketMar 22, 2002. This is a simple chat program, which uses asynchronous socket to provide connection between two machines.
  • Sharp HSQL- An SQL Engine Written in C#Aug 01, 2002. .NET! C#! If you haven't been inundated with the marketing of Microsoft's new initiatives, you've been living in your cube without a web connection for quite a while.
  • Database Vendor Independent Code with Improved Connection PoolingOct 17, 2002. This article covers how to create a database application that allows you to specify different databases without writing code for different data providers.
  • Data Access with ADO.NETNov 04, 2002. This first article will provide a brief history of data access as well as provide the basic flow for using ADO to access data.
  • Accessing Text Files using ODBC Data ProviderNov 12, 2002. In this article, I will show you how to access Access database files using ODBC data provider.
  • The "ins" and "outs" of Using Stored Procedures in C#Jan 27, 2003. This article reviews the creation of stored procedures with parameters using the Visual Studio IDE.
  • SQL Demo Login in C#Feb 23, 2003. This sample code contains a reusable control that allows you to build a dialog box that queries for SQL-Server connection parameters.
  • J2EE to .NET Migration: Quick TipsMar 26, 2003. Here are some Quick tips to get you started, in case you need to migrate a J2EE based application to a .NET based application.
  • Using Generic Algorithms to Layout Circuit BoardsApr 07, 2003. This article tells you how to use a Genetic Algorithm to optimally layout parts on a circuit board so they have the shortest connections between them.
  • Basics of Extending Your Working Environment in Visual StudioApr 10, 2003. All of us have used Macros in Microsoft Office and Add-ins in Visual Studio 6 and I am very sure all of us have been impressed as well by their power to control their own working environment.
  • How to Detect a Dialup Connection?May 15, 2003. In the article we'll see how to check connectivity with internet using VB.NET.
  • FTP Client ComponentJun 12, 2003. An FTP Connection component that you can add to the toolbox of your IDE.
  • Data Access Component for SQL Server in C#Jul 07, 2003. The attached source code a data access component for SQL Server that contains methods to get a DataSet.
  • Check Internet ConnectionAug 25, 2003. How to check if your computer is connected to the internet with C#. It's much more easier that other tutorials I've seen in other sites.
  • Oracle Data Provider for .NET : Part IIFeb 20, 2004. Oracle Data Provider for .NET (ODP.NET) is an implementation of a data provider for the Oracle database. ODP.NET uses Oracle native APIs to offer fast and reliable access to Oracle data and features from any .NET application.
  • Remote Data Access LayerAug 24, 2004. The attached source project is a data access layer library and the main idea of developing such a DAL is to separate the database execution from the client/end user and maintain it on the server side, there by reducing the number of direct simultaneous connection to the SQL Server.
  • Microsoft Application Center TestOct 13, 2004. Application Center Test (ACT) stress tests Web servers and analyze performance and scalability problems of Web applications. ACT simulates a large group of users by opening multiple connections to the server and rapidly sending HTTP requests. It also supports several other authentication schemes and the SSL protocol, making it ideal for testing personalized and secure sites.
  • Storing Images into a DatabaseOct 18, 2004. In order to provide your application with cool pictures you can employ two techniques (at least). One of them is that you can save the pictures in a folder and store the path to each one in a database or configuration file. The other one is to store the entire file into a database, along with its file name.
  • Building WebParts in ASP .Net 2.0Aug 08, 2005. Web Parts is a framework built into ASP.NET 2.0 for building highly customizable portal-style pages. End users can customize Web Parts pages by changing the page layout, adding and removing Web Parts, editing Web Parts properties, establishing connections between Web Parts, and more. I would like to share how to build web parts in ASP .Net 2.0. I am providing the source code of application as well.
  • Generic 'T, K' Database ComponentDec 17, 2005. I have written a C# 2.0 (Visual Studio 2005), Generic <T, K> Database component, The component has simplified the architecture and the implementation by allowing me to keep the number of overloaded methods to a minimum.
  • Revised Generic 'T, K' Database ComponentDec 20, 2005. This is the code behind the Generic 'T, K' Database Component.
  • How to Select all Checkbox when Header Checkbox is SelectedDec 30, 2005. Here I have provided the code using javascript to check/uncheck all checkboxes when header checkbox is checked. I recommend JAVA Script because its executed at client side and saves request Round-Trip time.
  • Select/Deselect all Checkboxes at Server side in ASP.NET using C#Jan 11, 2006. In this article we will see that how to select/deselect all checkboxes using C#.net server side code inspite of simple Javascript code.
  • Usage of doPostBack in a Real EnvironmentJan 29, 2006. Many atricles describes about "__doPostBack". But here I am trying to say some real practical ways to use it and also mentioned some precautions waant to take before use it. Believe me this article derived from my practical experience and will continue only such items from my side, as only those thing will help a developer.
  • AJAX Pager controlFeb 01, 2006. After AJAX Repeater control next logical thing was to try and create paging control, a control which renders paging links when you set its properties like page count and page number, I have been using similar control in asp.net page so I decided to implement same thing with JavaScript.
  • 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.
  • Introduction to the MagicAjax.NET - The Magic Ajax Engine for .NETFeb 11, 2006. MagicAjax.NET is a free open-source framework, designed to make it easier and more intuitive for developers to integrate AJAX technology into their web pages, without replacing the ASP.NET controls and/or writing tons of JavaScript code.
  • AJAX Repeater control Feb 19, 2006. AJAX has been in shadows for a decade now but it started buzzing right after the launch of the Google Earth. This article shows how to create an AJAX Repeater control with item, header, footer, alternative item, and seperator item templates using AJAX and ASP.NET.
  • Client Side Validation with JavaScript in ASP.NETMar 22, 2006. This simple program will guide how to do client side validation in JavaScript.
  • How to Automatically Send a Resolution Optimized Markup of a Web Page to the ClientApr 15, 2006. This article will tell you about a technique through which you can make intelligent ASP.NET websites which will automatically detect the resolution of the visitor's desktop and generate a resolution optimized mark-up of a page, not forcing the visitor to keep the resolution of his/her desktop according to the website's best view resolution.
  • AJAX DataGrid: An ASP.NET User ControlMay 16, 2006. This DataGrid is a Client Side Control. It is created by JavaScript and uses Ajax.net technology.
  • Debug Client Side Script in Visual Studio 2005May 18, 2006. This article is for web developers, because it's target is one of the new feature in Visual Studio 2005 which is debug client side script.
  • AJAX Document Management - AJAX Document ViewerJun 16, 2006. AJAX (Asynchronous JavaScript and XML), is a web development technique for creating interactive web applications. The intention of AJAX is to exchange small pieces of data with the server without the necessity of reloading the entire web page.
  • System components performance in ASP.NET using C#Jul 01, 2006. This article shows how to retrieve system properties in a webpage on just singleclick of mouse.
  • ASP.NET Security With SQL Server 2005Jul 11, 2006. This article focuses on security concerm when using SQL Server 2005 in ASP.NET application.
  • Calling the Server-Side method asynchronously from Client ScriptJul 19, 2006. This article describes how to call the server-side method asynchronously from JavaScript with the use of Client Callbacks that is built in ASP.NET 2 so that the client browser receives the data dynamically without page postback.
  • Understanding Connection PoolingJul 27, 2006. This article is to go in deep in dome key features in the ADO.NET 2 which was shipped with VS 2005. In this article I will go trough one of the key features which is the Connection Pooling.
  • Accessing Data using Object Data Source in ASP.Net 2.0 and C# Aug 23, 2006. This tutorial demonstrates how to bind data against Objects using Visual Studio 2005.
  • Outlook Style Menu with Collapsable Side MenuAug 25, 2006. This article shows very good outlook style menu with collapsable side menu.
  • Infragistics UltraWebNavigator Context Menu Integration with JavascriptSep 13, 2006. This article shows one of the difficult functionality of adding context Menu on Infragistics UltraWebGrid, in conjunction with mouse right click.
  • Creating SQL Server Database Dynamically in .NET Using SQL DMOOct 05, 2006. It is a sample ASP.NET and Visual Studio 2005 application for creating a SQL Server database at runtime. I have used SQL-DMO dll. This article will show you how to create a database in SQL Server 2005 and 2000.
  • Encrypting Connection Strings in ASP.Net 2.0Oct 05, 2006. This article describes how to encrypt the connection strings section in ASP.Net 2.0 web.config files and demonstrates the transperancy of using encrypted connection strings in your web application.
  • Using Client Callbacks for Building the ListBoxesFTs_C ASP.NET Web User Control: Part INov 23, 2006. In this article I share how you can build your own ASP.NET web user control with the help of the Client Callbacks. The examples are written using C# and JavaScript.
  • Using Client Callbacks for Building the ListBoxesFTs_C ASP.NET Web User Control: Part IINov 27, 2006. In this article I share how you can build your own ASP.NET web user control with the help of the Client Callbacks. The examples are written using C# and JavaScript.
  • Extending the ASP.NET ImageButton ControlDec 18, 2006. This article describes an easy approach to extending an existing ASP.NET control; in this example, the standard toolkit’s Image Button control is extended to support roll-over effects. Given the standard control already contains existing support for both server side click events and client click events, the control is well furbished prior to the addition of the roll-over effect.
  • Database connection object with application-wide scopeJan 02, 2007. This article describes a class that can be placed in a Visual Studio C# project that makes a connection object available to any of the other classes in the project.
  • Refreshing a parent page from a child in ASP.NET 2.0 Jan 19, 2007. I'm going to explain how to refresh a parent page from a child page using the new API of ASP.NET 2.0 and JavaScript language.
  • Monitor Internet Connection StateFeb 09, 2007. This article describes an easy approach to building two controls used to monitor the status of an internet connection and provide the user with some indication of that status.
  • Using a COM Callable Wrapper to Launch a Program from a Hyperlink in the WebBrowser ControlMar 02, 2007. This article describes how you can launch an application from a link inside the WebBrowser Control using a combination of javascript and an ActiveX Control created in C#.
  • Add a Quick Map to a Windows ApplicationMar 15, 2007. This project demonstrates a quick and easy way to add mapping to a windows desktop application (with an available internet connection) using Google Maps as the basis and source for the map.
  • How to debug clientside Javascript code in VS2005 or VS2003Mar 30, 2007. This article helps you to debug Javascript code on an ASPX page.
  • How to Submit Form When User Press Enter Key on DropDownList BoxMay 25, 2007. This small codes written in JavaScript will help you to submit form when user press enter key on dropdownlist.
  • Connection PoolingAug 11, 2007. While performing any database activity it is necessary that every single connection need to be closed, but in case your application throws some exception in that case our connection wont’ get closed. And you will get error “Cannot open connection, it is already open” In this article I will be discussing what is connection pooling? Why connection polling & how we can enable connection pooling etc.
  • Generic Data Layer - One time creationSep 06, 2007. This article will explain how to create a generic data layer that can be used with very less amount of coding. It is a known fact that, most of the time we create applications for Create , Select , Update, Delete. And every time, we end up with writing similar set of code for every execution of our stored procedures.
  • Introduction to Building a Plug-In Architecture Using C#Sep 10, 2007. In this article we'll take another look at how we can use the state pattern to build a plug-in architecture that will allow us to change the behavior of our application by placing differnt plug-ins into a folder.
  • JavaScript Calendar Control in ASP.NET 2.0Oct 01, 2007. The problem with ASP.NET Calendar control is it refreshes the page every time any event is fired. To avoid this, we have to use JavaScript Calendar control.
  • Ajaxify a simple HTML page using a web service Oct 23, 2007. In this article I will explore using a web service to deliver HTML markup content to an HTML aware client using the XML HTTP request object from JavaScript code.
  • Cross browser conditional validationOct 25, 2007. This article show how to show/hide textbox with required field validation on radio button click in a master page.
  • Where Did All the Designers Go! Jan 24, 2008. Software is one of the fastest paced industries in the business world. As quickly as software languages come and go, skill sets require constant learning. In trying to keep up with implementation aspects of software, did we somehow forget about the priority of creating a good design? This article describes how we came about with a void of software design skills in the programming world.
  • Selecting Checkboxes inside the GridView ControlFeb 27, 2008. This article explains about how to select checkboxes inside the GridView control using javascript.
  • Comaprission of dates for a year in JavaScriptFeb 29, 2008. This article and code snippet shows how to use JavaScript to validate dates in a method for a year.
  • Add and handle application settings in the configuration file: Part IIApr 16, 2008. This article tells you how to add connection string using the configuration file itself.
  • Add and handle connection strings in an application configuration file: Part IApr 17, 2008. There are two ways to save data and parameters. In this case we save application parameters like information entered by the user during the installation process.
  • Multiple Active Result Sets (MARS)May 12, 2008. This article gives you information about the Mars a feature supported by MSSqlServer 2005 and .Net 2.0/3.x, which is a feature to execute more than one query with one single connection to database.
  • Client Side Validation of GridView control with javascriptMay 21, 2008. This article shows how to use client side validations in GridView control with JavaScript.
  • Encrypt and Decrypt Sensitive Metadata Within Your Config file Jun 18, 2008. In a certain cases, metadata embedded within your configuration file is sensitive. In fact, imagine that you develop an application that uses a data base as data source; all information about this data base is located in the configuration file. What if a hacker success to log into your configuration files and obtains the connection string and other metadata about your data base??
  • 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.
  • Auto create database connection string using INI by C# Jul 22, 2008. This article shows how to auto create database connection string using INI by C# .
  • Attaching a Digital Certificate (Public Key) to an HTTPS RequestAug 10, 2008. This article will guide you on how to post data to an HTTPS (i.e., secure connection) URL from a Windows application (.NET) by attaching a digital certificate from a certificate file and getting the response back.
  • Connect to MySQL database - via ODBC without using DSN: Part IIAug 11, 2008. In order to connect to on MySQL method, I propose this more flexible solution, thus, it enables us to customize the connection parameters in one hand, moreover, it enables us to choose which mode should we use. I mean, ADO connected mode using data reader or disconnected mode using data adapter and data set.
  • Using a JavaScript Calendar Control in Master PagesOct 20, 2008. This article shows how to use a JavaScript Calendar control in master pages.
  • Storing and Retrieving Connection Strings in ASP.NET 2.0/3.5 Nov 04, 2008. This article demonstrates how to store database connection strings in Web.config in ASP.NET 2.0/3.5 and retrieve it for creating connection objects.
  • Debug Javascript in Visual Studio 2005Nov 06, 2008. This article explains you how to debug script in VS2005 by using practical Google map example.

About Databese-connection-in-JavaScript

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