Jack is Here, asp.net findings

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries Tagged ‘visual studio 2005’

Creating a Simple Ajax Control in Asp.net 2.0 and C#

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.
AJAX controls in this article, we will work hard with a "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 do you mean?
“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, in our first with our AJAX Web framework that we use to create a project to download the AJAX framework, and start coding system will require the installation of our do.
Heading in our previous article "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.
To add to your favorite browser to your bookmarks here, AJAX Web site:
http://www.asp.net/

Configure Visual Studio 2005

Please Visit Programminghelp.com For the complete article and pictorial tutorial.

http://www.programminghelp.com/web-development/ajax/creating-a-simple-ajax-control-in-asp-net-2-0-and-c/

Creating Sql Database Connection in Asp.net Web Application Through C#

1: Open visual studio 2005 and from FILE select NEW-> WebSite, then from pop-menu select asp.net website (Note: Language must be C#) , then press OK.

?

2: Now create three text from the toolbox in order to eliminate ambiguity, I use the default name of the text box and should be TextBox1's, TextBox2 in

?

3: At the same time, open SQL Server Management Studio 2005 and open the AdventureWorks (or you can SQL commands CREATE DATABASE database_name's own database), but here I use the AdventureWorks database.

?

4: Then create by clicking the right mouse button and make three columns, name it corresponds to your needs, just for your information I have EID, name, address. Click and click Save, then you will get a pop-up menu, where you enter the table name, for this example, I have students.

?

5: Now Come Back To Visual Studio application and write the following code in the event Button_Click

?

protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection myConn = new SqlConnection();
myConn.ConnectionString = “Connection string(See Below for this —
)COPY PASTE? HERE“;

myConn.Open();
string strqry = “Insert into students values (” + TextBox1.Text +
“,’” + TextBox2.Text + “‘,’” + TextBox3.Text + “‘)”;

SqlCommand myCom = new SqlCommand(strqry, myConn);
int numrow = myCom.ExecuteNonQuery();
myConn.Close();

}

Kindly note down the connectionString Syntax, to obtain this string do the following steps :
Step 1 : Go to toolbox and from data section drag & drop SqlDataSource.
Receive Step 2: Then on the left-mouse click on SqlDataSource, you configureDataSource link Slect them.
Step 3: NewConnection string –
Step 4: TestConnection and then Press OK.
Step five: Now you will again be redirected to a web page to see the actual step 2, but the connection string, and from the drop-down flood level, you will receive the connection string when you click login.
Step 6: Just copy and paste this string to the place of connectionstring.
Now debug & run Your application and check it’s effect on the table.
If still you face any problem feel free to ask.
Hope this explanation help you to understand the basics of database connectivity.
If you like this please comment it !
Thanks,
Anuj