ASP.NET 编程入门
@ Magicshui
Feedback:feedback@shui.us
大纲
.NET and
C#...
Web
Programming
Skills and
forum…
.NET Web Skills
.NET and C#? ASP.NET?
Javascrip and
Css
.NET and C#
.NET Web Skills
The .NET Framework is:
• Common Language Runtime – provides an abstraction
layer over the oper...
.NET and C#
.NET Web Skills
The .NET Framework allows you to:
• Apply common skills across a variety of devices,
applicati...
.NET and C#
.NET Web Skills
.NET and C#
.NET Web Skills
www.microsoft.com/net/
.NET
1.0
2.0
3.0
3.5
4.0
.NET and C#
.NET Web Skills
C# VB …
21
.NET and C#
.NET Web Skills
C#
C#
.NET and C#
.NET Web Skills
C#
.NET and C#
.NET Web Skills
.NET and C#
.NET Web Skills
C#
.NET Web Skills
.NET and C#
C#
.NET Web Skills
.NET and C#
C# 命名空间
• 组织大型代码项目。
• 以 . 运算符分隔。
• using directive 意味着不需要为每个类指定命
名空间的名称。
• global 命名空间是“根”命名空间...
.NET Web Skills
.NET and C#
C#
文档注释
/// <summary>
/// This class performs an important function.
/// </summary>
public cla...
ASP.NET
.NET Web Skills
ASP.NET 是一个 Web 平台,可提供构建
基于企业级服务器的 Web 应用程序所必
需的所有服务。
ASP.NET
.NET Web Skills
ASP.NET 是一个统一的 Web 开发模型,它包括您使用尽可能少
的代码生成企业级 Web 应用程序所必需的各种服务。ASP.NET
作为 .NET Framework 的一部分提供。当您编写...
ASP.NET
.NET Web Skills
ASP.NET
ASP.NET
Forms
ASP.NET
MVC
ASP.NET
.NET Web Skills
Form
MVC
test.aspx
test.aspx.cs
V
CM
ASP.NET
.NET Web Skills
http://example.com/hello.aspx
ASP.NET
.NET Web Skills
ASP.NET
.NET Web Skills
Others
jQuery
YUI
Css
.NET Web Skills
Javascript and Css
JavaScript 是属于网络的脚本语言!
JavaScript 被数百万计的网页用来改进设计、验证表单、
检测浏览器、创建cookies,以及更多的应用。
JavaScr...
.NET Web Skills
Javascript and Css
Javascript = ECMAScript !=Java
.NET Web Skills
Javascript and Css
<html>
<body>
<script type="text/javascript">
document.write("Hello World!");
</script>...
.NET Web Skills
Javascript and Css
变量赋值
var x=5;
var carname="Volvo";
.NET Web Skills
Javascript and Css
运算符 描述 例子 结果
+ 加 x=y+2 x=7
- 减 x=y-2 x=3
* 乘 x=y*2 x=10
/ 除 x=y/2 x=2.5
%
求余数 (保留整
数)
x...
.NET Web Skills
Javascript and Css
赋值运算符
运算符 例子 等价于 结果
= x=y x=5
+= x+=y x=x+y x=15
-= x-=y x=x-y x=5
*= x*=y x=x*y x=50
/...
.NET Web Skills
Javascript and Css
赋值运算符
JS 比较
JS If...Else
JS Switch
JS 消息框
JS 函数
JS For Loop
JS While Loop
JS Break Loop...
.NET Web Skills
Javascript and Css
if 语句
在一个指定的条件成立时执行代码。
if...else
语句在指定的条件成立时执行代码,当条件不成
立时执行另外的代码。
if...else if....else
...
.NET Web Skills
Javascript and Css
http://www.w3school.com.cn/js
.NET Web Skills
Javascript and Css
CSSCascading Style Sheets
.NET Web Skills
Javascript and Css
• CSS 指层叠样式表
(Cascading Style Sheets)
• 样式定义如何显示 HTML 元素
• 样式通常存储在样式表中
• 把样式添加到 HTML 4....
.NET Web Skills
Javascript and Css
CSS 语法由三部分构成:
选择器、属性和值:
selector {property: value}
.NET Web Skills
Javascript and Css
id 选择器
可以为标有特定 id 的 HTML 元素指定特定的样式。
id 选择器以 "#" 来定义。
下面的两个 id 选择器,
第一个可以定义元素的颜色为红色,第二个定...
.NET Web Skills
Javascript and Css
类选择器
以一个点号显示
.center {color:red;}
<h1 class="center"> This heading will be center-align...
.NET Web Skills
Javascript and Css
http://www.w3school.com.cn
.NET Web Skills
Tools
Basic
Practice
IE
SQLServer
vs
Tools
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
.NET Web Skills
Tools Basic Practice
Tools Basic Practice
.NET Web Skills
Basic
Tools Basic Practice
.NET Web Skills
编码书写规则
Pascal
• TestAddMethod
驼峰
• testAddMethod
全局变量
• TOTALMEMORY
局部私有变量
• _thisOne
Tools Basic Practice
.NET Web Skills
MD5
afaDadfa34ADfadA545adf652363e
Tools Basic Practice
.NET Web Skills
构架
LayerA
LayerB
LayerC LayerF
LayerE
LayerG
Tools Basic Practice
.NET Web Skills
基本概念
Tools Basic Practice
.NET Web Skills
Practice
Knowledge
Tools
SimpleFaceBook
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Tools Basic Practice
.NET Web Skills
Skills
.NET Web Skills
0
2
4
6
Forums and Code
.NET Web Skills
Forums and Code
.NET Web Skills
.NET Web Skills
Upcoming SlideShare
Loading in …5
×

.Net网络编程入门

1,395 views

Published on

编程入门

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,395
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

.Net网络编程入门

  1. 1. ASP.NET 编程入门 @ Magicshui Feedback:feedback@shui.us
  2. 2. 大纲 .NET and C#... Web Programming Skills and forum…
  3. 3. .NET Web Skills .NET and C#? ASP.NET? Javascrip and Css
  4. 4. .NET and C# .NET Web Skills The .NET Framework is: • Common Language Runtime – provides an abstraction layer over the operating system • Base Class Libraries – pre-built code for common low- level programming tasks • Development frameworks and technologies – reusable, customizable solutions for larger programming tasks
  5. 5. .NET and C# .NET Web Skills The .NET Framework allows you to: • Apply common skills across a variety of devices, application types, and programming tasks • Integrate with other tools and technologies to build the right solution with less work • Build compelling applications faster
  6. 6. .NET and C# .NET Web Skills
  7. 7. .NET and C# .NET Web Skills www.microsoft.com/net/ .NET 1.0 2.0 3.0 3.5 4.0
  8. 8. .NET and C# .NET Web Skills C# VB … 21
  9. 9. .NET and C# .NET Web Skills C#
  10. 10. C# .NET and C# .NET Web Skills
  11. 11. C# .NET and C# .NET Web Skills
  12. 12. .NET and C# .NET Web Skills C#
  13. 13. .NET Web Skills .NET and C# C#
  14. 14. .NET Web Skills .NET and C# C# 命名空间 • 组织大型代码项目。 • 以 . 运算符分隔。 • using directive 意味着不需要为每个类指定命 名空间的名称。 • global 命名空间是“根”命名空间: global::system 始终引用 .NET Framework 命名 空间 System。
  15. 15. .NET Web Skills .NET and C# C# 文档注释 /// <summary> /// This class performs an important function. /// </summary> public class MyClass{}
  16. 16. ASP.NET .NET Web Skills ASP.NET 是一个 Web 平台,可提供构建 基于企业级服务器的 Web 应用程序所必 需的所有服务。
  17. 17. ASP.NET .NET Web Skills ASP.NET 是一个统一的 Web 开发模型,它包括您使用尽可能少 的代码生成企业级 Web 应用程序所必需的各种服务。ASP.NET 作为 .NET Framework 的一部分提供。当您编写 ASP.NET 应用 程序的代码时,可以访问 .NET Framework 中的类。可使用与公 共语言运行时 (CLR) 兼容的任何语言(包括 Microsoft Visual Basic 和 C#)编写应用程序的代码。使用这些语言,可以开发 利用公共语言运行时、类型安全、继承等方面的优点的 ASP.NET 应用程序。
  18. 18. ASP.NET .NET Web Skills ASP.NET ASP.NET Forms ASP.NET MVC
  19. 19. ASP.NET .NET Web Skills Form MVC test.aspx test.aspx.cs V CM
  20. 20. ASP.NET .NET Web Skills http://example.com/hello.aspx
  21. 21. ASP.NET .NET Web Skills
  22. 22. ASP.NET .NET Web Skills
  23. 23. Others jQuery YUI Css
  24. 24. .NET Web Skills Javascript and Css JavaScript 是属于网络的脚本语言! JavaScript 被数百万计的网页用来改进设计、验证表单、 检测浏览器、创建cookies,以及更多的应用。 JavaScript 是因特网上最流行的脚本语言。 JavaScript 很容易使用!你一定会喜欢它的!
  25. 25. .NET Web Skills Javascript and Css Javascript = ECMAScript !=Java
  26. 26. .NET Web Skills Javascript and Css <html> <body> <script type="text/javascript"> document.write("Hello World!"); </script> </body> </html>
  27. 27. .NET Web Skills Javascript and Css 变量赋值 var x=5; var carname="Volvo";
  28. 28. .NET Web Skills Javascript and Css 运算符 描述 例子 结果 + 加 x=y+2 x=7 - 减 x=y-2 x=3 * 乘 x=y*2 x=10 / 除 x=y/2 x=2.5 % 求余数 (保留整 数) x=y%2 x=1 ++ 累加 x=++y x=6 -- 递减 x=--y x=4 算术运算符
  29. 29. .NET Web Skills Javascript and Css 赋值运算符 运算符 例子 等价于 结果 = x=y x=5 += x+=y x=x+y x=15 -= x-=y x=x-y x=5 *= x*=y x=x*y x=50 /= x/=y x=x/y x=2 %= x%=y x=x%y x=0
  30. 30. .NET Web Skills Javascript and Css 赋值运算符 JS 比较 JS If...Else JS Switch JS 消息框 JS 函数 JS For Loop JS While Loop JS Break Loops JS For...In JS 事件 JS Try...Catch JS Throw JS onerror
  31. 31. .NET Web Skills Javascript and Css if 语句 在一个指定的条件成立时执行代码。 if...else 语句在指定的条件成立时执行代码,当条件不成 立时执行另外的代码。 if...else if....else 语句使用这个语句可以选择执行若干块代码中的 一个。 switch 语句使用这个语句可以选择执行若干块代码中的 一个。
  32. 32. .NET Web Skills Javascript and Css http://www.w3school.com.cn/js
  33. 33. .NET Web Skills Javascript and Css CSSCascading Style Sheets
  34. 34. .NET Web Skills Javascript and Css • CSS 指层叠样式表 (Cascading Style Sheets) • 样式定义如何显示 HTML 元素 • 样式通常存储在样式表中 • 把样式添加到 HTML 4.0 中,是为了 解决内容与表现分离的问题 • 外部样式表可以极大提高工作效率 • 外部样式表通常存储在 CSS 文件中 • 多个样式定义可层叠为一
  35. 35. .NET Web Skills Javascript and Css CSS 语法由三部分构成: 选择器、属性和值: selector {property: value}
  36. 36. .NET Web Skills Javascript and Css id 选择器 可以为标有特定 id 的 HTML 元素指定特定的样式。 id 选择器以 "#" 来定义。 下面的两个 id 选择器, 第一个可以定义元素的颜色为红色,第二个定义元素的颜色为绿色: #red {color:red;} #green {color:green;} <p id="red">这个段落是红色。</p> <p id="green">这个段落是绿色。</p>
  37. 37. .NET Web Skills Javascript and Css 类选择器 以一个点号显示 .center {color:red;} <h1 class="center"> This heading will be center-aligned </h1> <p class="center"> This paragraph will also be center-aligned. </p>
  38. 38. .NET Web Skills Javascript and Css http://www.w3school.com.cn
  39. 39. .NET Web Skills Tools Basic Practice
  40. 40. IE SQLServer vs Tools
  41. 41. Tools Basic Practice .NET Web Skills
  42. 42. Tools Basic Practice .NET Web Skills
  43. 43. Tools Basic Practice .NET Web Skills
  44. 44. Tools Basic Practice .NET Web Skills
  45. 45. Tools Basic Practice .NET Web Skills
  46. 46. Tools Basic Practice .NET Web Skills
  47. 47. Tools Basic Practice .NET Web Skills
  48. 48. Tools Basic Practice .NET Web Skills
  49. 49. Tools Basic Practice .NET Web Skills
  50. 50. Tools Basic Practice .NET Web Skills
  51. 51. Tools Basic Practice .NET Web Skills
  52. 52. .NET Web Skills Tools Basic Practice
  53. 53. Tools Basic Practice .NET Web Skills Basic
  54. 54. Tools Basic Practice .NET Web Skills 编码书写规则 Pascal • TestAddMethod 驼峰 • testAddMethod 全局变量 • TOTALMEMORY 局部私有变量 • _thisOne
  55. 55. Tools Basic Practice .NET Web Skills MD5 afaDadfa34ADfadA545adf652363e
  56. 56. Tools Basic Practice .NET Web Skills 构架 LayerA LayerB LayerC LayerF LayerE LayerG
  57. 57. Tools Basic Practice .NET Web Skills 基本概念
  58. 58. Tools Basic Practice .NET Web Skills Practice Knowledge Tools SimpleFaceBook
  59. 59. Tools Basic Practice .NET Web Skills
  60. 60. Tools Basic Practice .NET Web Skills
  61. 61. Tools Basic Practice .NET Web Skills
  62. 62. Tools Basic Practice .NET Web Skills
  63. 63. Tools Basic Practice .NET Web Skills
  64. 64. Tools Basic Practice .NET Web Skills
  65. 65. Tools Basic Practice .NET Web Skills
  66. 66. Tools Basic Practice .NET Web Skills
  67. 67. Tools Basic Practice .NET Web Skills
  68. 68. Tools Basic Practice .NET Web Skills
  69. 69. Tools Basic Practice .NET Web Skills
  70. 70. Tools Basic Practice .NET Web Skills
  71. 71. Tools Basic Practice .NET Web Skills
  72. 72. Tools Basic Practice .NET Web Skills
  73. 73. Tools Basic Practice .NET Web Skills
  74. 74. Tools Basic Practice .NET Web Skills
  75. 75. Tools Basic Practice .NET Web Skills
  76. 76. Tools Basic Practice .NET Web Skills
  77. 77. Tools Basic Practice .NET Web Skills
  78. 78. Tools Basic Practice .NET Web Skills
  79. 79. Tools Basic Practice .NET Web Skills
  80. 80. Tools Basic Practice .NET Web Skills
  81. 81. Tools Basic Practice .NET Web Skills
  82. 82. Tools Basic Practice .NET Web Skills
  83. 83. Tools Basic Practice .NET Web Skills
  84. 84. Tools Basic Practice .NET Web Skills
  85. 85. Tools Basic Practice .NET Web Skills
  86. 86. Tools Basic Practice .NET Web Skills
  87. 87. Skills .NET Web Skills 0 2 4 6
  88. 88. Forums and Code .NET Web Skills
  89. 89. Forums and Code .NET Web Skills
  90. 90. .NET Web Skills

×