This document provides an introduction to ASP.NET and Web Forms programming. It discusses the background of ASP and how ASP.NET was developed to address challenges with ASP. It overviews the ASP.NET programming model based on controls and events, how postbacks maintain page state automatically, and how server-side controls work. It also covers ASP.NET architecture, features, goals and a basic "Hello World" example.
Partying with PHP (…and the Microsoft Platform)goodfriday
Learn how to spice up PHP using the unique features of the Microsoft platform. PHP is the center of attention as you learn to build and run a PHP application on Microsoft Internet Information Services 7, and also mingle with the Microsoft AJAX library.
This document provides an overview of Silverlight, including:
1. Silverlight allows for cross-browser, cross-platform rich media and interactive applications to be built and delivered to the web.
2. It is a .NET technology that extends the reach of .NET across browsers, desktops, devices and mobile.
3. The document demonstrates Silverlight's core features like graphics, animation, data binding, networking and security.
IGEEKS is a Bangalore based Training & Recruitment company.
We offers osoftware training courses starting from absolute beginner level to advanced levels.Providing high quality training at affordable fees is our core value. All our trainers are working IT professionals with rich experience. We work with our students in developing the right skills they need to build their career in present competitive environment. We have flexible batch times to suit the timings of graduating students and working professionals.
Ajax In Enterprise Portals Wesley Halesrajivmordani
This document discusses using Ajax in enterprise portals. It introduces the presenter and defines key concepts like portals, portlets, and bridges. It then covers challenges with portlet 1.0 Ajax and how portlet 2.0 improvements like resource URLs help. Popular Ajax libraries like IceFaces and RichFaces are demonstrated running on portlets. The document concludes with a discussion of mashups and questions.
This resume is for Mahmoud Mustafa Mohamed Mohamed. He graduated in 2010 with a degree in Computer Science from Ain Shams University in Cairo, Egypt. His skills include programming languages like C++, C#, Java, SQL, and ASP.NET. He has worked on projects like a content-based image search engine, disease diagnosis system, video rental system, and online library system using technologies such as Visual Studio, SQL Server, and ASP.NET.
The document discusses different web frameworks for Java, focusing on Struts 1, Spring MVC, and JavaServer Faces. It provides an overview and examples of how Struts 1 implements the MVC pattern using components like ActionServlet, RequestProcessor, and ActionMappings. It also briefly compares Struts 1 and 2, and outlines key aspects of Spring MVC like flexible request mapping and support for different view technologies.
This document compares web technologies like Silverlight, Flash, and HTML5 for building rich internet applications. It outlines key features of Silverlight like its support for XAML, .NET integration, and cross-browser capabilities. Implementation details are discussed such as styles, controls, events, data binding and common patterns like MVC, MVVM and MEF. The document also covers Silverlight development tools and techniques.
Partying with PHP (…and the Microsoft Platform)goodfriday
Learn how to spice up PHP using the unique features of the Microsoft platform. PHP is the center of attention as you learn to build and run a PHP application on Microsoft Internet Information Services 7, and also mingle with the Microsoft AJAX library.
This document provides an overview of Silverlight, including:
1. Silverlight allows for cross-browser, cross-platform rich media and interactive applications to be built and delivered to the web.
2. It is a .NET technology that extends the reach of .NET across browsers, desktops, devices and mobile.
3. The document demonstrates Silverlight's core features like graphics, animation, data binding, networking and security.
IGEEKS is a Bangalore based Training & Recruitment company.
We offers osoftware training courses starting from absolute beginner level to advanced levels.Providing high quality training at affordable fees is our core value. All our trainers are working IT professionals with rich experience. We work with our students in developing the right skills they need to build their career in present competitive environment. We have flexible batch times to suit the timings of graduating students and working professionals.
Ajax In Enterprise Portals Wesley Halesrajivmordani
This document discusses using Ajax in enterprise portals. It introduces the presenter and defines key concepts like portals, portlets, and bridges. It then covers challenges with portlet 1.0 Ajax and how portlet 2.0 improvements like resource URLs help. Popular Ajax libraries like IceFaces and RichFaces are demonstrated running on portlets. The document concludes with a discussion of mashups and questions.
This resume is for Mahmoud Mustafa Mohamed Mohamed. He graduated in 2010 with a degree in Computer Science from Ain Shams University in Cairo, Egypt. His skills include programming languages like C++, C#, Java, SQL, and ASP.NET. He has worked on projects like a content-based image search engine, disease diagnosis system, video rental system, and online library system using technologies such as Visual Studio, SQL Server, and ASP.NET.
The document discusses different web frameworks for Java, focusing on Struts 1, Spring MVC, and JavaServer Faces. It provides an overview and examples of how Struts 1 implements the MVC pattern using components like ActionServlet, RequestProcessor, and ActionMappings. It also briefly compares Struts 1 and 2, and outlines key aspects of Spring MVC like flexible request mapping and support for different view technologies.
This document compares web technologies like Silverlight, Flash, and HTML5 for building rich internet applications. It outlines key features of Silverlight like its support for XAML, .NET integration, and cross-browser capabilities. Implementation details are discussed such as styles, controls, events, data binding and common patterns like MVC, MVVM and MEF. The document also covers Silverlight development tools and techniques.
The document discusses themes in IBM WebSphere Portal. It provides an overview of theme basics, the theme framework, dynamic content spots, and theme optimization. It describes how themes have evolved from version 6.1 to 8.0 of WebSphere Portal and the key elements of themes and skins. The theme architecture did not change in version 8.5 but focuses on simplification, serviceability, and mobile support.
This document discusses the Social Enabler project from OpenNTF, which aims to provide social functionality for XPages applications using the IBM Social Business Toolkit. It outlines goals like providing ready-to-use components, APIs, and scenarios. Key technologies discussed include HTML5, REST, JSON, OAuth, Activity Streams, and OpenSocial. Current functionality demonstrated includes reading from and writing to activity streams, displaying XPages in embedded experiences, and writing custom REST services.
John Kenneth D. Gallego has over 5 years of experience in information technology with expertise in object oriented software development, SharePoint 2007, GUI, .NET frameworks, and more. He has a Bachelor's degree in Information Technology and is proficient in languages like C#, ASP.NET, PHP, and VB. His experience includes projects for various clients in fields like healthcare, education, and more. He is interested in continuing to learn new programming techniques and enterprise application development.
This document provides an overview of the Spring framework, including:
- A brief history of Spring's development from 2002 to present.
- An overview of Spring's key features like lightweight containers, declarative transactions, and dependency injection.
- An explanation of Spring's layered architecture including presentation, service, and persistence layers.
- A discussion of why Spring was created to simplify enterprise application development and reduce complexity.
- An outline of Spring's various modules that can be selectively used in applications.
Java Framework for Database-Centric Web EngineeringBeat Signer
Presentation given at WebE 2001, 4th Workshop on Web Engineering (in conjunction with 10th International World Wide Web Conference), Hong Kong, May 2001
ABSTRACT: We present a database-centric approach to web site development in which both application and web content data are managed by a database. The development process is based on three main stages of information modelling, document content design and presentation specification. A Java framework based on the OMS object-oriented data management system has been developed to support the development life cycle from rapid prototyping through to operation. We describe how the framework supports access from heterogeneous clients and how it has been extended to include a web content manager.
The document discusses IBM's WebSphere Process Server (WPS) and WebSphere Integration Developer (WID) products and architecture. It provides an overview of the key components, including the Enterprise Service Bus (ESB), Process Server, human tasks, business rules and processes. It also discusses capabilities like Service Component Architecture (SCA), performance results for banking and contact manager scenarios, and clustering.
Dojo is a JavaScript framework that helps build dynamic web applications. It provides tools and techniques to handle data, user interfaces, internationalization, and accessibility. Dojo includes data stores to retrieve and manage data, widgets to display data, and templating to generate interface code on the client-side. It also offers utilities to optimize application loading, such as file merging and minification.
1. The document discusses Web 2.0 and how developing applications for it can be challenging due to the many technologies involved.
2. It introduces EGL Rich UI, which aims to simplify Web 2.0 development by providing a single programming language and model that supports rich user interfaces, web services, and extensibility.
3. EGL Rich UI allows for simple data access, service declaration and use, and user interface definition to help modernize applications without needing in-depth knowledge of various Web 2.0 technologies.
Silverlight 4 & Windows Phone 7 at Zup Zip Black Coffee#5SoftEngine
The document discusses the features and capabilities of Silverlight 4, including improvements to rich text support, networking, media playback, graphics and imaging, data binding, and tools. Key additions include support for webcam, microphone, printing, additional languages, hardware-accelerated effects, and improved deployment and security features for out-of-browser applications.
AD109 - Using the IBM Sametime Proxy SDK: WebSphere Portal, IBM Connections -...Carl Tyler
From simple lightweight usage to full real world integration and development, the Sametime Proxy offers an exceptional range of social capabilities. This session will showcase our integration with Portal and Connections, and then move on to illustrate how the openness of the programming model makes it suitable for any environment, by extending SDK objects, managing events and overriding Sametime Proxy widget prototypes. This session will show you real world examples of how customers transformed regular web and mobile applications into those with a rich social experience using the Sametime Proxy
This document provides an overview of enterprise rich internet applications (RIAs) with examples and lessons learned from real world implementations. It discusses the requirements and benefits of enterprise RIAs, compares various RIA platforms, and shares case studies of companies that have implemented RIAs using the Curl platform to address challenges like linking field data to business processes and providing complex applications via a web-based infrastructure. The document concludes that Ajax is inadequate for enterprise needs, and that Curl has seen the largest enterprise adoption of the four main RIA platforms that aim to meet stringent enterprise requirements.
The document discusses modeling web applications using the Web Application Extension (WAE) for UML. The WAE allows web pages and other significant web elements to be represented in UML design models. It introduces stereotypes for classes like server pages and client pages to model different aspects of web pages. It also includes stereotypes for associations between model elements like links, builds, submits, and redirects. The document provides examples of using WAE stereotypes to model elements of a sample microblogging application and a lab's wall of text website.
DHTML combines HTML, JavaScript, and CSS to enable dynamic content and interactivity beyond traditional HTML. It allows for animation, drag and drop, and style changes to interface elements. However, support is inconsistent across browsers. Logic and data are delivered to the browser with each page load, increasing server loads and requiring full page reloads. Common UI features can also be difficult to implement with DHTML.
Here are the slides from my talk at @media in London two weeks ago titled "Professional Frontend Engineering." I had four goals for the talk.
Put a stake in the ground.
Reiterate our values.
Advocate the discipline.
Nurture a healthy Web.
The goals were threaded throughout the four sections of the talk::
Historical Perspective
Our Beliefs & Principles
Knowledge Areas & Best Practices
Why It All Matters
The professionalization of frontend engineering is a topic I'm passionate about. I think it is critical to the advancement of the Internet.
Presented May 30th, 2008, in London at the @media conference in the plenary opening day two.
This document discusses securing database access from AJAX/RIA applications in the cloud. It outlines limitations of existing cloud databases and security models. The key proposal is using Secure Unique Result Identifiers (SURIDs) that encapsulate row access controls and prevent direct primary key exposure. SURIDs allow AJAX applications to query and update cloud databases without compromising security or requiring a server-side component.
The document discusses architecting non-trivial browser applications. It outlines the modern web application paradigm with client-server interactions over HTTP and separating concerns between frontend and backend. The consequences of this new architecture include better user experience but also increasing complexity on the client-side. The document advocates embracing this complexity through goals like reusability, encapsulation, and separation of concerns to support sustainable development of complex JavaScript applications.
Find me if you can – smart fuzzing and discovery! shreeraj shahowaspindia
This document discusses smart fuzzing and discovery techniques for assessing applications. It begins with an introduction of the speaker and his background in security research. It then covers challenges with traditional fuzzing approaches not working well on modern web 2.0 applications. The document discusses discovery techniques like crawling Ajax sites and enumerating hidden entry points. It also covers different attack vectors and payloads to use like XML, JSON, and different web protocols. The challenges of blind SQL injection and behavioral assessment with artificial intelligence are also mentioned.
The document discusses server-side programming using Java servlets. It begins with an introduction to servlets and their role in dynamically generating web pages based on user input, changing data, or server-side sources like databases. It then covers key aspects of the servlet programming model including the servlet lifecycle with initialization and request handling, the servlet container that manages servlets, and common web servers like Tomcat that implement the servlet specification. Example uses of servlets are also provided.
Covering:
- What is a Content Repository and how does it work
- Comparison to relational database
- Why stable APIs are important and what to do if they are not
- Benefits of the open and transparent development
- Oh boy.. can I see it already!
- Why Sling is called Sling
- Various ways to deploy and develop code
- Deployment options and clustering
The document discusses themes in IBM WebSphere Portal. It provides an overview of theme basics, the theme framework, dynamic content spots, and theme optimization. It describes how themes have evolved from version 6.1 to 8.0 of WebSphere Portal and the key elements of themes and skins. The theme architecture did not change in version 8.5 but focuses on simplification, serviceability, and mobile support.
This document discusses the Social Enabler project from OpenNTF, which aims to provide social functionality for XPages applications using the IBM Social Business Toolkit. It outlines goals like providing ready-to-use components, APIs, and scenarios. Key technologies discussed include HTML5, REST, JSON, OAuth, Activity Streams, and OpenSocial. Current functionality demonstrated includes reading from and writing to activity streams, displaying XPages in embedded experiences, and writing custom REST services.
John Kenneth D. Gallego has over 5 years of experience in information technology with expertise in object oriented software development, SharePoint 2007, GUI, .NET frameworks, and more. He has a Bachelor's degree in Information Technology and is proficient in languages like C#, ASP.NET, PHP, and VB. His experience includes projects for various clients in fields like healthcare, education, and more. He is interested in continuing to learn new programming techniques and enterprise application development.
This document provides an overview of the Spring framework, including:
- A brief history of Spring's development from 2002 to present.
- An overview of Spring's key features like lightweight containers, declarative transactions, and dependency injection.
- An explanation of Spring's layered architecture including presentation, service, and persistence layers.
- A discussion of why Spring was created to simplify enterprise application development and reduce complexity.
- An outline of Spring's various modules that can be selectively used in applications.
Java Framework for Database-Centric Web EngineeringBeat Signer
Presentation given at WebE 2001, 4th Workshop on Web Engineering (in conjunction with 10th International World Wide Web Conference), Hong Kong, May 2001
ABSTRACT: We present a database-centric approach to web site development in which both application and web content data are managed by a database. The development process is based on three main stages of information modelling, document content design and presentation specification. A Java framework based on the OMS object-oriented data management system has been developed to support the development life cycle from rapid prototyping through to operation. We describe how the framework supports access from heterogeneous clients and how it has been extended to include a web content manager.
The document discusses IBM's WebSphere Process Server (WPS) and WebSphere Integration Developer (WID) products and architecture. It provides an overview of the key components, including the Enterprise Service Bus (ESB), Process Server, human tasks, business rules and processes. It also discusses capabilities like Service Component Architecture (SCA), performance results for banking and contact manager scenarios, and clustering.
Dojo is a JavaScript framework that helps build dynamic web applications. It provides tools and techniques to handle data, user interfaces, internationalization, and accessibility. Dojo includes data stores to retrieve and manage data, widgets to display data, and templating to generate interface code on the client-side. It also offers utilities to optimize application loading, such as file merging and minification.
1. The document discusses Web 2.0 and how developing applications for it can be challenging due to the many technologies involved.
2. It introduces EGL Rich UI, which aims to simplify Web 2.0 development by providing a single programming language and model that supports rich user interfaces, web services, and extensibility.
3. EGL Rich UI allows for simple data access, service declaration and use, and user interface definition to help modernize applications without needing in-depth knowledge of various Web 2.0 technologies.
Silverlight 4 & Windows Phone 7 at Zup Zip Black Coffee#5SoftEngine
The document discusses the features and capabilities of Silverlight 4, including improvements to rich text support, networking, media playback, graphics and imaging, data binding, and tools. Key additions include support for webcam, microphone, printing, additional languages, hardware-accelerated effects, and improved deployment and security features for out-of-browser applications.
AD109 - Using the IBM Sametime Proxy SDK: WebSphere Portal, IBM Connections -...Carl Tyler
From simple lightweight usage to full real world integration and development, the Sametime Proxy offers an exceptional range of social capabilities. This session will showcase our integration with Portal and Connections, and then move on to illustrate how the openness of the programming model makes it suitable for any environment, by extending SDK objects, managing events and overriding Sametime Proxy widget prototypes. This session will show you real world examples of how customers transformed regular web and mobile applications into those with a rich social experience using the Sametime Proxy
This document provides an overview of enterprise rich internet applications (RIAs) with examples and lessons learned from real world implementations. It discusses the requirements and benefits of enterprise RIAs, compares various RIA platforms, and shares case studies of companies that have implemented RIAs using the Curl platform to address challenges like linking field data to business processes and providing complex applications via a web-based infrastructure. The document concludes that Ajax is inadequate for enterprise needs, and that Curl has seen the largest enterprise adoption of the four main RIA platforms that aim to meet stringent enterprise requirements.
The document discusses modeling web applications using the Web Application Extension (WAE) for UML. The WAE allows web pages and other significant web elements to be represented in UML design models. It introduces stereotypes for classes like server pages and client pages to model different aspects of web pages. It also includes stereotypes for associations between model elements like links, builds, submits, and redirects. The document provides examples of using WAE stereotypes to model elements of a sample microblogging application and a lab's wall of text website.
DHTML combines HTML, JavaScript, and CSS to enable dynamic content and interactivity beyond traditional HTML. It allows for animation, drag and drop, and style changes to interface elements. However, support is inconsistent across browsers. Logic and data are delivered to the browser with each page load, increasing server loads and requiring full page reloads. Common UI features can also be difficult to implement with DHTML.
Here are the slides from my talk at @media in London two weeks ago titled "Professional Frontend Engineering." I had four goals for the talk.
Put a stake in the ground.
Reiterate our values.
Advocate the discipline.
Nurture a healthy Web.
The goals were threaded throughout the four sections of the talk::
Historical Perspective
Our Beliefs & Principles
Knowledge Areas & Best Practices
Why It All Matters
The professionalization of frontend engineering is a topic I'm passionate about. I think it is critical to the advancement of the Internet.
Presented May 30th, 2008, in London at the @media conference in the plenary opening day two.
This document discusses securing database access from AJAX/RIA applications in the cloud. It outlines limitations of existing cloud databases and security models. The key proposal is using Secure Unique Result Identifiers (SURIDs) that encapsulate row access controls and prevent direct primary key exposure. SURIDs allow AJAX applications to query and update cloud databases without compromising security or requiring a server-side component.
The document discusses architecting non-trivial browser applications. It outlines the modern web application paradigm with client-server interactions over HTTP and separating concerns between frontend and backend. The consequences of this new architecture include better user experience but also increasing complexity on the client-side. The document advocates embracing this complexity through goals like reusability, encapsulation, and separation of concerns to support sustainable development of complex JavaScript applications.
Find me if you can – smart fuzzing and discovery! shreeraj shahowaspindia
This document discusses smart fuzzing and discovery techniques for assessing applications. It begins with an introduction of the speaker and his background in security research. It then covers challenges with traditional fuzzing approaches not working well on modern web 2.0 applications. The document discusses discovery techniques like crawling Ajax sites and enumerating hidden entry points. It also covers different attack vectors and payloads to use like XML, JSON, and different web protocols. The challenges of blind SQL injection and behavioral assessment with artificial intelligence are also mentioned.
The document discusses server-side programming using Java servlets. It begins with an introduction to servlets and their role in dynamically generating web pages based on user input, changing data, or server-side sources like databases. It then covers key aspects of the servlet programming model including the servlet lifecycle with initialization and request handling, the servlet container that manages servlets, and common web servers like Tomcat that implement the servlet specification. Example uses of servlets are also provided.
Covering:
- What is a Content Repository and how does it work
- Comparison to relational database
- Why stable APIs are important and what to do if they are not
- Benefits of the open and transparent development
- Oh boy.. can I see it already!
- Why Sling is called Sling
- Various ways to deploy and develop code
- Deployment options and clustering
The document defines 10 vocabulary words related to democratic principles, economics, exploration, geography, military service, trade, and nationalism. It provides brief definitions or explanations of the terms "democratic", "laissez faire", "free market", "judicial review", "expedition", "continental divide", "impressment", "embargo", "confederation", and "nationalism" in 1-2 sentences each.
This document summarizes and analyzes the cover designs of four film magazines: Total Film, Empire, Filmmaker, and Cineaste. It discusses elements like the magazine titles, images, fonts, color schemes, and how these visual components establish each magazine's identity, target audience, and tone. Key details that distinguish the magazines include Total Film having an exciting colorful background, Empire using a dark color scheme to match its coverage of dark films, Filmmaker employing a plain indie style with minimalist design, and Cineaste signaling its academic focus through a simple serif title and diverse article highlights. Overall, the document examines how magazine covers use visual cues to represent their brand and intended readership.
The document describes the process of creating a film magazine mockup. It details experimenting with different shots, realizing the initial images were unsatisfactory, and developing a black and white/noir theme inspired by films like The Godfather. A photo shoot was conducted and one image was selected and cropped in Photoshop. Text and graphics were added to complete the mockup, including the title "Hot Sights", film titles along the top, and selling points on the cover.
The crown capital management jakarta international relations for many asylum ...bellefretz15
Ali Nowroz sits quietly in a bar on Jalan Jaksa in Central Jakarta. Nearby, a small group of expatriates analyze their careers and love lives as Nowroz, 25,
recalls a not-so-distant past, when the Taliban tried to kidnap him.
Nowroz is from Quetta, Pakistan, but is of Afghan descent and is an easily recognizable member of the Hazara ethnicity. Because of this, he has endured
racial and religious persecution his entire life. Pakistani Hazaras, who are mainly Shiite Muslims, have been prime targets of Sunni radicals for several
decades.
Manusia memperoleh pendidikan melalui proses konseptualisasi pengalaman sensori dan verifikasi pengetahuan untuk mengurangi kesalahan. Metode ilmiah yang mengandalkan percobaan terkontrol dan data empiris menghasilkan pengetahuan yang lebih valid dibanding pendekatan non-ilmiah seperti akal sehat, intuisi, atau prasangka.
The document describes the process taken to create a movie poster. Photoshop, Pixlr, and PowerPoint were used to edit a photo, add text, and design the layout. Two photos were cropped and edited to remove the background. Colors were adjusted and the lips were recolored. The edited photo was inserted into PowerPoint where text and a mock-up were added. Elements from inspirational posters were incorporated into the final design, which combined the photo with text in a simplistic, modern style.
Communicative competence refers to the ability to communicate effectively and involves several competencies. It includes grammatical competence involving language rules, discourse competence involving coherent texts, pragmatic competence involving context-appropriate language, and strategic competence involving communication strategies. Being communicatively competent means having the skills to convey one's intended message. Teaching should focus on developing all competencies together through authentic language use involving listening, speaking, reading and writing.
This document provides an introduction to ASP.NET and web forms. It discusses the background of web development technologies including what ASP is. It then covers the overview of ASP.NET including its goals, key features, and architecture. The document dives into the ASP.NET programming model including controls and events, the object model, and how postbacks maintain page state. It also discusses server-side controls.
This document provides an introduction and overview of ASP.NET, including what ASP.NET is, how it differs from ASP, ASP.NET files and how ASP.NET works. It describes the ASP.NET lifecycle and architecture. It also discusses ASP.NET page structure, development models including web forms and MVC, and provides examples of ASP.NET code. Key features and potential drawbacks of ASP.NET are summarized.
HTTP is a TCP/IP based communication protocol used to deliver web content. It provides a standardized way for computers to communicate requests and responses. HTTP is connectionless, media independent, and stateless. Server-side programming processes user input, compiles pages, structures applications, and interacts with storage. Common server-side languages include PHP, Python, and ASP.Net. Client-side programming makes webpages interactive and allows interaction with temporary storage. Common client-side languages are JavaScript, HTML, and CSS. Web architectures can be simple/two-tier with a web and database server, or multi-tier with additional servers and legacy databases. Popular web servers are Apache and IIS. Dynamic page generation lowers costs and
This document provides an introduction and overview of Microsoft's .NET platform and Visual Studio.NET integrated development environment (IDE). It discusses what .NET is, the .NET Framework including the Common Language Runtime (CLR) and class libraries, and Visual Studio.NET's support for C# and Visual Basic.NET programming languages. The document also provides a high-level agenda and links for further information.
The document provides an overview of Microsoft ASP.NET, describing what it is, its advantages, and how it works. Key points include: ASP.NET provides a programming model and infrastructure for developing web applications using .NET languages and services; it offers advantages like compiled pages, XML configuration, and server controls; applications can be built as web forms or web services; and the .NET Framework provides a large class library for ASP.NET applications to utilize.
The document provides an overview of building web applications using ASP.NET and .NET Framework. It discusses the key features of ASP.NET like server controls, master pages, themes, data access, security etc. It also covers ASP.NET programming basics, different page models, folder structure and the ASP.NET execution model.
This document provides an introduction and overview of ASP.NET. It begins with an introduction to .NET and discusses some limitations of classic ASP. It then covers the key features and advantages of ASP.NET, including server controls, data controls, web applications, and web services. The document demonstrates some ASP.NET functionality and provides an agenda and additional resources for learning more about ASP.NET development.
This document provides an overview of server-side ASP.NET technologies. It compares ASP.NET to PHP, discusses the problems with classic ASP that ASP.NET aimed to address, and outlines key ASP.NET concepts like the .NET Framework, ASPX files and code-behind files, page lifecycle, controls, state management, and configuration files. The document also covers ASP.NET execution process, advantages over classic ASP, and references additional resources for further information.
Active server pages .net role discusses shifting from classic ASP to ASP.NET, which provides a framework with namespaces and can be developed using an IDE. ASP.NET uses web forms and pages, separating HTML from application logic. It discusses state management techniques like cookies and hidden fields to maintain state across HTTP requests. The key objectives of ASP.NET are to create web forms with server controls, separate code and content, display dynamic data through binding, and debug ASP.NET pages.
The document provides information about Satyam Software Solutions Pvt. Ltd., including that they develop embedded systems and provide cost-effective solutions for organizations. They are developing a flexible and manageable NANO OS for sensor networks and robotics. They also offer hardware development services like microprocessor board development and custom board development.
Web development concepts using microsoft technologiesHosam Kamel
This document summarizes a presentation about web development concepts using Microsoft technologies. It introduces ASP.NET as a framework for building web applications in C# or VB.NET using Visual Studio. It describes ASP.NET features like controls, page lifecycle, and different coding styles. It also discusses recent additions like AJAX, jQuery, LINQ, MVC, and the Microsoft web platform. The presentation aims to provide an overview of Microsoft web technologies and how they can help developers build web applications.
PHP, LAMP, Windows, ASP.NET ?????? Sometimes you can't choose just one.
In this session, long time PHP developer and Microsoft MisfitGeek with explore the plethora of ways you can make PHP and ASP.NET interoperate.
DevNext - Web Programming Concepts Using Asp NetAdil Mughal
This document provides an overview of web programming concepts using ASP.NET. It discusses HTTP requests and the difference between static and dynamic web pages. It also covers ASP.NET page lifecycles, client-side vs server-side processing, and state management using view state. The document includes demonstrations of ASP.NET web applications and key concepts.
This document provides an overview of server-side ASP.NET technologies. It compares ASP.NET to PHP, discusses the problems with classic ASP that ASP.NET aimed to address, and outlines key ASP.NET concepts like the .NET framework, ASPX files and code behind files, page lifecycle, controls, state management, and configuration files. The document also covers ASP.NET execution process, advantages over classic ASP, and references additional resources for further information.
This document provides an overview of server-side ASP.NET technologies. It compares ASP.NET to PHP, discusses the problems with classic ASP that ASP.NET aimed to address, and outlines key ASP.NET concepts like the .NET framework, ASPX files and code-behind files, page lifecycle, controls, state management, and configuration files. The document also covers Just-In-Time compilation, global application events handled in Global.asax, and use of the XML-based Web.config file for application configurations.
This document provides an overview of server-side ASP.NET technologies. It compares ASP.NET to PHP, discusses the problems with classic ASP that ASP.NET aimed to address, and outlines key ASP.NET concepts like the .NET framework, ASPX files and code-behind files, page lifecycle, controls, state management, and configuration files. The document also covers ASP.NET execution process, advantages over classic ASP, and references additional resources for further information.
ASP.NET is a web application framework developed by Microsoft that allows programmers to build dynamic web sites, web applications, and web services. It is built on the .NET Framework and runs on the Common Language Runtime (CLR), allowing programmers to write code using supported .NET languages like C#, VB.NET, and C++. Key characteristics of ASP.NET include using pages with a code-behind model, directives, user and custom controls, a rendering technique that builds a control tree, and various state management options. Benefits include easier maintenance compared to classic ASP due to separation of code and content, built-in validation controls, and faster performance at large volumes.
This document provides an introduction to ASP.NET and web forms. It discusses the background and limitations of ASP, and how ASP.NET aims to address these by simplifying coding, improving maintainability and scalability. The key features of ASP.NET include web forms, server controls, events-based programming model and compiled code for improved performance.
The .NET Framework is a development platform that provides a managed computing environment and common language runtime. It includes common .NET languages like C# and VB compiled to intermediate language. The common language runtime translates this to native code and provides services like memory management. The class library includes prebuilt functionality. ASP.NET is built on .NET and hosts web applications, supporting authentication and data storage. Visual Studio is an IDE that facilitates application development in this platform.
The document provides an overview of .NET, including:
1) .NET is a platform and vision for software development that includes frameworks, languages and services.
2) The .NET Framework includes common language runtime, libraries and compilers that support multiple languages.
3) Web services are programmable application components accessible via standard web protocols that are central to .NET.
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slackshyamraj55
Discover the seamless integration of RPA (Robotic Process Automation), COMPOSER, and APM with AWS IDP enhanced with Slack notifications. Explore how these technologies converge to streamline workflows, optimize performance, and ensure secure access, all while leveraging the power of AWS IDP and real-time communication via Slack notifications.
Driving Business Innovation: Latest Generative AI Advancements & Success StorySafe Software
Are you ready to revolutionize how you handle data? Join us for a webinar where we’ll bring you up to speed with the latest advancements in Generative AI technology and discover how leveraging FME with tools from giants like Google Gemini, Amazon, and Microsoft OpenAI can supercharge your workflow efficiency.
During the hour, we’ll take you through:
Guest Speaker Segment with Hannah Barrington: Dive into the world of dynamic real estate marketing with Hannah, the Marketing Manager at Workspace Group. Hear firsthand how their team generates engaging descriptions for thousands of office units by integrating diverse data sources—from PDF floorplans to web pages—using FME transformers, like OpenAIVisionConnector and AnthropicVisionConnector. This use case will show you how GenAI can streamline content creation for marketing across the board.
Ollama Use Case: Learn how Scenario Specialist Dmitri Bagh has utilized Ollama within FME to input data, create custom models, and enhance security protocols. This segment will include demos to illustrate the full capabilities of FME in AI-driven processes.
Custom AI Models: Discover how to leverage FME to build personalized AI models using your data. Whether it’s populating a model with local data for added security or integrating public AI tools, find out how FME facilitates a versatile and secure approach to AI.
We’ll wrap up with a live Q&A session where you can engage with our experts on your specific use cases, and learn more about optimizing your data workflows with AI.
This webinar is ideal for professionals seeking to harness the power of AI within their data management systems while ensuring high levels of customization and security. Whether you're a novice or an expert, gain actionable insights and strategies to elevate your data processes. Join us to see how FME and AI can revolutionize how you work with data!
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUpanagenda
Webinar Recording: https://www.panagenda.com/webinars/hcl-notes-und-domino-lizenzkostenreduzierung-in-der-welt-von-dlau/
DLAU und die Lizenzen nach dem CCB- und CCX-Modell sind für viele in der HCL-Community seit letztem Jahr ein heißes Thema. Als Notes- oder Domino-Kunde haben Sie vielleicht mit unerwartet hohen Benutzerzahlen und Lizenzgebühren zu kämpfen. Sie fragen sich vielleicht, wie diese neue Art der Lizenzierung funktioniert und welchen Nutzen sie Ihnen bringt. Vor allem wollen Sie sicherlich Ihr Budget einhalten und Kosten sparen, wo immer möglich. Das verstehen wir und wir möchten Ihnen dabei helfen!
Wir erklären Ihnen, wie Sie häufige Konfigurationsprobleme lösen können, die dazu führen können, dass mehr Benutzer gezählt werden als nötig, und wie Sie überflüssige oder ungenutzte Konten identifizieren und entfernen können, um Geld zu sparen. Es gibt auch einige Ansätze, die zu unnötigen Ausgaben führen können, z. B. wenn ein Personendokument anstelle eines Mail-Ins für geteilte Mailboxen verwendet wird. Wir zeigen Ihnen solche Fälle und deren Lösungen. Und natürlich erklären wir Ihnen das neue Lizenzmodell.
Nehmen Sie an diesem Webinar teil, bei dem HCL-Ambassador Marc Thomas und Gastredner Franz Walder Ihnen diese neue Welt näherbringen. Es vermittelt Ihnen die Tools und das Know-how, um den Überblick zu bewahren. Sie werden in der Lage sein, Ihre Kosten durch eine optimierte Domino-Konfiguration zu reduzieren und auch in Zukunft gering zu halten.
Diese Themen werden behandelt
- Reduzierung der Lizenzkosten durch Auffinden und Beheben von Fehlkonfigurationen und überflüssigen Konten
- Wie funktionieren CCB- und CCX-Lizenzen wirklich?
- Verstehen des DLAU-Tools und wie man es am besten nutzt
- Tipps für häufige Problembereiche, wie z. B. Team-Postfächer, Funktions-/Testbenutzer usw.
- Praxisbeispiele und Best Practices zum sofortigen Umsetzen
Unlocking Productivity: Leveraging the Potential of Copilot in Microsoft 365, a presentation by Christoforos Vlachos, Senior Solutions Manager – Modern Workplace, Uni Systems
Sudheer Mechineni, Head of Application Frameworks, Standard Chartered Bank
Discover how Standard Chartered Bank harnessed the power of Neo4j to transform complex data access challenges into a dynamic, scalable graph database solution. This keynote will cover their journey from initial adoption to deploying a fully automated, enterprise-grade causal cluster, highlighting key strategies for modelling organisational changes and ensuring robust disaster recovery. Learn how these innovations have not only enhanced Standard Chartered Bank’s data infrastructure but also positioned them as pioneers in the banking sector’s adoption of graph technology.
Infrastructure Challenges in Scaling RAG with Custom AI modelsZilliz
Building Retrieval-Augmented Generation (RAG) systems with open-source and custom AI models is a complex task. This talk explores the challenges in productionizing RAG systems, including retrieval performance, response synthesis, and evaluation. We’ll discuss how to leverage open-source models like text embeddings, language models, and custom fine-tuned models to enhance RAG performance. Additionally, we’ll cover how BentoML can help orchestrate and scale these AI components efficiently, ensuring seamless deployment and management of RAG systems in the cloud.
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...Neo4j
Leonard Jayamohan, Partner & Generative AI Lead, Deloitte
This keynote will reveal how Deloitte leverages Neo4j’s graph power for groundbreaking digital twin solutions, achieving a staggering 100x performance boost. Discover the essential role knowledge graphs play in successful generative AI implementations. Plus, get an exclusive look at an innovative Neo4j + Generative AI solution Deloitte is developing in-house.
Climate Impact of Software Testing at Nordic Testing DaysKari Kakkonen
My slides at Nordic Testing Days 6.6.2024
Climate impact / sustainability of software testing discussed on the talk. ICT and testing must carry their part of global responsibility to help with the climat warming. We can minimize the carbon footprint but we can also have a carbon handprint, a positive impact on the climate. Quality characteristics can be added with sustainability, and then measured continuously. Test environments can be used less, and in smaller scale and on demand. Test techniques can be used in optimizing or minimizing number of tests. Test automation can be used to speed up testing.
UiPath Test Automation using UiPath Test Suite series, part 6DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 6. In this session, we will cover Test Automation with generative AI and Open AI.
UiPath Test Automation with generative AI and Open AI webinar offers an in-depth exploration of leveraging cutting-edge technologies for test automation within the UiPath platform. Attendees will delve into the integration of generative AI, a test automation solution, with Open AI advanced natural language processing capabilities.
Throughout the session, participants will discover how this synergy empowers testers to automate repetitive tasks, enhance testing accuracy, and expedite the software testing life cycle. Topics covered include the seamless integration process, practical use cases, and the benefits of harnessing AI-driven automation for UiPath testing initiatives. By attending this webinar, testers, and automation professionals can gain valuable insights into harnessing the power of AI to optimize their test automation workflows within the UiPath ecosystem, ultimately driving efficiency and quality in software development processes.
What will you get from this session?
1. Insights into integrating generative AI.
2. Understanding how this integration enhances test automation within the UiPath platform
3. Practical demonstrations
4. Exploration of real-world use cases illustrating the benefits of AI-driven test automation for UiPath
Topics covered:
What is generative AI
Test Automation with generative AI and Open AI.
UiPath integration with generative AI
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfMalak Abu Hammad
Discover how MongoDB Atlas and vector search technology can revolutionize your application's search capabilities. This comprehensive presentation covers:
* What is Vector Search?
* Importance and benefits of vector search
* Practical use cases across various industries
* Step-by-step implementation guide
* Live demos with code snippets
* Enhancing LLM capabilities with vector search
* Best practices and optimization strategies
Perfect for developers, AI enthusiasts, and tech leaders. Learn how to leverage MongoDB Atlas to deliver highly relevant, context-aware search results, transforming your data retrieval process. Stay ahead in tech innovation and maximize the potential of your applications.
#MongoDB #VectorSearch #AI #SemanticSearch #TechInnovation #DataScience #LLM #MachineLearning #SearchTechnology
Threats to mobile devices are more prevalent and increasing in scope and complexity. Users of mobile devices desire to take full advantage of the features
available on those devices, but many of the features provide convenience and capability but sacrifice security. This best practices guide outlines steps the users can take to better protect personal devices and information.
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024Neo4j
Neha Bajwa, Vice President of Product Marketing, Neo4j
Join us as we explore breakthrough innovations enabled by interconnected data and AI. Discover firsthand how organizations use relationships in data to uncover contextual insights and solve our most pressing challenges – from optimizing supply chains, detecting fraud, and improving customer experiences to accelerating drug discoveries.
Communications Mining Series - Zero to Hero - Session 1DianaGray10
This session provides introduction to UiPath Communication Mining, importance and platform overview. You will acquire a good understand of the phases in Communication Mining as we go over the platform with you. Topics covered:
• Communication Mining Overview
• Why is it important?
• How can it help today’s business and the benefits
• Phases in Communication Mining
• Demo on Platform overview
• Q/A
2. S511 Module Structure
S511 Technologies for E-business
Prelims .Net framework Web Services
M1 M8
Basics XML M5
XML WS
.Net
M2
XML
Mid-term
Database Services
M3 M4
Project
XML-2 XSLT M6 M7
ADO .Net Query
Intro. Prog. Data management (core) Object-oriented Programming
Slide 2 of 72
3. Learning Objectives
What is ASP.NET; why it was developed
ASP.NET features
Programming Web Forms
Slide 3 of 72
4. Agenda
Background
ASP.NET Overview
Programming Model
Programming Basics
Server Controls
Data Binding
Conclusion
Slide 4 of 72
5. Background
Web Architecture
PC/Mac/Unix/...
Client
+ Browser
Request:
http://www.digimon.com/default.asp
Network HTTP, TCP/IP
Response:
<html>….</html>
Server Web Server
Slide 5 of 72
6. Background
Web Development Technologies
Client-side technologies
HTML, DHTML, JavaScript
Server-side technologies
ASP (Active Server Pages)
ASP.NET is the next generation of ASP
Slide 6 of 72
7. Background
What is ASP?
Server-side programming technology
Consists of static HTML interspersed with script
ASP intrinsic objects (Request, Response,
Server, Application, Session) provide services
Commonly uses ADO to interact with databases
Application and session variables
Application and session begin/end events
ASP manages threads, database connections, ...
Slide 7 of 72
8. Background
What is ASP?
HTTP request HTTP response
(form data, HTTP HTML, XML
header data)
ASP page
(static HTML,
server-side logic)
Slide 8 of 72
9. Background
Demo: HelloWorld.asp
<html>
<head><title>HelloWorld.asp</title></head>
<body>
<form method=“post">
<input type="submit" id=button1 name=button1
value="Push Me" />
<%
if (Request.Form("button1") <> "") then
Response.Write("<p>Hello, the time is " & Now())
end if
%>
</form>
</body>
</html>
Slide 9 of 72
10. Background
ASP Successes
Simple procedural programming model
Access to COM components
ActiveX Data Objects (ADO)
File System Object
Custom components
Script-based: no compiling, just edit, save & run
VBScript, JScript – leverages existing skills
Support for multiple scripting languages
ASP has been very popular
Slide 10 of 72
11. Background
ASP Challenges
Coding overhead (too much code)
Everything requires writing code!
Code readability (too complex; code and UI intermingled)
Maintaining page state requires more code
Reuse is difficult
Supporting many types of browsers is difficult
Deployment issues (e.g. DLL locking)
Session state scalability and availability
Limited support for caching, tracing, debugging, etc.
Performance and safety limitations of script
Slide 11 of 72
12. Agenda
Background
ASP.NET Overview
Programming Model
Programming Basics
Server Controls
Data Binding
Conclusion
Slide 12 of 72
13. ASP.NET Overview
ASP.NET provides services to allow the
creation, deployment, and execution of
Web Applications and Web Services
Like ASP, ASP.NET is a server-side technology
Web Applications are built using Web Forms
Web Forms are designed to make building
web-based applications as easy as building
Visual Basic applications
Slide 13 of 72
14. ASP.NET Overview
Goals
Keep the good parts of ASP and improve the rest
Simplify: less code, easier to create and maintain
Multiple, compiled languages
Fast
Scalable
Manageable
Available
Customizable and extensible
Secure
Tool support
Slide 14 of 72
15. ASP.NET Overview
Key Features
Web Forms Session management
Web Services Caching
Built on .NET Framework Debugging
Simple programming Extensibility
model Separation of code and UI
Maintains page state Security
Multibrowser support ASPX, ASP side by side
XCOPY deployment Simplified form validation
XML configuration Cookieless sessions
Complete object model
Slide 15 of 72
16. ASP.NET Overview
Demo: HelloWorld.aspx
<%@ Page Language="VB" %>
<html>
<head>
<script runat="server">
sub B_Click (sender as object, e as System.EventArgs )
Label1.Text = "Hello, the time is " & DateTime.Now
end sub
</script>
</head>
<body>
<form method="post" runat="server">
<asp:Button onclick="B_Click" Text="Push Me"
runat="server" /> <p>
<asp:Label id=Label1 runat="server" />
</form>
</body>
</html>
Slide 16 of 72
17. ASP.NET Overview
Architecture
ASP.NET is built upon
.NET Framework
Internet Information Server (IIS)
Slide 17 of 72
18. ASP.NET Overview
Architecture
VB C++ C# JScript …
Visual Studio.NET
Common Language Specification
ASP.NET: Web Services Windows
and Web Forms Forms
ADO.NET: Data and XML
Base Classes
Common Language Runtime
Slide 18 of 72
19. Agenda
Background
ASP.NET Overview
Programming Model
Programming Basics
Server Controls
Data Binding
Conclusion
Slide 19 of 72
20. Programming Model
Controls and Events
Server-side programming model
Based on controls and events
Just like Visual Basic
Not “data in, HTML out”
Higher level of abstraction than ASP
Requires less code
More modular, readable, and maintainable
Slide 20 of 72
21. Programming Model
Controls and Events
Button code
Button ...
List code
List ...
Text code
Text ...
Browser ASP.NET Event handlers
Slide 21 of 72
22. Programming Model
ASP.NET Object Model
User code executes on the web server in
page or control event handlers
Controls are objects, available in
server-side code
Derived from System.Web.UI.Control
The web page is an object too
Derived from System.Web.UI.Page which is a
descendant of System.Web.UI.Control
A page can have methods, properties, etc.
Slide 22 of 72
23. Programming Model
Postbacks
A postback occurs when a page generates an
HTML form whose values are posted back
to the same page
A common technique for handling form data
In ASP and other server-side technologies the
state of the page is lost upon postback...
Unless you explicitly write code to maintain state
This is tedious, bulky and error-prone
Slide 23 of 72
24. Programming Model
Postbacks Maintain State
By default, ASP.NET maintains the state of all
server-side controls during a postback
Can use method="post" or method="get"
Server-side control objects are automatically
populated during postback
No state stored on server
Works with all browsers
Slide 24 of 72
25. Programming Model
Server-side Controls
Multiple sources of controls
Built-in
3rd party
User-defined
Controls range in complexity and power: button,
text, drop down, calendar, data grid, ad rotator,
validation
Can be populated via data binding
Slide 25 of 72
26. Programming Model
Automatic Browser Compatibility
Controls can provide automatic browser
compatibility
Can target UpLevel or DownLevel browsers
UpLevel browsers support additional functionality,
such as JavaScript and DHTML
DownLevel browsers support HTML 3.2
Slide 26 of 72
27. Programming Model
Automatic Browser Compatibility
IE 4
Button
Menu
Text
Netscape Button Control Button code
Button ...
Menu
Text
Menu Control Menu code
...
IE 5.5
Button
Text Control Text code
Menu
Text
...
IE 6
Button
Menu ASP.NET Event handlers
Text
...
Slide 27 of 72
28. Programming Model
Code-behind pages
Two styles of creating ASP.NET pages
Controls and code in .aspx file
Controls in .aspx file, code in code-behind page
Supported in Visual Studio.NET
Code-behind pages allow you to separate the
user interface design from the code
Allows programmers and designers to work
independently
<%@ Codebehind=“WebForm1.bas”
Inherits=WebApplication1.WebForm1” %>
Slide 28 of 72
29. Programming Model
Automatic Compilation
Just edit the code and hit the page
ASP.NET will automatically compile the code
into an assembly
Compiled code is cached in the CLR
Assembly Cache
Subsequent page hits use compiled assembly
If the text of the page changes then the code
is recompiled
Works just like ASP: edit, save and run
Slide 29 of 72
31. Agenda
Background
ASP.NET Overview
Programming Model
Programming Basics
Server Controls
Data Binding
Conclusion
Slide 31 of 72
32. Programming Basics
Page Syntax
The most basic page is just static text
Any HTML page can be renamed .aspx
Pages may contain:
Directives: <%@ Page Language=“VB” %>
Server controls: <asp:Button runat=“server”>
Code blocks: <script runat=“server”>…</script>
Data bind expressions: <%# %>
Server side comments: <%-- --%>
Render code: <%= %> and <% %>
Use is discouraged; use <script runat=server> with code in
event handlers instead
Slide 32 of 72
33. Programming Basics
The Page Directive
Lets you specify page-specific attributes, e.g.
AspCompat: Compatibility with ASP
Buffer: Controls page output buffering
CodePage: Code page for this .aspx page
ContentType: MIME type of the response
ErrorPage: URL if unhandled error occurs
Inherits: Base class of Page object
Language: Programming language
Trace: Enables tracing for this page
Transaction: COM+ transaction setting
Only one page directive per .aspx file
Slide 33 of 72
34. Programming Basics
Server Control Syntax
Controls are declared as HTML tags with
runat=“server” attribute
<input type=text id=text2 runat=“server” />
<asp:calendar id=myCal runat=“server” />
Tag identifies which type of control to create
Control is implemented as an ASP.NET class
The id attribute provides programmatic identifier
It names the instance available during postback
Just like Dynamic HTML
Slide 34 of 72
35. Programming Basics
Server Control Properties
Tag attributes map to control properties
<asp:button id=“c1" Text="Foo" runat=“server”>
<asp:ListBox id=“c2" Rows="5" runat=“server”>
Tags and attributes are case-insensitive
Control properties can be set programmatically
c1.Text = “Foo”
c2.Rows = 5
Slide 35 of 72
36. Programming Basics
Maintaining State
By default. controls maintain their state across
multiple postback requests
Implemented using a hidden HTML field:
__VIEWSTATE
Works for controls with input data (e.g. TextBox,
CheckBox), non-input controls (e.g. Label,
DataGrid), and hybrids (e.g. DropDownList,
ListBox)
Can be disabled per control or entire page
Set EnableViewState=“false”
Lets you minimize size of __VIEWSTATE
Slide 36 of 72
37. Programming Basics
Maintaining State
Demo: MaintainingState.asp,
MaintainingState.aspx
Slide 37 of 72
38. Programming Basics
Server Code Blocks
Server code lives in a script block marked
runat=“server”
<script language="C#" runat=server>
<script language="VB" runat=server>
<script language="JScript" runat=server>
Script blocks can contain
Variables, methods, event handlers, properties
They become members of a custom Page object
Slide 38 of 72
39. Programming Basics
Page Events
Pages are structured using events
Enables clean code organization
Avoids the “Monster IF” statement
Less complex than ASP pages
Code can respond to page events
e.g. Page_Load, Page_Unload
Code can respond to control events
Button1_Click
Textbox1_Changed
Slide 39 of 72
40. Programming Basics
Page Event Lifecycle
Initialize Page_Init
Restore Control State
Load Page Page_Load
Control Events
1. Change Events Textbox1_Changed
2. Action Events Button1_Click
Save Control State
Render
Unload Page Page_Unload
Slide 40 of 72
41. Programming Basics
Page Loading
Page_Load fires at beginning of request after
controls are initialized
Input control values already populated
protected sub Page_Load(s as Object, e as
EventArgs)
message.Text = "Howdy, World!"
End sub
Slide 41 of 72
42. Programming Basics
Page Loading
Page_Load fires on every request
Use Page.IsPostBack to execute conditional logic
If a Page/Control is maintaining state then need only
initialize it when IsPostBack is false
protected sub Page_Load(s as Object, e as EventArgs)
if (Page.IsPostBack) then
else
' Executes only on initial page load
Message.Text = "initial value"
' Rest of procedure executes on every request
end sub
Slide 42 of 72
43. Programming Basics
Server Control Events
Change Events
By default, these execute only on next action event
E.g. OnTextChanged, OnCheckedChanged
Change events fire in random order
Action Events
Cause an immediate postback to server
E.g. OnClick
Works with any browser
No client script required, no applets,
no ActiveX® Controls!
Slide 43 of 72
44. Programming Basics
Wiring Up Control Events
Control event handlers are identified on the tag
<asp:button onclick="btn1_click“ runat=server>
<asp:textbox onchanged="text1_changed“ runat=server>
Event handler code
protected sub btn1_Click(s as Object, e as EventArgs)
Message.Text = “Button1 clicked”
end sub
Slide 44 of 72
45. Programming Basics
Event Arguments
Events pass two arguments:
The sender, declared as type object
Usually the object representing the control that generated
the event
Allows you to use the same event handler for
multiple controls
Arguments, declared as type EventArgs
Provides additional data specific to the event
EventArgs itself contains no data; a class derived from
EventArgs will be passed
Slide 45 of 72
46. Programming Basics
Page Unloading
Page_Unload fires after the page is rendered
Don’t try to add to output
Useful for logging and clean up
protected sub Page_Unload(s as Object, e as
EventArgs)
MyApp.LogPageComplete()
end sub
Slide 46 of 72
47. Programming Basics
Import Directive
Adds code namespace reference to page
Avoids having to fully qualify .NET types and
class names
Equivalent to the VB imports directive
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Net" %>
<%@ Import Namespace="System.IO" %>
Slide 47 of 72
48. Programming Basics
Page Class
The Page object is always available when
handling server-side events
Provides a large set of useful properties and
methods, including:
Application, Cache, Controls,
EnableViewState, EnableViewStateMac,
ErrorPage, IsPostBack, IsValid, Request,
Response, Server, Session, Trace, User,
Validators
DataBind(), LoadControl(), MapPath(),
Validate()
Slide 48 of 72
49. Agenda
Background
ASP.NET Overview
Programming Model
Programming Basics
Server Controls
Data Binding
Conclusion
Slide 49 of 72
50. Server Controls
ASP.NET ships with ~50 built-in controls
Organized into logical families
HTML controls
Controls / properties map 1:1 with HTML
Web controls
Richer functionality
More consistent object model
Slide 50 of 72
51. Server Controls
HTML Controls
Work well with existing HTML designers
Properties map 1:1 with HTML
table.bgcolor ="red"
Can specify client-side event handlers
Good when quickly converting existing pages
Derived from
System.Web.UI.HtmlControls.HtmlControl
Supported controls have custom class,
others derive from HtmlGenericControl
Slide 51 of 72
53. Server Controls
HTML Controls
Demo 1: HTMLControls1.aspx
Basic page lifecycle with HTML Controls
Demo 2: HTMLControls2.aspx
More HTML Controls
Slide 53 of 72
54. Server Controls
HTML Controls
Can use controls two ways:
Handle everything in action events (e.g. button click)
Event code will read the values of other controls (e.g. text,
check boxes, radio buttons, select lists)
Handle change events as well as action events
Slide 54 of 72
55. Server Controls
Web Controls
Consistent object model
Label1.BackColor = Color.Red
Table.BackColor = Color.Blue
Richer functionality
E.g. AutoPostBack, additional methods
Automatic uplevel/downlevel support
E.g. validation controls
Strongly-typed; no generic control
Enables better compiler type checking
Slide 55 of 72
56. Server Controls
Web Controls
Web controls appear in HTML markup as
namespaced tags
Web controls have an asp: prefix
<asp:button onclick="button1_click“ runat=server>
<asp:textbox onchanged="text1_changed“ runat=server>
Defined in the System.Web.UI.WebControls
namespace
This namespace is automatically mapped to the
asp: prefix
Slide 56 of 72
57. Server Controls
Web Controls
Web Controls provide extensive properties to
control display and format, e.g.
Font
BackColor, ForeColor
BorderColor, BorderStyle, BorderWidth
Style, CssClass
Height, Width
Visible, Enabled
Slide 57 of 72
58. Server Controls
Web Controls
Four types of Web Controls
Intrinsic controls
List controls
Rich controls
Validation controls
Slide 58 of 72
59. Server Controls
Intrinisic Controls
Correspond to HTML controls
Supported controls
<asp:button> <asp:radiobutton>
<asp:imagebutton> <asp:image>
<asp:linkbutton> <asp:label>
<asp:hyperlink> <asp:panel>
<asp:textbox> <asp:table>
<asp:checkbox>
Slide 59 of 72
60. Server Controls
Intrinisic Controls
TextBox, ListControl, CheckBox and their
subclasses don’t automatically do a postback
when their controls are changed
Specify AutoPostBack=true to make change
events cause a postback
Slide 60 of 72
61. Server Controls
List Controls
Controls that handle repetition
Supported controls
<asp:dropdownlist>
<asp:listbox>
<asp:radiobuttonlist>
<asp:checkboxlist>
<asp:repeater>
<asp:datalist>
<asp:datagrid>
Slide 61 of 72
62. Server Controls
List Controls
Repeater, DataList and DataGrid controls
Powerful, customizable list controls
Expose templates for customization
Can contain other controls
Provide event bubbling through their
OnItemCommand event
More about these controls and templates later
Slide 62 of 72
63. Server Controls
CheckBoxList & RadioButtonList
Provides a collection of check box or
radio button controls
Can be populated via data binding
<asp:CheckBoxList id=Check1 runat="server">
<asp:ListItem>Item 1</asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
<asp:ListItem>Item 3</asp:ListItem>
<asp:ListItem>Item 4</asp:ListItem>
<asp:ListItem>Item 5</asp:ListItem>
</asp:CheckBoxList>
Slide 63 of 72
64. Server Controls
Intrinisic & Simple List Controls
Demo 1: WebControls1.aspx
Assorted intrinsic and list controls
Demo 2: WebControls2.aspx
Same controls with AutoPostBack
Slide 64 of 72
65. Server Controls
Rich Controls
Custom controls with rich functionality
Supported Controls
<asp:calendar>
<asp:adrotator>
More will be added
3rd party controls are coming
Demo: RichControls1.aspx
Slide 65 of 72
66. Server Controls
Validation Controls
Rich, declarative validation
Validation declared separately from input control
Extensible validation framework
Supports validation on client and server
Automatically detects uplevel clients
Avoids roundtrips for uplevel clients
Server-side validation is always done
Prevents users from spoofing Web Forms
Slide 66 of 72
67. Server Controls
Validation Controls
<asp:RequiredFieldValidator>
Ensures that a value is entered
<asp:RangeValidator>
Checks if value is within minimum and maximum values
<asp:CompareValidator>
Compares value against constant, another control or data type
<asp:RegularExpressionValidator>
Tests if value matches a predefined pattern
<asp:CustomValidator>
Lets you create custom client- or server-side validation function
<asp:ValidationSummary>
Displays list of validation errors in one place
Slide 67 of 72
68. Server Controls
Validation Controls
Validation controls are derived from
System.Web.UI.WebControls.BaseValidator,
which is derived from the Label control
Validation controls contain text which is displayed
only if validation fails
Text property is displayed at control location
ErrorMessage is displayed in summary
Slide 68 of 72
69. Server Controls
Validation Controls
Validation controls are associated with their
target control using the ControlToValidate
property
<asp:TextBox id=TextBox1 runat=server />
<asp:RequiredFieldValidator id="Req1"
ControlToValidate="TextBox1"
Text="Required Field" runat=server />
Can create multiple validation controls with the
same target control
Slide 69 of 72
70. Server Controls
Validation Controls
Page.IsValid indicates if all validation
controls on the page succeed
void Submit_click(s as object, e as EventArgs)
if (Page.IsValid) then
Message.Text = "Page is valid!"
end if
end sub
Slide 70 of 72
71. Server Controls
Validation Controls
Display property controls layout
Static: fixed layout, display won’t change if invalid
Dynamic: dynamic layout
None: no display; can still use ValidationSummary
and Page.IsValid
Type property specifies expected data type:
Currency, Date, Double, Integer, String
Slide 71 of 72
72. Server Controls
Validation Controls
Can force down-level option
Only server-side validation
<% @ Page Language="c#"
ClientTarget="DownLevel" %>
Slide 72 of 72
73. Server Controls
Validation Controls
Demo: ValidationControls1.aspx
Demonstrates each type of validation control
Slide 73 of 72
74. Agenda
Background
ASP.NET Overview
Programming Model
Programming Basics
Server Controls
Data Binding
Conclusion
Slide 74 of 72
75. Data Binding
How to Populate Server Controls?
Specify the data in the control’s tags
Not dynamic: can’t get data from a database
Write code that uses the control’s object model
This is okay if you need to populate a simple value or
list, but quickly gets too complicated for populating
sophisticated displays
Data binding
Create an object that holds the data
(DataSet, Array, string, int, etc.)
Associate that object with the control
Slide 75 of 72
76. Data Binding
What Is It?
Provides a single simple yet powerful way to
populate Web Form controls with data
Enables clean separation of code from UI
Supports binding to any data source
Properties, expressions, method calls
Collections (Array, Hashtable, etc.)
DataSet, DataTable, DataView, DataReader
XML
One way snapshot model
Requires code to reapply to data model
Slide 76 of 72
77. Data Binding
What Is It?
Allows you to specify an expression
When the DataBind method of the control is
called, the expression is evaluated and bound
DataBind for a single control (and subcontrols)
Page.DataBind binds all controls on a page
Works for scalars, e.g. Label control
Works for lists, e.g. DropDown control,
ListBox control, etc.
Enables the use of templates
Slide 77 of 72
78. Data Binding
Scalar Expressions
Data binding expression: <%# expression %>
Expression is evaluated when DataBind()
is called
<asp:Label id=label1
Text=<%# “The result is “ & (1 + 2) &
“, the time is “ & DateTime.Now.ToLongTimeString() %>
runat="server" />
public sub Page_Load(s as object, e as EventArgs)
if (Page.IsPostBack) then
else
Page.DataBind()
end if
end sub
Slide 78 of 72
79. Data Binding
Scalar Expressions
Demo: DataBinding1.aspx
Data binding to simple, scalar expressions
Slide 79 of 72
80. Data Binding
Simple Lists
Data binding a list creates a user interface
element for each item in the list
Each item contains text (displayed to user) and
an optional value (not displayed)
The simple list controls:
<asp:ListBox>
Single or multiple select
<asp:DropDownList>
<asp:RadioButtonList>
<asp:CheckBoxList>
Slide 80 of 72
81. Data Binding
Simple Lists
Steps to data bind a list control
Declare the list control
Optionally set DataValueField
and DataTextField
Set its DataSource
Call DataBind() method
Slide 81 of 72
82. Data Binding
Simple Lists
Demo: DataBinding2.aspx
Data binding to simple lists
Slide 82 of 72
84. Resources
ASP.NET Overview
http://msdn.microsoft.com/msdnmag/issues/0900/ASPPlus/AS
PPlus.asp
Validation
http://msdn.microsoft.com/library/techart/aspplusvalid.h
tm
Databinding in 3 parts
http://msdn.microsoft.com/msdnmag/issues/01/03/cutting/c
utting0103.asp
http://msdn.microsoft.com/msdnmag/issues/01/04/cutting/c
utting0104.asp
http://msdn.microsoft.com/msdnmag/issues/01/05/cutting/c
utting0105.asp
ASP.NET component model
http://msdn.microsoft.com/msdnmag/issues/01/02/cutting/c
utting0102.asp
Slide 84 of 72
Editor's Notes
In this module we will focus on what ASP.NET is, why it was created, and how to do the essential programming tasks. Next time we’ll go into a variety of other aspects of ASP.NET
Have to write code to do anything. There is almost no purely declarative way to do anything.