ImageVerifierCode 换一换
格式:PPT , 页数:93 ,大小:3.11MB ,
资源ID:8427192      下载积分:18 金币
快捷注册下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/8427192.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请

   平台协调中心        【在线客服】        免费申请共赢上传

权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

注意事项

本文(ASPNet培训PPT.ppt)为本站上传会员【精****】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

ASPNet培训PPT.ppt

1、Click to edit Title Slide,Click to edit Master text styles,Second level,Third level,Fourth level,Fifth level,ASP.NET Development,Agenda,What is ASP.NET?,Web Forms,Server Controls&User Controls,Databinding ASP.NET Pages,ASP.NET Caching,ASP.NET Configuration,ASP.NET Security,ASP.NET Applications,Deplo

2、ying ASP.NET Web Applications,What is ASP.NET?,Microsofts platform for building,Web Applications,Part of the.NET Framework,Server Side Technology,.NET Framework,Base Class Library,Common Language Specification,Common Language Runtime,ADO.NET:Data and XML,VB,C+,C#,Visual Studio.NET,ASP.NET:Web Servic

3、es,and Web Forms,JScript,WindowsForms,ASP.NET,Base Class Library,Common Language Specification,Common Language Runtime,VB,C+,C#,Visual Studio.NET,ASP.NET:Web Services,and Web Forms,JScript,WindowsForms,ADO.NET:Data and XML,ASP.NET Features,ASPX,ASP Side by Side,Simplified Programming Model,Control-b

4、ased,event-driven execution model,Code Behind Pages,Powerful Controls,Powerful Data Access,Better Performance,Executed via CLR as native code,ASP.NET Feature,Simplified Browser Support,Simplified Form Validation,Better Session Management,Caching,Security,Web Services,Simplified Deployment,ASP.NET Ex

5、ecution Model,ASPX,.ASPX,ASP.NET Execution Model,.ASPX,Compiled,ASP.NET Execution Model,.ASPX,Compiled,ASP.NET Execution Model,.ASPX,Compiled,.ASPX,Compiled,ASP.NET Execution Model,demo,Agenda,What is ASP.NET?,Web Forms,Server Controls&User Controls,Databinding ASP.NET Pages,ASP.NET Caching,ASP.NET

6、Configuration,ASP.NET Security,ASP.NET Applications,Deploying ASP.NET Web Applications,Web Form Pages,Part Declarative,Part Code,Declarative“tags”,HTML,server controls,static text,Server Side Code,Great separation between code and markup,Form1.aspx,code,Form1.aspx,code,Form1.vb,single file,separate

7、files(“code-behind”),A Page Can Include,Directives,Code Block,Render Blocks,Server Control Tags,HTML(WML,etc),Runtime Compilation,ASPX,File,Request,ASPX,Engine,Parse,GendPageClass,Generate,Response,Request,Instantiate,Response,Code-behindclass,Page,Class,Instantiate,Process and Render,Compile,ASP.NE

8、T Page Life Cycle,Similar to Microsoft,Win32,application,Events raised as page created,Form_Initialize()-Page_Init(),Form_Load()-Page_Load(),Form_Activate()-Page_PreRender(),Form_Unload()-Page_Unload(),Simple ASP.NET Page,demo,Agenda,What is ASP.NET?,Web Forms,Server Controls&User Controls,Databindi

9、ng ASP.NET Pages,ASP.NET Caching,ASP.NET Configuration,ASP.NET Security,ASP.NET Applications,Deploying ASP.NET Web Applications,ASP.NET Server Controls,Server controls encapsulate,Rendering,Behavior,Generate markup that is sent to the client,DHTML,HTML 3.2,WML,etc.,Offer up dynamic experience,Proces

10、s input sent from client,Bind to data,Fire server side events for notifications,Standard ASP.NET Controls,Web Controls,Render client-targeted HTML and script,Consistent,strongly-typed object model,Some render as single HTML tags:,Button,TextBox,DropDownList,Some render richer HTML+script:,DataGrid,C

11、alendar,Validators,Html Controls,Map 1:1 with HTML tags,ASP.NET Server Controls,Runat Enables Server Side Processing,Required validator control,Range validator control,Compare validator control,Regular expression validator,Custom validator control,ASP.NET Validation Control,ASP.NET Server Control,de

12、mo,Control Event Processing,Events are:,Triggered on the client,Handled in server code,Requires a,postback,to the same page,Relies on State Management,Handling Control Events,Wire up the handler on the tag:,Event handler code:,Sub btn1_Click(s,as Object,e as EventArgs),Message.Text=Button1 clicked,E

13、nd Sub,VS.NET,Page/Control Event Execution,Page_Load,Page_Unload,Textbox1_Changed,Button1_Click,(on PostBack),1.Change Events,2.Action Events,Page is loaded,control hierarchy initialized,Page is disposed,Control hierarchy is rendered,Page_Load Details,Page_Load fires on every request,Test,Page.IsPos

14、tBack,to execute conditional logic,Example:,Sub Page_Load(s As Object,e As EventArgs),If Not,Page.IsPostBack,Then,executes only on initial page load,Message.Text=initial value,End If,End Sub,State Management,ViewState,helps restore control to its previous state,Implemented as a hidden form field,Dis

15、able via:,EnableViewState=false,SessionState,used to store data associated with the current session,Postback Forms,demo,User Controls,Server controls,authored like pages,Enable full encapsulation,Supports nested controls,Separate code namespace,Separate code language,Great way to partition work,Grea

16、t way to reuse work across multiple pages and applications,Directive,Registers User Control for use on a Web Forms page:,Exposing An Object Model,User controls expose an object model,Properties,Fields,Events,Methods,Example:,public string Color,get,set,Creating a User Control,demo,Agenda,What is ASP

17、NET?,Web Forms,Server Controls&User Controls,Databinding ASP.NET Pages,ASP.NET Caching,ASP.NET Configuration,ASP.NET Security,ASP.NET Applications,Deploying ASP.NET Web Applications,Web Forms Data Binding,Provides a simple,declarative way to bind Web UI elements to data,“Simple”binding to a single

18、property,“List”binding to a data source,DataGrid,DropDownList,etc.,Huge variety of data sources supported,But,One way snapshot model,Requires code to update the data source,Simple Binding Syntax,Step 1:Set bindings,Declaratively(in HTML):,Step 2:Call DataBind,Sub Page_Load(s As Object,e As EventArgs

19、)Label1.,DataBind,(),End Sub,Simple Binding Example,Sub Page_Load(s as Object,e as EventArgs),Label1.DataBind(),End Sub,Binding Data To Lists,DataGrid,DropDownList,etc.,Supported DataSources,ADO.NET Connected:,DataReader,ADO.NET Cached:,DataSet,DataTable,DataView,Also other IEnumerable types:,ArrayL

20、ist,Array,Hashtable,Result of a method,List Binding Syntax,Step 1:Set bindings,Declaratively(in HTML):,Imperatively(in code):,DataGrid1.DataSource=ds;,Step 2:Call DataBind,Sub Page_Load(s As Object,e As EventArgs)DataGrid1.,DataBind,()End Sub,Binding To Templated Lists,Templates enable“Lookless”UI,C

21、ustomize structure not just style,Controls can be nested within templates,Repeater,DataList,DataGrid,Container:alias for the item created from the template+data,Container.DataItem,“this row of data”,Templated List Example,Sub Page_Load(s as Object,e as EventArgs),DataList1.DataSource=GetCustData(),D

22、ataList1.DataBind(),End Sub,DataBinder.Eval Method,Helper method for late-binding,before,:,after,:,Optional 3,rd,param for formatting,ASP.NET Databinding,demo,Agenda,What is ASP.NET?,Web Forms,Server Controls&User Controls,Databinding ASP.NET Pages,ASP.NET Caching,ASP.NET Configuration,ASP.NET Secur

23、ity,ASP.NET Applications,Deploying ASP.NET Web Applications,Page Output Caching,Pages that dont change frequently,Dramatic performance increase,Fragment Caching,Dynamic portions of a page,Data doesnt change frequently,User control,Cache APIs,Programmatically cache data,Cache.Insert(_,Key,_,Value,_,C

24、acheDependency,_,AbsoluteExpiration,_,SlidingExpiration,_,Priority,_,PriorityDecay,_,Callback),Key,String used to look up the cached item,Value,Item or object to store in the cache,CacheDependency,Cache item can automatically expire when a file,directory,or other cache item changes,Cache APIs,Absolu

25、teExpiration,Cache item can expire at some fixed time.,SlidingExpiration,Cache item can expire after a certain amount of inactivity,Priority,When forcing items from the cache,which items should go first,Cache APIs,ASP.NET Cache,demo,Agenda,What is ASP.NET?,Web Forms,Server Controls&User Controls,Dat

26、abinding ASP.NET Pages,ASP.NET Caching,ASP.NET Configuration,ASP.NET Security,ASP.NET Applications,Deploying ASP.NET Web Applications,Web.config,Site configuration file,Ships with the site,Stores most configuration options,Eases maintenance and deployment,Changes take effect immediately,Hierarchical

27、 Architecture,Web.config files and their settings are inherited in a hierarchy,Machine settings(WinntMicrosoft.NETVersion),Web application root directory,Subdirectories,Settings can be targeted at a specified set of file/directory by use of the tag,Hierarchical Architecture,Default Configuration Set

28、tings,Machine.config,TracingDisabled,Execution timeout90 seconds,Session stateEnabled,inproc,AuthenticationAllow anonymous,Multiple CPU supportDisabled,Custom Configuration Settings,Examples of customization,AppSettings,CustomErrors,Trace settings,Authentication,Session settings,Custom setting in we

29、b.config,add key=DSN value=server=localhost”,Accessing with code,DSN=ConfigurationSettings.AppSettings(DSN),AppSettings,Redirect certain errors to certain pages,CustomErrors,Trace Configuration,Writing to trace log,Trace.Write(Page_Load,Entering Event),Trace.Warn(“Login,Invalid Argument),Tracing,Tra

30、cing,Enabled,Tracing information will be stored.Information can be accessed through“site/trace.axd”,RequestLimit,Store tracing information for this many requests,PageOutput,Allows trace output to also appear at the bottom of the page,TraceMode,Allows trace information to be sorted by time or categor

31、y,ASP.NET Configuration,demo,Agenda,What is ASP.NET?,Web Forms,Server Controls&User Controls,Databinding ASP.NET Pages,ASP.NET Caching,ASP.NET Configuration,ASP.NET Security,ASP.NET Applications,Deploying ASP.NET Web Applications,Security Concepts,Authentication,Authorization,Impersonation,Authentic

32、ation,Windows,Basic,Digest,Integrated,Form,Passport,Windows Authentication,Enabled for IIS through Internet Services Manager,Enabled for ASP.NET through web.config,Windows Authentication,Site can easily access user name,Dim UserName As String,UserName=User.Identity.Name,NT groups automatically map t

33、o ASP.NET roles,If User.IsInRole(Administrators)Then,Windows Authentication,Web site is responsible for security,not IIS,Configure IIS to allow anonymous access,Set web.config to force users to authenticate through a form,Any unauthenticated user will get sent to Login.aspx,Form Authentication,You c

34、ode a form to collect user ID and password,After authenticate a user:,FormAuthentication.RedirectFromLoginPage(UserName,False),RedirectFromLoginPage,Marks the user as authenticated,Takes the user to the page they originally requested,If the user requested the login page,takes the user to default.asp

35、x,Can persist authentication in a cookie,Form Authentication,Declarative Form Authentication,For simple sites,you can store user ID and password in web.config,User is authenticated by calling,FormsAuthentication.Authenticate(UserName,Password),Programmatic Form Authentication,Code is used to authent

36、icate the user,If UserFoundInDataBase then,FormAuthentication.RedirectFromLoginPage(UserName,false),Else,lblLoginError.Text=User Not Found or Invalid Password,end if,Role Based Security,Jane,Jill,John,Jenny,Jamie,RD,Admins,Page,RD Content,Admin Content,Programmatically assigning users to roles,Sub A

37、pplication_AuthenticateRequest(ByVal Sender As Object,ByVal e As EventArgs),If request.IsAuthenticated=True Then,sql=select role from roles where userid=&UserID&,Get Roles from Result Set,context.User=New GenericPrincipal(user,roles),End If,End Sub,Role Based Security,Display content based on roles,

38、If User.IsInRole(HumanRes)Then,cmdEditSalary.Visible=true,End If,Role Based Security,Impersonation,Windows authentication,web.config,ASP.NET Security,demo,Agenda,What is ASP.NET?,Web Forms,Server Controls&User Controls,Databinding ASP.NET Pages,ASP.NET Caching,ASP.NET Configuration,ASP.NET Security,

39、ASP.NET Applications,Deploying ASP.NET Web Applications,Application_OnStart,Application_OnEnd,Session_OnStart,Session_OnEnd,Traditional ASP(Global.asa),ASP.NET Global.asax,First request,Application_Start,First request for each user,Session_Start,Each request,Application_BeginRequest,Application_Auth

40、enticate,Application_EndRequest,Application error,Application_Error,User logs out/session times out,Session_End,Web server shutdown,Application_End,Application_BeginRequest,Text to be included at the start of every page,Application_EndRequest,Text to be added to the end of every page,Application_Err

41、or,Useful for sending out an e-mail or writing to the event log when an error occurs that was not properly handled at the source of the error,Global.asax Event Usage,Session_End,Writing to a log file or database that a user has logged out at a given time,Application_End,Useful for writing out when t

42、he Web application had to stop.Could write an entry out to the event log,Application_Start,Useful for loaded site specific configuration information,Global.asax Event Usage,Essentially global variables for the application,Application(CompanyName),Can lock or unlock application state variables,Applic

43、ation.lock,Application(GlobalCounter)=NewValue,Application.unlock,Saving Application State,Per-user variables,Available to all pages in the site,Session(UserID)=5,UserID=Session(UserID),Saving Session State,ASP session state,Dependent on cookies,Not fault tolerant,ASP.NET session state,Support for W

44、eb gardens and server farms,Doesnt require cookies,Better fault tolerance-Proc,State Server,SQL Server,ASP vs.ASP.NET Session State,Configuration information stored in web.config,Configuring Session State,Mode,InProc Conventional session variables,stored in memory on the Web server,Stateserver Sessi

45、ons are stored on an external server,in memory,SQLServer Sessions are stored in a SQL database,Cookieless,Determines if cookieless sessions should be used,Values are true or false,TimeOut,Determines the default timeout for the Web site,Configuring Session State,SQLConnectionString,Contains the datas

46、ource,userid,and password parameters necessary to connect to a SQL database that holds the session state,stateConnectionString,Contains information needed to connect to the state server,Configuring Session State,You must run a small T-SQL script on the target server,Install SQLState.sql which can be

47、 found in sysdrivewinntMicrosoft.NETFrameworkversion,Creates the following on the server,A database called ASPState,Stored procedures,Tables in TempDB to hold session data,Uninstall via UninstallSQLState.sql,Storing Session in SQL Server,Agenda,What is ASP.NET?,Web Forms,Server Controls&User Control

48、s,Databinding ASP.NET Pages,ASP.NET Caching,ASP.NET Configuration,ASP.NET Security,ASP.NET Applications,Deploying ASP.NET Web Applications,Deployment,Install,XCopy,No Registering DLLs,No Locked DLLs,Apps are Isolated,Each App Can Have Its Own Version,Uninstall,Delete,Summary,What is ASP.NET?,Web For

49、ms,Server Controls&User Controls,Databinding ASP.NET Pages,ASP.NET Caching,ASP.NET Configuration,ASP.NET Security,ASP.NET Applications,Deploying ASP.NET Web Applications,2003 Microsoft Corporation.All rights reserved.,This presentation is for informational purposes only.MICROSOFT MAKES NO WARRANTIES,EXPRESS OR IMPLIED,IN THIS SUMMARY.,

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服