A Simple AJAX control in ASP.NET 2.0 and C#
Introduction
In this article I will explain how you can easily create an AJAX enabled web site within Visual Studio 2005 utilizing C# and how to utilize the AJAX framework to add a simple control from the list of controls available in the AJAX Control Toolkit.
The AJAX control we will be working with in this article is the “PasswordStrength” control. As mentioned above this control is in the AJAX Control Toolkit we installed in the previous article of this series. We will also learn that the PasswordStrength control can easily secure passwords as they are being entered and notify the user real time as to what else they need to add to their password in order for it to meet your requirements.
In the previous article we learned the following about AJAX and what you can with it?
“ASP.NET AJAX is a free framework for quickly creating efficient and interactive Web applications that work across all popular browsers.”
ASP.NET AJAX:
- Create interfaces with AJAX components that can be reused.
- Upgrade your existing pages with AJAX controls.
- AJAX comes with support for all modern browsers
- AJAX comes as part of Visual Studio 2008 and does not need to be downloaded and installed as in Visual Studio 2005.
What we will learn in this article:
- How to Create an AJAX enabled Web Site
- How to utilize the PasswordStrength control
Please Note:
AJAX functionality is integrated in ASP.NET 3.5 and does not require any additional downloads. If you are using ASP.NET 3.5 this article does not apply to you.
Getting Started with our AJAX Application
Before we begin coding we will need to download the AJAX framework and install it onto our system in order to have the framework available for us to create our first AJAX web project.
In our previous article titled “Getting Started with AJAX, ASP.NET 2.0 and C#“ we went through the steps involved to install AJAX and how to AJAX enable Visual Studio. We explained where to go to find out about AJAX and that you could download step by step tutorials that will guide you through using every control within the AJAX Control Toolkit.
Here is the AJAX web site for you to add to your bookmarks in your favorite browser:
http://www.asp.net/
Configure Visual Studio 2005
Please Visit Programminghelp.com For the full article and Pictorial tutorial.
http://www.programminghelp.com/...elopment/ajax/creating-a-simple-ajax-control-in-asp-net-2-0-and-c/
Got a Question? Ask.
Ask the community a question about this article:
Frequently Asked Questions
How to remove items from Dictionary while looping ...
By: Amit | 15-09-2008
How to remove items from Dictionary while looping it? C# .Net
How to manage multiple submit buttons on an asp.net form?
By: beytz | 16-08-2008
I have an asp.net form with multiple text boxes.Also, in this form I have several submit buttons.
I want to activate the submit button according to the text box I was in while pressing it... how do I do that?
Are there any demo CDs or online tutorials for ...
By: Guitarz1970 | 18-07-2008
Are there any demo CDs or online tutorials for Pixela Image Mixer software? (Aside from the website) This is the software that the Sony includes with their Handycams.
Ajax Hot Water Boilers
By: ralphepinc | 01-07-2008
I would appreciate any information about fires caused by,or connected with, Ajax hot water boilers.
User and Permission
By: Le Tri Dung | 18-06-2008
How to creat user and permission in asp.net 2.0 (c#)?Can you tell me?Thanks!
Accessing session objects size?
By: Istarion | 03-06-2008
I guess that's not possible but I'll try... Is there a way to view the objects in memory in the current asp.net session and the size of them??That would be great.And it's possible to use sos.dll during execution to print objects sizes?? Thanks in advance!
Q&A Powered by:
Latest Programming Articles
Cool Desktop Wallpapers
By: Danny | 18/11/2008
Cool desktop wallpaper is accomplishments arrangement that displayed in the computer operating system. The wallpapers usually be acclimated in JPEG, BMP and GIF book formats. That wallpaper can be acclimated with Microsoft Windows, Linux and Macintosh Mac OS. Each adviser can be altered requirements, alike admitting wallpaper images advised for accepted monitors can be scaled up or bottomward to the fit size. Those are accessible on the internet for free. Some categories of wallpapers are a
Tips for Buying Software Online
By: Daniel Jowssey | 17/11/2008
Buying software online not only helps save the planet, it also has other benefits, including:
* Ease and Simplicity. You can purchase software in your underwear at 4am if you really want to. Shopping online doesn’t have to be done within regular business hours, nor do you need to look your best to do it. It’s also easy to shop around for the best prices and takes less time than driving to the shops.
Mvc Design Pattern
By: TuVinhSoft .,JSC | 14/11/2008
Model-view-controller (MVC) is an architectural pattern used in software engineering. In complex computer applications that present a large amount of data to the user, a developer often wishes to separate data (model) and user interface (View) concerns, so that changes to the user interface will not affect data handling, and that the data can be reorganized without changing the user interface.
Advantages of Low Cost Contract Programmers in Freelance Programming
By: Joanna Gadel | 12/11/2008
It observed that web industry is getting tougher thus the necessity of freelance contract programmer is required for developing more effective website with flexible features. This article states the fruitful advantages of freelance programmers in contract programming.
A Guide to Cnc Kits
By: Martin Applebaum | 09/11/2008
CNC kits are a way in which to construct your CNC machine. This article will provide some information on these machines.
A Guide to Cnc Tube Bending Machines
By: Martin Applebaum | 08/11/2008
Are you familiar with a CNC tube bending machine? This article will shed some light on the main function and components of this machine.
Ways to Hire Dedicated Php Programmers
By: Jucick | 08/11/2008
It’s not at all easy to hire dedicated PHP programmers unless you know where and how to find them. Whether you need to fix, update or enhance your website you naturally want the job done quick and right.
Top 4 Reasons Why Addressing Web Accessibility is Important
By: Matt Cave | 05/11/2008
There are very high chances that web accessibility is more important to the performance of your web site than you realize. Article takes a look at the top 4 reasons why it would be important to address the issue of web accessibility.
More from Programminghelp.com
Sql: not in Vs. not Equal
By: Programminghelp.com | 14/08/2008 | Programming
While writing SQL queries, have you ever strung several (not equals) together in the WHERE clause and just wondered if that was inefficient? Or have you used the NOT IN function, (both of which can be used to get the same result), and wondered the same thing? If you have or just are curious about either of these methods, keep reading. In this article, both of these functions will be explored to see how efficient they are, plus it will cover a few other methods to get the same results.
Sql: Coalesce() Function
By: Programminghelp.com | 14/08/2008 | Databases
When developing queries in SQL Server, dealing with nulls can often be challenging. The COALESCE function was included in SQL 2005 to help deal with these issues. First let’s take a look at what COALESCE can offer. Generally, COALESCE function receives a sequence of values and a default value to used when all of items in the sequence of values are null. From here the function returns the first not-null in the sequence of values list.
Creating an Encryption Utility in C# Final Part
By: Programminghelp.com | 14/08/2008 | Programming
In part three of this three part series we are going to continue with our Encryption utility example and pick up where we left off. What we learned in the previous articles was how many various types of encryption algorithms there are and which one of those algorithms we will be using for our example.
Creating an Encryption Utility in C# Part Two
By: Programminghelp.com | 14/08/2008 | Programming
In part two of this three part series we are going to continue with our Encryption utility example and pick up where we left off. What we learned in the previous article was how many various types of encryption algorithms there are and which one of those algorithms we will be using for our example.
Creating an Encryption Utility in C# Part One
By: Programminghelp.com | 14/08/2008 | Programming
In this three part series we are going to create an Encryption utility that can take a string value and turn it into an Encrypted Binary value, and then we will take that Binary value and turn it into a Base 64 encoded string that you can cut and paste into a Web Config file or to be used as a password to pass back and forth between services.
C# Web Multi-view Control
By: Programminghelp.com | 08/08/2008 | Programming
At some point in developing web sites or web applications, there will come a time when a requirement of having tab functionality like there is for a Windows application. Before ASP.NET, JavaScript had to be used to achieve this. But when ASP.NET 2.0 came out, a new set of controls were introduced to give the ability of having tab functionality for the web. With the new controls of a multi-view and view when combined with a few basic buttons, the tab can be created.
Sql Server Integrated Services Package Deployment
By: Programminghelp.com | 08/08/2008 | Databases
A decent amount of material has been covered in this introductory series on SQL Server 2005 Integration Services. Many of the basic data flow tasks have been covered along with some database maintenance tasks. It is now time to put these techniques into use.
Sql Server Integration Services: Calling Ssis Package in C#
By: Programminghelp.com | 08/08/2008 | Databases
During this series about SQL Server Integration Services, the basics of importing, exporting, manipulating data, typical database maintenance and deployment of SSIS packages have been covered. In this last article of this introductory series on SSIS, the technique of calling a SSIS package from C# will be covered.