How To Create User Controls In C#

Everyone likes a good tutorial. Today we’re going to get into (a little bit) C# and how to create user controls in Visual Web Developer 2010. In addition to Visual Web Developer 2010, or Microsoft Visual Studio 2010, you’ll need an Internet connection with Microsoft 7, and a basic understanding of the Web with some programming experience.

First, create an empty website using C#. Here are the steps to do that:

  1. Open Visual Web Developer 2010 or Microsoft Visual Studio 2010
  2. Select New Website in the File menu, dropdown menu, or start page
  3. In the dialogue box, select Installed Templates
  4. Select Visual C# from the dropdown list
  5. From the list in the center select Empty ASP.NET Website
  6. In the Web location box, select Browse
  7. Rename your file if you so desire by deleting “/website1” and replacing it with your file name
  8. Navigate to the folder where you want to save your project files
  9. Click OK

Now you want to create your user controls and your ASP.NET server controls.

In the solution explorer in your software program, click on the name of your website. Select Add New Item. Next, select Web User Control. In the name box type ListPicker and click Add.

The next step is to build your user interface. To complete the steps and create your user controls, visit DBTutorials. There you’ll find more detailed instructions.

This entry was posted in Cloud Computing and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s