ASP , Web Forms and Web Controls.ppt
《ASP , Web Forms and Web Controls.ppt》由会员分享,可在线阅读,更多相关《ASP , Web Forms and Web Controls.ppt(31页珍藏版)》请在麦多课文档分享上搜索。
1、ASP .Net, Web Forms and Web Controls,1,Outline Introduction Simple HTTP Transaction System Architecture Creating and Running a Simple Web Form Example Web Controls Text and Graphics Controls AdRotator Control Validation Controls,Introduction,Web-Based Application Development Creates Web content for
2、Web browser clients, includes HyperText Markup Language (HTML) Client-side scripting Images and binary data Uses Web Forms, Web Controls, and C# programming Web Forms (Web Form pages) Represent what the Web page sent to client will look like File extension .aspx ASPX (Web Form files) contain written
3、 code, event handlers, utility methods and other supporting code Every ASPX file has a corresponding class written in .NET language (C#) called the code-behind file,2,Simple HTTP Transaction,HyperText Transfer Protocol (HTTP) Defines methods and headers which allows clients and servers exchange info
4、rmation in uniform way Uniform Resource Locator (URL) IP address indicating the location of a resource All HTML documents have a corresponding URL Domain Name Server (DNS) A computer that maintains a database of hostnames and their corresponding IP addressesMicrosoft Internet Information Services (I
5、IS) Web server that programmers use when developing ASP.NET Web applications in Visual Studio,3,A Simple HTTP Transaction,4,Client interacting with Web server. Step 1: The GET request, GET /books/downloads.htm HTTP/1.1.,A Simple HTTP Transaction,5,Client interacting with Web server. Step 2: The HTTP
6、 response, HTTP/1.1 200 OK or HTTP/1.1 404 Not found,System Architecture,Most Web-based applications are multi-tier applications Tiers are logical groupings of functionalityInformation Tier (data tier or bottom tier) Maintains data pertaining to the applications Usually stores data in a relational d
7、atabase management systems (RDBMS) Middle Tier Implements the business logic, controller logic and presentation logic Acts as an intermediary between data in the information tier and the applications clients Client Tier applications user interface (Web browser),6,System Architecture,7,Three-tier arc
8、hitecture.,Creating and Running a Simple Web-Form Example,Program consists of two related files ASPX file C# code-behind file Example Show the output Step-by-step process to create the program Present the code (much of which is generated by Visual Studio),8,WebTime.cs Program Output,9,WebTime ouput,
9、Creating and Running a Simple Web Form Example,10,Adding Web Form for project WebTime (Right click on project in Solution Explorer),Creating and Running a Simple Web Form Example,11,Click on Add New Item and Add a Web Form for project WebTime .,Creating and Running a Simple Web Form Example,12,code-
10、behind file,ASPX file,Creating and Running a Simple Web Form Example,13,Solution Explorer window for project WebTime .,code-behind file,ASPX file,Creating and Running a Simple Web Form Example,14,Toolbox in Visual Web Developer.,Creating and Running a Simple Web Form Example,15,Source mode of Web Fo
11、rms designer.,Design mode button,Creating and Running a Simple Web Form Example,16,Design mode of Web Forms designer.,Cursors current location,Cursor,Creating and Running a Simple Web Form Example,17,Split mode of Web Forms designer.,Creating and Running a Simple Web Form Example,18,Code-behind file
12、 for WebTime.aspx.cs generated by Visual Web Developer.,Designing the Page,Designing a Web Form as simple as a Windows Form Use Toolbox to add controls to page in Design mode Unlike working with Windows Form, type text directly on a Web Form at the cursor location or insert XHTML elements using menu
13、 commands Control and other elements are placed sequentially on a Web Form position is relative to Web Forms upper left corner Alternate type layout (absolute positioning) is discouraged,19,Designing the Page,20,WebForm.aspx after adding Label and setting its properties.,Adding Page Logic,Open WebTi
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ASP WEBFORMSANDWEBCONTROLSPPT
