Description
This course will teach you how to use techniques and best practices for building Internet/Intranet applications with ASP.NET Web Forms in the .NET environment with Visual Studio using C# or VBNet. You will also learn how to connect your applications to different types of databases.
Who is this training for ?
For whom ?
IT professionals wishing to develop Internet/Intranet applications using .NET technologies with the Visual Studio environment.
Prerequisites
Good knowledge of C# or VB, NET programming. Basic knowledge of client-side web technologies (HTML, JavaScript).
Training objectives
Training program
- Introduction and reminders
- Reminders of concepts related to the Internet/Intranet and .NET technologies.
- The architecture of an Internet/Intranet application, reminder of HTTP methods.
- .NET Technologies. Web application in .NET.
- The tools integrated into Visual Studio.
- Practical work: Using Visual Studio to create a site, creating a data entry form.
- How ASP.NET pages work
- Principle of ASP.NET pages, life cycle.
- Using WebForms server controls. Integration into ASPX pages with Visual Studio.
- Persistence of the state of server controls with ViewState.
- Management of application data persistence: Session, Cache, Application, Cookies.
- Characteristic members of the Page, HttpRequest, HttpResponse and HttpServerUtility classes.
- Usage and limitations of QueryString.
- Implementation of CrossPagePostBack.
- Handling events in ASP.NET pages and lifecycle: Load, UnLoad , PreRender...
- Application event management: global.asax file, important events, usage.
- Structuring a Web application with VS (data separation/ code/presentation, special folders, resources, etc.)
- Practical work: Writing the first ASP.NET pages based on standard server controls (lists, buttons, etc.) and handling events. implementation of the mechanisms necessary for professional applications (session, cookie, etc.).
- Server Controls
- Use of server controls for creating active pages on the client and server side.
- Integration of HTML server controls (HtmlInputText, HtmlTable...) with JavaScript/jQuery client scripts.
- Container controls: Panel, MultiView, Wizard...
- Rich controls: Calendar, AdRotator, FileUpload...
- Validation controls, validation groups and unobtrusive validation of ASP.NET.
- Practical work: Use of server controls to make a page dynamic, on the client side and on the server side Implementation of validation controls on the client side and server side. with Wizard controls. Example of the FileUpload control... Implementing Ajax with UpdatePanel.
- Designing the structure of a website
- User controls for structuring pages.
- Layout a site using MasterPages.
- Roles of special folders (App_Code, App_Data , App_Themes, etc.).
- Using CSS style sheets and themes.
- The NuGet package manager.
- Setting up a navigation system with SiteMap and SiteMapPath, TreeView and Menu.
- Practical work: Example of creating an e-commerce application, carrying out user control and using master pages.
- Data access
- Tour of the different means of accessing data with ASP.Net WebForms: Entity Framework, ADO.NET and TableAdapters.
- Mechanisms for accessing a database: connection, SQL statement, stored procedure, reading.
- DataBinding mechanism.
- Using controls linked to a data source: XmlDataSource, GridView (sorting and pagination).
- Show a Master/Detail view between a GridView/ListView control and the DetailsView, FormView controls.
- Templates Principles.
- ASP.NET Model binding.
- Practical work: Using DataSource controls (SqlDataSource, EntityDataSource, ...), GridView, ListView and DetailsView to present data.
- Security management
- Types of attacks (SQL injection, spoofing, repudiation, etc.).
- Means to prevent attacks.
- Application control of access and rights.
- Security management by the system.
- Security management by the application.
- Practical work: Implementation of security restrictions access to a site.
- Configuration and deployment
- Exception handling.
- Role and format of the Web.config file.
- Saving application settings.
- Configuring session management.
- Release mode.
- Publishing the application.
- Practical work: Publication of an application.
- Using web services
- The principles of Web services.
- Architecture, XML/SOAP/JSON communication, WSDL metadata.
- Calling a Web service from of an HTTP request and a proxy.
- Practical work: Demonstration of a simple Web Service (search in a database) and querying via ASP.NET and a proxy.