1
00:00:00,480 --> 00:00:01,430
Hello and welcome.

2
00:00:01,470 --> 00:00:08,030
In this lecture we are going to experiment with data type conversion.

3
00:00:08,130 --> 00:00:09,870
Sometimes when programming.

4
00:00:09,870 --> 00:00:17,220
There are times you need to reference a data type in a variable of a lover type.

5
00:00:17,940 --> 00:00:25,560
So in these instances you will need to convert from one data type into another.

6
00:00:25,560 --> 00:00:30,560
So here we'll learn how to do that to illustrate.

7
00:00:30,570 --> 00:00:35,450
We are going to create a new ESB dot net application.

8
00:00:35,580 --> 00:00:43,410
So if you go to start our programs we just read your right click on Visual Studio and click on Run as

9
00:00:43,410 --> 00:00:45,080
Administrator.

10
00:00:45,150 --> 00:00:48,750
So always run Visual Studio as administrator if possible.

11
00:00:49,920 --> 00:00:50,390
All right.

12
00:00:50,400 --> 00:00:56,000
So I've got visual studio launched so I'm going to create a new project.

13
00:00:56,310 --> 00:00:58,020
So I'm going to go new project

14
00:01:04,500 --> 00:01:11,730
I'm going to click on web and click on airspeed dot net web application.

15
00:01:11,730 --> 00:01:13,710
I'm going to give the application a name here.

16
00:01:13,740 --> 00:01:18,270
I'm just going to call it conversions

17
00:01:23,260 --> 00:01:24,690
conversions.

18
00:01:24,760 --> 00:01:25,820
OK.

19
00:01:25,920 --> 00:01:30,240
And it was this is a location it will save the project.

20
00:01:30,330 --> 00:01:32,610
All right.

21
00:01:32,610 --> 00:01:35,550
When you name your applications don't leave any spaces.

22
00:01:35,640 --> 00:01:36,000
OK.

23
00:01:36,030 --> 00:01:40,770
So if you've got a double barrelled name for your application make sure there are no spaces between

24
00:01:40,770 --> 00:01:42,630
the names.

25
00:01:42,630 --> 00:01:49,740
Normally if you're using more than one word then you might use capitalization to capitalize the first

26
00:01:49,860 --> 00:01:55,080
letter of the first word and then capitalize this first letter of the second word and so on.

27
00:01:56,280 --> 00:01:59,630
So click okay to continue

28
00:02:02,270 --> 00:02:07,720
and you're giving a list of templates to select from.

29
00:02:07,820 --> 00:02:14,900
There are different types of is p dot net applications you can create what we are going to focus on

30
00:02:14,900 --> 00:02:25,190
the web forms and we're going to select this empty one here the empty by selecting the empty template.

31
00:02:25,190 --> 00:02:27,020
OK what would happen.

32
00:02:27,080 --> 00:02:30,380
To allow us to add the form later.

33
00:02:30,380 --> 00:02:38,390
You also under here with GO and folders and call references you want to check this way says web forms.

34
00:02:38,840 --> 00:02:39,310
OK.

35
00:02:39,320 --> 00:02:44,930
By doing that enables us to added later.

36
00:02:44,930 --> 00:02:50,060
Also make sure this option is not checked because we don't want to host it in the cloud and we don't

37
00:02:50,060 --> 00:02:55,130
want to add any unit testing at the moment because this is just a basic illustration.

38
00:02:55,130 --> 00:03:04,720
When you're done just click OK and Visual Studio will build the template desk at a web form.

39
00:03:04,770 --> 00:03:10,560
So right click was got the name of your solution here.

40
00:03:10,560 --> 00:03:18,380
Just right click on that and go add and there's an option for weapon home and that should add web from

41
00:03:18,420 --> 00:03:22,780
you give the web form a name for simplicity.

42
00:03:22,830 --> 00:03:24,660
I'm just going to call it default

43
00:03:30,470 --> 00:03:32,270
and then click Okay.

44
00:03:36,720 --> 00:03:38,690
So there are different views here.

45
00:03:38,700 --> 00:03:41,260
So this is the source code viewer.

46
00:03:41,610 --> 00:03:46,920
So we're going to go into the design view which is this one and you can see this is where we are going

47
00:03:46,920 --> 00:03:56,280
to actually design our basic form Let's insert some controls via the tool box or this is a tool box

48
00:03:56,280 --> 00:03:57,880
will click on that.

49
00:03:58,000 --> 00:04:00,900
That's the general first thing we wanted to.

50
00:04:01,110 --> 00:04:09,030
We want to add a text box so look for a text box.

51
00:04:09,030 --> 00:04:10,020
Just scroll down.

52
00:04:10,050 --> 00:04:14,970
You can also search the tool box if you want text box.

53
00:04:14,970 --> 00:04:16,060
OK.

54
00:04:16,170 --> 00:04:19,370
So that's the tab text box.

55
00:04:19,370 --> 00:04:27,150
So just click on there and go back to the tool box and double click to add it.

56
00:04:28,350 --> 00:04:28,740
All right.

57
00:04:28,770 --> 00:04:35,050
So I've now added a text box and just make that be pink OK.

58
00:04:35,070 --> 00:04:36,410
So that's the text box.

59
00:04:36,870 --> 00:04:42,290
I was just tab inside to create some space.

60
00:04:42,360 --> 00:04:52,150
Make this a bit bigger now top down next thing I want to do I want to add a button.

61
00:04:52,180 --> 00:04:54,670
So I go back here.

62
00:04:54,670 --> 00:04:59,640
There should be a button OK.

63
00:04:59,740 --> 00:05:03,640
Double click to the button.

64
00:05:03,670 --> 00:05:09,410
All rights is under the button and just drag it to make it a bit bigger.

65
00:05:12,090 --> 00:05:15,270
Tab inside and tab down.

66
00:05:15,270 --> 00:05:23,760
Finally I want to create a label so I'll go back in and look for label.

67
00:05:23,880 --> 00:05:26,920
Just double click.

68
00:05:26,940 --> 00:05:29,440
And this would be my label.

69
00:05:31,220 --> 00:05:34,990
Okay.

70
00:05:35,850 --> 00:05:39,390
All these controllers here have their corresponding properties here.

71
00:05:39,390 --> 00:05:42,420
You can see this text box one referring to that.

72
00:05:42,420 --> 00:05:45,660
So what I'm going to do is change some values here.

73
00:05:45,900 --> 00:05:48,070
But you have to have it selected.

74
00:05:48,150 --> 00:05:56,670
So I'm going to change the programmatic I.D. so I'm going to change the idea was got text box in notice

75
00:05:56,670 --> 00:05:58,830
call either next to it.

76
00:05:58,830 --> 00:06:03,900
I'm going to change that value to input

77
00:06:07,290 --> 00:06:12,960
text box.

78
00:06:13,000 --> 00:06:20,980
Notice the capitalization of the words the beginning of the word text and the beginning of the word

79
00:06:21,070 --> 00:06:22,280
box.

80
00:06:22,290 --> 00:06:24,290
All right.

81
00:06:24,640 --> 00:06:27,720
We'll do the same with a button click on the button.

82
00:06:28,120 --> 00:06:30,760
And again where got the idea.

83
00:06:30,760 --> 00:06:37,170
I'm going to change that to go okay button

84
00:06:39,930 --> 00:06:40,970
again.

85
00:06:41,050 --> 00:06:44,440
Notice the capitalization of the second word.

86
00:06:45,070 --> 00:06:48,260
Finally I'll go to the label.

87
00:06:48,730 --> 00:06:51,360
Come here.

88
00:06:51,390 --> 00:06:53,280
Change the idea to

89
00:06:55,650 --> 00:06:59,450
result labeled.

90
00:07:00,880 --> 00:07:05,730
So I've changed the programmatic idea of all the controls.

91
00:07:05,920 --> 00:07:10,010
I'm going to stop this lecture here because it's going on a bit long.

92
00:07:10,060 --> 00:07:13,290
We will continue in part two.

93
00:07:13,880 --> 00:07:16,470
So thank you for watching so far by.
