https://www.halvorsen.blogꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ASP.NET ꢀ
Web Programming
ꢀ ꢀ
Hans-PetterꢀHalvorsenꢀ
ꢀ
ꢀ
ꢀ
https://www.halvorsen.blog/documents/programming/web/aspnetꢀ ꢀ
,ꢀ
ASP.NET Web Programming
ꢀ ꢀ ꢀ
ꢀ
Hans-PetterꢀHalvorsenꢀ
Copyrightꢀ©ꢀ2017ꢀ
ꢀ
E-Mail:ꢀꢀ ꢀ
Web:ꢀhttps://www.halvorsen.blogꢀ ꢀ
ꢀ
https://www.halvorsen.blogꢀ
ꢀ
, ꢀ
ꢀ
Table of Contents ꢀ ꢀ ꢀ
1ꢀ Introductionꢀ...................................................................................................................... ꢀ5ꢀ
1.1ꢀ VisualꢀStudioꢀ............................................................................................................... ꢀ5ꢀ
1.2ꢀ C#ꢀ................................................................................................................................ ꢀ6ꢀ
1.3ꢀ .NETꢀFrameworkꢀ......................................................................................................... ꢀ6ꢀ
1.4ꢀ Object-OrientedꢀProgrammingꢀ(OOP)ꢀ........................................................................ ꢀ6ꢀ
2ꢀ VisualꢀStudioꢀ...................................................................................................................... ꢀ8ꢀ
2.1ꢀ Introductionꢀ................................................................................................................ ꢀ8ꢀ
2.2ꢀ GettingꢀStartedꢀ........................................................................................................... ꢀ8ꢀ
2.2.1ꢀ IntegratedꢀDevelopmentꢀEnvironmentꢀ(IDE)ꢀ.......................................................ꢀ8ꢀ
2.2.2ꢀ NewꢀProjectꢀ......................................................................................................... ꢀ9ꢀ
2.2.3ꢀ SolutionꢀExplorerꢀ............................................................................................... ꢀ10ꢀ
2.2.4ꢀ Toolboxꢀ.............................................................................................................. ꢀ10ꢀ
2.2.5ꢀ EditorsꢀandꢀDesignersꢀ........................................................................................ ꢀ11ꢀ
2.2.6ꢀ Propertiesꢀwindowꢀ............................................................................................ ꢀ12ꢀ
2.2.7ꢀ BuildꢀandꢀDebugꢀToolsꢀ....................................................................................... ꢀ13ꢀ
3ꢀ IntroductionꢀtoꢀWebꢀProgrammingꢀ................................................................................. ꢀ14ꢀ
3.1ꢀ Introductionꢀ.............................................................................................................. ꢀ14ꢀ
3.2ꢀ WebꢀBrowserꢀ............................................................................................................ ꢀ15ꢀ
3.3ꢀ HTMLꢀ.........................................................................................................................ꢀ15ꢀ
3.4ꢀ CSSꢀ............................................................................................................................ ꢀ16ꢀ
3.5ꢀ JavaScriptꢀ.................................................................................................................. ꢀ16ꢀ
3ꢀ
ꢀ
, 4ꢀ ꢀ TableꢀofꢀContentsꢀ ꢀ
3.6ꢀ ASP.NETꢀ.................................................................................................................... ꢀ17ꢀ
3.7ꢀ AJAX/ꢀASP.NETꢀAJAXꢀ................................................................................................. ꢀ17ꢀ
3.8ꢀ Silverlightꢀ.................................................................................................................. ꢀ17ꢀ
4ꢀ IntroductionꢀtoꢀASP.NETꢀ..................................................................................................ꢀ19ꢀ
4.1ꢀ Introductionꢀ.............................................................................................................. ꢀ19ꢀ
4.2ꢀ ASP.NETꢀWebꢀPagesꢀ..................................................................................................ꢀ21ꢀ
4.3ꢀ ASP.NETꢀSPAꢀ............................................................................................................. ꢀ21ꢀ
4.4ꢀ ASP.NETꢀMVCꢀ............................................................................................................ ꢀ21ꢀ
4.5ꢀ ASP.NETꢀWebꢀFormsꢀ................................................................................................. ꢀ22ꢀ
5ꢀ ASP.NETꢀWebꢀFormsꢀ........................................................................................................ꢀ23ꢀ
5.1ꢀ HelloꢀWorldꢀExampleꢀ................................................................................................ ꢀ23ꢀ
6ꢀ InternetꢀInformationꢀServicesꢀ(IIS)ꢀ.................................................................................. ꢀ27ꢀ
6.1ꢀ WebꢀServerꢀ............................................................................................................... ꢀ27ꢀ
7ꢀ WorkingꢀwithꢀDatabasesꢀinꢀASP.NETꢀ............................................................................... ꢀ28ꢀ
7.1ꢀ DatabaseꢀSystemsꢀ..................................................................................................... ꢀ28ꢀ
7.1.1ꢀ MirosoftꢀSQLꢀServerꢀ...........................................................................................ꢀ28ꢀ
7.2ꢀ SQLꢀ............................................................................................................................ ꢀ28ꢀ
7.3ꢀ SQLꢀServerꢀ+ꢀASP.NETꢀ............................................................................................... ꢀ30ꢀ
7.3.1ꢀ SimpleꢀDatabaseꢀExampleeꢀ............................................................................... ꢀ30ꢀ
7.4ꢀ ADO.NETꢀ................................................................................................................... ꢀ32ꢀ
7.4.1ꢀ Exampleꢀ............................................................................................................. ꢀ32ꢀ
8ꢀ WebꢀServicesꢀ................................................................................................................... ꢀ36ꢀ
ꢀ
Tutorial:ꢀASP.NETꢀandꢀWebꢀProgrammingꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ASP.NET ꢀ
Web Programming
ꢀ ꢀ
Hans-PetterꢀHalvorsenꢀ
ꢀ
ꢀ
ꢀ
https://www.halvorsen.blog/documents/programming/web/aspnetꢀ ꢀ
,ꢀ
ASP.NET Web Programming
ꢀ ꢀ ꢀ
ꢀ
Hans-PetterꢀHalvorsenꢀ
Copyrightꢀ©ꢀ2017ꢀ
ꢀ
E-Mail:ꢀꢀ ꢀ
Web:ꢀhttps://www.halvorsen.blogꢀ ꢀ
ꢀ
https://www.halvorsen.blogꢀ
ꢀ
, ꢀ
ꢀ
Table of Contents ꢀ ꢀ ꢀ
1ꢀ Introductionꢀ...................................................................................................................... ꢀ5ꢀ
1.1ꢀ VisualꢀStudioꢀ............................................................................................................... ꢀ5ꢀ
1.2ꢀ C#ꢀ................................................................................................................................ ꢀ6ꢀ
1.3ꢀ .NETꢀFrameworkꢀ......................................................................................................... ꢀ6ꢀ
1.4ꢀ Object-OrientedꢀProgrammingꢀ(OOP)ꢀ........................................................................ ꢀ6ꢀ
2ꢀ VisualꢀStudioꢀ...................................................................................................................... ꢀ8ꢀ
2.1ꢀ Introductionꢀ................................................................................................................ ꢀ8ꢀ
2.2ꢀ GettingꢀStartedꢀ........................................................................................................... ꢀ8ꢀ
2.2.1ꢀ IntegratedꢀDevelopmentꢀEnvironmentꢀ(IDE)ꢀ.......................................................ꢀ8ꢀ
2.2.2ꢀ NewꢀProjectꢀ......................................................................................................... ꢀ9ꢀ
2.2.3ꢀ SolutionꢀExplorerꢀ............................................................................................... ꢀ10ꢀ
2.2.4ꢀ Toolboxꢀ.............................................................................................................. ꢀ10ꢀ
2.2.5ꢀ EditorsꢀandꢀDesignersꢀ........................................................................................ ꢀ11ꢀ
2.2.6ꢀ Propertiesꢀwindowꢀ............................................................................................ ꢀ12ꢀ
2.2.7ꢀ BuildꢀandꢀDebugꢀToolsꢀ....................................................................................... ꢀ13ꢀ
3ꢀ IntroductionꢀtoꢀWebꢀProgrammingꢀ................................................................................. ꢀ14ꢀ
3.1ꢀ Introductionꢀ.............................................................................................................. ꢀ14ꢀ
3.2ꢀ WebꢀBrowserꢀ............................................................................................................ ꢀ15ꢀ
3.3ꢀ HTMLꢀ.........................................................................................................................ꢀ15ꢀ
3.4ꢀ CSSꢀ............................................................................................................................ ꢀ16ꢀ
3.5ꢀ JavaScriptꢀ.................................................................................................................. ꢀ16ꢀ
3ꢀ
ꢀ
, 4ꢀ ꢀ TableꢀofꢀContentsꢀ ꢀ
3.6ꢀ ASP.NETꢀ.................................................................................................................... ꢀ17ꢀ
3.7ꢀ AJAX/ꢀASP.NETꢀAJAXꢀ................................................................................................. ꢀ17ꢀ
3.8ꢀ Silverlightꢀ.................................................................................................................. ꢀ17ꢀ
4ꢀ IntroductionꢀtoꢀASP.NETꢀ..................................................................................................ꢀ19ꢀ
4.1ꢀ Introductionꢀ.............................................................................................................. ꢀ19ꢀ
4.2ꢀ ASP.NETꢀWebꢀPagesꢀ..................................................................................................ꢀ21ꢀ
4.3ꢀ ASP.NETꢀSPAꢀ............................................................................................................. ꢀ21ꢀ
4.4ꢀ ASP.NETꢀMVCꢀ............................................................................................................ ꢀ21ꢀ
4.5ꢀ ASP.NETꢀWebꢀFormsꢀ................................................................................................. ꢀ22ꢀ
5ꢀ ASP.NETꢀWebꢀFormsꢀ........................................................................................................ꢀ23ꢀ
5.1ꢀ HelloꢀWorldꢀExampleꢀ................................................................................................ ꢀ23ꢀ
6ꢀ InternetꢀInformationꢀServicesꢀ(IIS)ꢀ.................................................................................. ꢀ27ꢀ
6.1ꢀ WebꢀServerꢀ............................................................................................................... ꢀ27ꢀ
7ꢀ WorkingꢀwithꢀDatabasesꢀinꢀASP.NETꢀ............................................................................... ꢀ28ꢀ
7.1ꢀ DatabaseꢀSystemsꢀ..................................................................................................... ꢀ28ꢀ
7.1.1ꢀ MirosoftꢀSQLꢀServerꢀ...........................................................................................ꢀ28ꢀ
7.2ꢀ SQLꢀ............................................................................................................................ ꢀ28ꢀ
7.3ꢀ SQLꢀServerꢀ+ꢀASP.NETꢀ............................................................................................... ꢀ30ꢀ
7.3.1ꢀ SimpleꢀDatabaseꢀExampleeꢀ............................................................................... ꢀ30ꢀ
7.4ꢀ ADO.NETꢀ................................................................................................................... ꢀ32ꢀ
7.4.1ꢀ Exampleꢀ............................................................................................................. ꢀ32ꢀ
8ꢀ WebꢀServicesꢀ................................................................................................................... ꢀ36ꢀ
ꢀ
Tutorial:ꢀASP.NETꢀandꢀWebꢀProgrammingꢀ