5032.docx - onload control has loaded into the window or frame(Not to be confused with Page_Load which happens when the whole page has loaded onunload

5032.docx - onload control has loaded into the window or...

This preview shows page 1 - 3 out of 9 pages.

onload - control has loaded into the window or frame (Not to be confused with Page_Load() which happens when the whole page has loaded) onunload - control has been unloaded from the window or frame onclick - a mouse button is clicked over an <asp:button> control oninit - web page is first initialised onprerender - just before the control is rendered selectindexchanged and checkchanged - the contents of a control have been altered, such as a checkbox clicked or a list item selected. Only applies to list items JavaScript has a number of similar event handlers: o onmouseup - happens when a mouse button is released while over an element (like an image, or a link or a button) o onmousedown - happens when a mouse button is pressed and held down while over an element o onmouseover - happens when a mouse is moved over an element o onclick - happens when a mouse button is clicked over an element o ondblclick - happens when a mouse button is double clicked over an element o onkeyup - happens when a key is released o onkeypress - happens when a key is pressed and released o onkeydown - happens when a key is pressed down and held down There are many built in Validation types supported • Range Validation [Range(0, 1000, ErrorMessage = "Enter price between 0 to 1000")] • Data Type Validation [DataType(DataType.Date)] • Length Validation [StringLength(255, MinimumLength = 8)]
Image of page 1
• Regular Expression Validation • Etc... [EmailAddress] Framework A Framework, in this regard, is a collection of code, libraries, classes and run-time environment that helps developers build web applications faster. The main idea behind using frameworks is to provide developers with commonly used functionalities and a basic structure, upon which they can build their application. Most experienced developers have their own set of libraries and a structure, which they re-use from application to application in order to help them develop faster. Using a framework allows developers to not only use their own experience, but the experience of many other developers who have contributed to the development and testing of the framework. It also ensures that developers follow the same conventions, rules and structure when working on the application. Common Design Patterns A design pattern is a general solution to a commonly occuring problem in application development. A design pattern is not a complete coding solution, rather it is a description for how to solve a problem that can be used in many different situations. In web development, there are many common design patterns that are used to solve common problems. We will look at the MCV design pattern. MVC The MVC pattern is a commonly used design pattern in software development, where the code is separated into three major parts: models, views and controllers. The exact purpose of each part depends on the implementation and may vary from one framework to another. We will look at ASP.NETs MVC implementation, which is contextualised to the host system - ASP.NET and may differ slighly from other MVC implementations.
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 9 pages?

  • One '17

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture