Hello and welcome.
In this lecture we are going to experiment with data type conversion.
Sometimes when programming.
There are times you need to reference a data type in a variable of a lover type.
So in these instances you will need to convert from one data type into another.
So here we'll learn how to do that to illustrate.
We are going to create a new ESB dot net application.
So if you go to start our programs we just read your right click on Visual Studio and click on Run as
Administrator.
So always run Visual Studio as administrator if possible.
All right.
So I've got visual studio launched so I'm going to create a new project.
So I'm going to go new project
I'm going to click on web and click on airspeed dot net web application.
I'm going to give the application a name here.
I'm just going to call it conversions
conversions.
OK.
And it was this is a location it will save the project.
All right.
When you name your applications don't leave any spaces.
OK.
So if you've got a double barrelled name for your application make sure there are no spaces between
the names.
Normally if you're using more than one word then you might use capitalization to capitalize the first
letter of the first word and then capitalize this first letter of the second word and so on.
So click okay to continue
and you're giving a list of templates to select from.
There are different types of is p dot net applications you can create what we are going to focus on
the web forms and we're going to select this empty one here the empty by selecting the empty template.
OK what would happen.
To allow us to add the form later.
You also under here with GO and folders and call references you want to check this way says web forms.
OK.
By doing that enables us to added later.
Also make sure this option is not checked because we don't want to host it in the cloud and we don't
want to add any unit testing at the moment because this is just a basic illustration.
When you're done just click OK and Visual Studio will build the template desk at a web form.
So right click was got the name of your solution here.
Just right click on that and go add and there's an option for weapon home and that should add web from
you give the web form a name for simplicity.
I'm just going to call it default
and then click Okay.
So there are different views here.
So this is the source code viewer.
So we're going to go into the design view which is this one and you can see this is where we are going
to actually design our basic form Let's insert some controls via the tool box or this is a tool box
will click on that.
That's the general first thing we wanted to.
We want to add a text box so look for a text box.
Just scroll down.
You can also search the tool box if you want text box.
OK.
So that's the tab text box.
So just click on there and go back to the tool box and double click to add it.
All right.
So I've now added a text box and just make that be pink OK.
So that's the text box.
I was just tab inside to create some space.
Make this a bit bigger now top down next thing I want to do I want to add a button.
So I go back here.
There should be a button OK.
Double click to the button.
All rights is under the button and just drag it to make it a bit bigger.
Tab inside and tab down.
Finally I want to create a label so I'll go back in and look for label.
Just double click.
And this would be my label.
Okay.
All these controllers here have their corresponding properties here.
You can see this text box one referring to that.
So what I'm going to do is change some values here.
But you have to have it selected.
So I'm going to change the programmatic I.D. so I'm going to change the idea was got text box in notice
call either next to it.
I'm going to change that value to input
text box.
Notice the capitalization of the words the beginning of the word text and the beginning of the word
box.
All right.
We'll do the same with a button click on the button.
And again where got the idea.
I'm going to change that to go okay button
again.
Notice the capitalization of the second word.
Finally I'll go to the label.
Come here.
Change the idea to
result labeled.
So I've changed the programmatic idea of all the controls.
I'm going to stop this lecture here because it's going on a bit long.
We will continue in part two.
So thank you for watching so far by.