The MVC Programming Model
|
|
|
- Bridget Pierce
- 9 years ago
- Views:
Transcription
1 The MVC Programming Model MVC is one of three ASP.NET programming models. MVC is a framework for building web applications using a MVC (Model View Controller) design: The Model represents the application core (for instance a list of database records). The View displays the data (the database records). The Controller handles the input (to the database records). The MVC model also provides full control over HTML, CSS, and JavaScript. The MVC model defines web applications with 3 logic layers: The business layer (Model logic) The display layer (View logic) The input control (Controller logic) The Model is the part of the application that handles the logic for the application data. Often model objects retrieve data (and store data) from a database. The View is the parts of the application that handles the display of the data. Most often the views are created from the model data. The Controller is the part of the application that handles user interaction. Typically controllers read data from a view, control user input, and send input data to the model.
2 The MVC separation helps you manage complex applications, because you can focus on one aspect a time. For example, you can focus on the view without depending on the business logic. It also makes it easier to test an application. The MVC separation also simplifies group development. Different developers can work on the view, the controller logic, and the business logic in parallel. Web Forms vs MVC The MVC programming model is a lighter alternative to traditional ASP.NET (Web Forms). It is a lightweight, highly testable framework, integrated with all existing ASP.NET features, such as Master Pages, Security, and Authentication. ASP.NET MVC - Application What We Will Build We will build an Internet application that supports adding, editing, deleting, and listing of information stored in a database. What We Will Do Visual Web Developer offers different templates for building web applications. We will use Visual Web Developer to create an empty MVC Internet application with HTML5 markup. When the empty Internet application is created, we will gradually add code to the application until it is fully finished. We will use C# as the programming language, and the newest Razor server code markup. Along the way we will explain the content, the code, and all the components of the application. Creating the Web Application If you have Visual Web Developer installed, start Visual Web Developer and select New Project. Otherwise just read and learn.
3 In the New Project dialog box: Open the Visual C# templates Select the template ASP.NET MVC 3 Web Application Set the project name to MvcDemo Set the disk location to something like c:\w3schools_demo Click OK When the New Project Dialog Box opens: Select the Internet Application template Select the Razor Engine Select HTML5 Markup Click OK
4 Visual Studio Express will create a project much like this: We will explore the content of the files and folders in the next chapter of this tutorial MVC Folders A typical ASP.NET MVC web application has the following folder content: Application information Properties References Application folders App_Data Folder Content Folder Controllers Folder Models Folder Scripts Folder Views Folder
5 Configuration files Global.asax packages.config Web.config The folder names are equal in all MVC applications. The MVC framework is based on default naming. Controllers are in the Controllers folder, Views are in the Views folder, and Models are in the Models folder. You don't have to use the folder names in your application code. Standard naming reduces the amount of code, and makes it easier for developers to understand MVC projects. Below is a brief summary of the content of each folder: The App_Data Folder The App_Data folder is for storing application data. We will add an SQL database to the App_Data folder, later in this tutorial. The Content Folder The Content folder is used for static files like style sheets (css files), icons and images. Visual Web Developer automatically adds a themes folder to the Content folder. The themes folder is filled with jquery styles and pictures. In this project you can delete the themes folder. Visual Web Developer also adds a standard style sheet file to the project: the file Site.css in the content folder. The style sheet file is the file to edit when you want to change the style of the application.
6 We will edit the style sheet file (Site.css) file in the next chapter of this tutorial. The Controllers Folder The Controllers folder contains the controller classes responsible for handling user input and responses. MVC requires the name of all controller files to end with "Controller". Visual Web Developer has created a Home controller (for the Home and the About page) and an Account controller (for Login pages):
7 We will create more controllers later in this tutorial. The Models Folder The Models folder contains the classes that represent the application models. Models hold and manipulate application data. We will create models (classes) in a later chapter of this tutorial. The Views Folder The Views folder stores the HTML files related to the display of the application (the user interfaces). The Views folder contains one folder for each controller. Visual Web Developer has created an Account folder, a Home folder, and a Shared folder (inside the Views folder). The Account folder contains pages for registering and logging in to user accounts. The Home folder is used for storing application pages like the home page and the about page. The Shared folder is used to store views shared between controllers (master pages and layout pages).
8 We will edit the layout files in the next chapter of this tutorial. The Scripts Folder The Scripts folder stores the JavaScript files of the application. By default Visual Web Developer fills this folder with standard MVC, Ajax, and jquery files:
9 Note: The files named "modernizr" are JavaScript files used for supporting HTML5 and CSS3 features in the application. ASP.NET MVC - Styles and Layout To learn ASP.NET MVC, we are Building an Internet Application. Part III: Adding Styles and a Consistent Look (Layout).
10 Adding a Layout The file _Layout.cshtml represent the layout of each page in the application. It is located in the Shared folder inside the Views folder. Open the file and swap the content with this: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> < title>@viewbag.title</title> <link href="@url.content("~/content/site.css")" rel="stylesheet" type="text/css" /> <script src="@url.content("~/scripts/jquery min.js")"></script> <script src="@url.content("~/scripts/modernizr-1.7.min.js")"></script> </head> <body> <ul id="menu"> < li>@html.actionlink("home", "Index", "Home")</li> <li>@html.actionlink("movies", "Index", "Movies")</li> <li>@html.actionlink("about", "About", "Home")</li> </ul> <section < p>copyright W3schools All Rights Reserved.</p> </section> </body> </html> HTML Helpers In the code above, HTML helpers are used to modify HTML - URL content will be inserted - HTML link will be inserted here. You will learn more about HTML helpers in a later chapter of this tutorial. Razor Syntax In the code above, the code marked red are C# using Razor - The page title will be inserted - The page content will be rendered here. You can learn about Razor markup for both C# and VB (Visual Basic) in our Razor tutorial.
11 Adding Styles The style sheet for the application is called Site.css. It is located in the Content folder. Open the file Site.css and swap the content with this: body font: "Trebuchet MS", Verdana, sans-serif; background-color: #5c87b2; color: #696969; h1 border-bottom: 3px solid #cc9900; font: Georgia, serif; color: #996600; #main padding: 20px; background-color: #ffffff; border-radius: 0 4px 4px 4px; a color: #034af3; /* Menu Styles */ ul#menu padding: 0px; position: relative; margin: 0; ul#menu li display: inline; ul#menu li a background-color: #e8eef4; padding: 10px 20px; text-decoration: none; line-height: 2.8em; /*CSS3 properties*/ border-radius: 4px 4px 0 0; ul#menu li a:hover
12 background-color: #ffffff; /* Forms Styles */ fieldset padding-left: 12px; fieldset label display: block; padding: 4px; input[type="text"], input[type="password"] width: 300px; input[type="submit"] padding: 4px; /* Data Styles */ table.data background-color:#ffffff; border:1px solid #c3c3c3; border-collapse:collapse; width:100%; table.data th background-color:#e8eef4; border:1px solid #c3c3c3; padding:3px; table.data td border:1px solid #c3c3c3; padding:3px; The _ViewStart File The _ViewStart file in the Shared folder (inside the Views folder) contains the following = "~/Views/Shared/_Layout.cshtml"; This code is automatically added to all views displayed by the application.
13 If you remove this file, you must add this line to all views. You will learn more about views in a later chapter of this tutorial. ASP.NET MVC - Controllers To learn ASP.NET MVC, we are Building an Internet Application. Part IV: Adding a Controller. The Controllers Folder The Controllers Folder contains the controller classes responsible for handling user input and responses. MVC requires the name of all controllers to end with "Controller". In our example, Visual Web Developer has created the following files: HomeController.cs (for the Home and About pages) and AccountController.cs (For the Log On pages): Web servers will normally map incoming URL requests directly to disk files on the server. For example: a URL request like " will map directly to the file "default.asp" at the root directory of the server. The MVC framework maps differently. MVC maps URLs to methods. These methods are in classes called "Controllers". Controllers are responsible for processing incoming requests, handling input, saving data, and sending a response to send back to the client.
14 The Home controller The controller file in our application HomeController.cs, defines the two controls Index and About. Swap the content of the HomeController.cs file with this: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace MvcDemo.Controllers public class HomeController : Controller public ActionResult Index() return View(); public ActionResult About() return View(); The Controller Views The files Index.cshtml and About.cshtml in the Views folder defines the ActionResult views Index() and About() in the controller. ASP.NET MVC - Views To learn ASP.NET MVC, we are Building an Internet Application. Part V: Adding Views for Displaying the Application. The Views Folder The Views folder stores the files (HTML files) related to the display of the application (the user interfaces). These files may have the extensions html, asp, aspx, cshtml, and vbhtml, depending on the language content.
15 The Views folder contains one folder for each controller. Visual Web Developer has created an Account folder, a Home folder, and a Shared folder (inside the Views folder). The Account folder contains pages for registering and logging in to user accounts. The Home folder is used for storing application pages like the home page and the about page. The Shared folder is used to store views shared between controllers (master pages and layout pages). ASP.NET File Types The following HTML file types can be found in the Views Folder: File Type Extention Plain HTML Classic ASP Classic ASP.NET ASP.NET Razor C# ASP.NET Razor VB.htm or.html.asp.aspx.cshtml.vbhtml
16 The Index File The file Index.cshtml represents the Home page of the application. It is the application's default file (index file). Put the following content in the = "Home Page"; <h1>welcome to W3Schools</h1> <p>put Home Page content here</p> The About File The file About.cshtml represent the About page of the application. Put the following content in the = "About Us"; <h1>about Us</h1> <p>put About Us content here</p> Run the Application Select Debug, Start Debugging (or F5) from the Visual Web Developer menu. Your application will look like this:
17 Click on the "Home" tab and the "About" tab to see how it works. Congratulations Congratulations. You have created your first MVC Application. Note: You cannot click on the "Movies" tab yet. We will add code for the "Movies" tab in the next chapters of this tutorial. ASP.NET MVC - SQL Database To learn ASP.NET MVC, we are Building an Internet Application. Part VI: Adding a Database. Creating the Database Visual Web Developer comes with a free SQL database called SQL Server Compact. The database needed for this tutorial can be created with these simple steps: Right-click the App_Data folder in the Solution Explorer window
18 Select Add, New Item Select SQL Server Compact Local Database * Name the database Movies.sdf. Click the Add button * If SQL Server Compact Local Database is not an option, you have not installed SQL Server Compact on your computer. Install it from this link: SQL Server Compact Visual Web Developer automatically creates the database in the App_Data folder. Note: In this tutorial it is expected that you have some knowledge about SQL databases. If you want to study this topic first, please visit our SQL Tutorial. Adding a Database Table Double-clicking the Movies.sdf file in the App_Data folder will open a Database Explorer window. To create a new table in the database, right-click the Tables folder, and select Create Table. Create the following columns: Column Type Allow Nulls ID int (primary key) No Title nvarchar(100) No Director nvarchar(100) No Date datetime No Columns explained: ID is an integer (whole number) used to identify each record in the table. Title is a 100 character text column to store the name of the movie. Director is a 100 character text column to store the director's name. Date is a datetime column to store the release date of the movie. After creating the columns described above, you must make the ID column the table's primary key (record identifier). To do this, click on the column name (ID) and select Primary Key. Also, in the Column Properties window, set the Identity property to True:
19 When you have finished creating the table columns, save the table and name it MovieDBs. Note: We have deliberately named the table "MovieDBs" (ending with s). In the next chapter, you will see the name "MovieDB" used for the data model. It looks strange, but this is the naming convention you have to use to make the controller connect to the database table. Adding Database Records You can use Visual Web Developer to add some test records to the movie database. Double-click the Movies.sdf file in the App_Data folder. Right-click the MovieDBs table in the Database Explorer window and select Show Table Data. Add some records:
20 ID Title Director Date 1 Psycho Alfred Hitchcock La Dolce Vita Federico Fellini Note: The ID column is updated automatically. You should not edit it. ASP.NET MVC - Models To learn ASP.NET MVC, we are Building an Internet Application. Part VII: Adding a Data Model. MVC Models The MVC Model contains all application logic (business logic, validation logic, and data access logic), except pure view and controller logic. With MVC, models both hold and manipulate application data. The Models Folder The Models Folder contains the classes that represent the application model. Visual Web Developer automatically creates an AccountModels.cs file that contains the models for application security. AccountModels contains a LogOnModel, a ChangePasswordModel, and a RegisterModel. Adding a Database Model The database model needed for this tutorial can be created with these simple steps: In the Solution Explorer, right-click the Models folder, and select Add and Class. Name the class MovieDB.cs, and click Add. Edit the class: using System; using System.Collections.Generic; using System.Linq;
21 using System.Web; using System.Data.Entity; namespace MvcDemo.Models public class MovieDB public int ID get; set; public string Title get; set; public string Director get; set; public DateTime Date get; set; public class MovieDBContext : DbContext public DbSet<MovieDB> Movies get; set; Note: We have deliberately named the model class "MovieDB". In the previous chapter, you saw the name "MovieDBs" (ending with s) used for the database table. It looks strange, but this is the naming convention you have to use to make the model connect to the database table. Adding a Database Controller The database controller needed for this tutorial can be created with these simple steps: Re-Build your project: Select Debug, and then Build MvcDemo from the menu. In the Solution Explorer, right-click the Controllers folder, and select Add and Controller Set controller name to MoviesController Select template: Controller with read/write actions and views, using Entity Framework Select model class: MovieDB (MvcDemo.Models) Select data context class: MovieDBContext (MvcDemo.Models) Select views Razor (CSHTML) Click Add Visual Web Developer will create the following files: A MoviesController.cs file in the Controllers folder A Movies folder in the Views folder
22 Adding Database Views The following files are automatically created in the Movies folder: Create.cshtml Delete.cshtml Details.cshtml Edit.cshtml Index.cshtml Adding a Connection String Add the following element to the <connectionstrings> element in your Web.config file: <add name="moviedbcontext" connectionstring="data Source= DataDirectory \Movies.sdf" providername="system.data.sqlserverce.4.0"/> Congratulations Congratulations. You have added your first MVC data model to your application. Now you can click on the "Movies" tab :-) ASP.NET MVC - Security To learn ASP.NET MVC, we are Building an Internet Application. Part VIII: Adding Security. MVC Application Security The Models Folder contains the classes that represent the application model. Visual Web Developer automatically creates an AccountModels.cs file that contains the models for application authentication. AccountModels contains a LogOnModel, a ChangePasswordModel, and a RegisterModel:
23 The Change Password Model public class ChangePasswordModel [Required] [DataType(DataType.Password)] [Display(Name = "Current password")] public string OldPassword get; set; [Required] [StringLength(100, ErrorMessage = "The 0 must be at least 2 long.", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "New password")] public string NewPassword get; set; characters
24 [DataType(DataType.Password)] [Display(Name = "Confirm new password")] [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")] public string ConfirmPassword get; set; The Logon Model public class LogOnModel [Required] [Display(Name = "User name")] public string UserName get; set; [Required] [DataType(DataType.Password)] [Display(Name = "Password")] public string Password get; set; [Display(Name = "Remember me?")] public bool RememberMe get; set; The Register Model public class RegisterModel [Required] [Display(Name = "User name")] public string UserName get; set; [Required] [DataType(DataType. Address)] [Display(Name = " address")] public string get; set; [Required] [StringLength(100, ErrorMessage = "The 0 must be at least 2 characters
25 long.", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "Password")] public string Password get; set; [DataType(DataType.Password)] [Display(Name = "Confirm password")] [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")] public string ConfirmPassword get; set; ASP.NET MVC - HTML Helpers HTML Helpers are used to modify HTML output HTML Helpers With MVC, HTML helpers are much like traditional ASP.NET Web Form controls. Just like web form controls in ASP.NET, HTML helpers are used to modify HTML. But HTML helpers are more lightweight. Unlike Web Form controls, an HTML helper does not have an event model and a view state. In most cases, an HTML helper is just a method that returns a string. With MVC, you can create your own helpers, or use the built in HTML helpers. Standard HTML Helpers MVC includes standard helpers for the most common types of HTML elements, like HTML links and HTML form elements. HTML Links The easiest way to render an HTML link in is to use the HTML.ActionLink() helper. With MVC, the Html.ActionLink() does not link to a view. It creates a link to a controller action. Razor Syntax:
26 @Html.ActionLink("About this Website", "About") ASP Syntax: <%=Html.ActionLink("About this Website", "About")%> The first parameter is the link text, and the second parameter is the name of the controller action. The Html.ActionLink() helper above, outputs the following HTML: <a href="/home/about">about this Website</a> The Html.ActionLink() helper has several properties: Property.linkText.actionName.routeValues.controllerName.htmlAttributes.protocol.hostname.fragment Description The link text (label) The target action The values passed to the action The target controller The set of attributes to the link The link protocol The host name for the link The anchor target for the link Note: You can pass values to a controller action. For example, you can pass the id of a database record to a database edit action: Razor Syntax Record", "Edit", new Id=3) Razor Syntax Record", "Edit", New With.Id=3) The Html.ActionLink() helper above, outputs the following HTML: <a href="/home/edit/3">edit Record</a> HTML Form Elements There following HTML helpers can be used to render (modify and output) HTML form elements: BeginForm() EndForm()
27 TextArea() TextBox() CheckBox() RadioButton() ListBox() DropDownList() Hidden() Password() ASP.NET Syntax C#: <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %> <% using (Html.BeginForm())%> <p> <label for="firstname">first Name:</label> <%= Html.TextBox("FirstName") %> <%= Html.ValidationMessage("FirstName", "*") %> </p> <p> <label for="lastname">last Name:</label> <%= Html.TextBox("LastName") %> <%= Html.ValidationMessage("LastName", "*") %> </p> <p> <label for="password">password:</label> <%= Html.Password("Password") %> <%= Html.ValidationMessage("Password", "*") %> </p> <p> <label for="password">confirm Password:</label> <%= Html.Password("ConfirmPassword") %> <%= Html.ValidationMessage("ConfirmPassword", "*") %> </p> <p> <label for="profile">profile:</label> <%= Html.TextArea("Profile", new cols=60, rows=10)%> </p> <p> <%= Html.CheckBox("ReceiveNewsletter") %> <label for="receivenewsletter" style="display:inline">receive Newsletter?</label> </p> <p> <input type="submit" value="register" /> </p> <%%>
28 MVC and Active Directory You can secure your MVC web application on an Active Directory network by authenticating users directly against their domain credentials. STEP 1: ACCOUNTCONTROLLER.CS Replace your AccountController.cs file with the following: using System.Web.Mvc; using System.Web.Security; using MvcApplication.Models; public class AccountController : Controller public ActionResult Login() return this.view(); [HttpPost] public ActionResult Login(LoginModel model, string returnurl) if (!this.modelstate.isvalid)
29 return this.view(model); if (Membership.ValidateUser(model.UserName, model.password)) FormsAuthentication.SetAuthCookie(model.UserName, model.rememberme); if (this.url.islocalurl(returnurl) && returnurl.length > 1 && returnurl.startswith("/") &&!returnurl.startswith("//") &&!returnurl.startswith("/\\")) return this.redirect(returnurl); return this.redirecttoaction("index", "Home"); this.modelstate.addmodelerror(string.empty, "The user name or password provided is incorrect."); return this.view(model);
30 public ActionResult LogOff() FormsAuthentication.SignOut(); return this.redirecttoaction("index", "Home"); STEP 2: ACCOUNTVIEWMODELS.CS Update your AccountViewModels.cs (or whatever your Account model class is named) to contain only this LoginModel class: using System.ComponentModel.DataAnnotations; public class LoginModel [Required] [Display(Name = "User name")] public string UserName get; set; [Required] [DataType(DataType.Password)] [Display(Name = "Password")] public string Password get; set;
31 [Display(Name = "Remember me?")] public bool RememberMe get; set; STEP 3: WEB.CONFIG Finally, update your Web.config file to include these elements. <?xml version="1.0" encoding="utf-8"?> <configuration> <system.web> <authentication mode="forms"> <forms name=".adauthcookie" loginurl="~/account/login" timeout="45" slidingexpiration="false" protection="all" /> </authentication> <membership defaultprovider="admembershipprovider"> <providers> <clear /> <add name="admembershipprovider" type="system.web.security.activedirectorymembershipprovider" connectionstringname="adconnectionstring" attributemapusername="samaccountname" /> </providers> </membership> </system.web> <connectionstrings>
32 <add name="adconnectionstring" connectionstring="ldap://primary.mydomain.local:389/dc=mydomain,dc=local" /> </connectionstrings> </configuration> It may take a few steps to get your LDAP connection string: 1. Install Remote Server Administration Tools for Windows 7. Be sure the follow the post-installation instructions to add the feature to Windows via the control panel. 2. Open a command prompt and enter >dsquery server Let s say the command returns the following: CN=PRIMARY,CN=Servers,CN=Default-First-Site- Name,CN=Sites,CN=Configuration,DC=MyDomain,DC=Local The server name is composed of the first CN value, and the two last DC values, separated by dots. So it s primary.mydomain.local. The port is 389. The portion of the connection string after the port and forward slash is the portion of the result beginning with the first DC. So it s DC=MyDomain,DC=Local. So the full connection string is LDAP://primary.mydomain.local:389/DC=MyDomain,DC=Local. Users will log in using just their username without the domain. So the correct username is Chris, not MYDOMAIN\Chris.
33 ASP.NET MVC 5 - Bootstrap 3.0 in 3 Steps Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created and maintained by Mark Otto and Jacob Thornton. Bootstrap is available for MVC4 via Nuget or by default in new MVC5 projects. UI Components Over a dozen reusable components built to provide iconography, dropdowns, navigation, alerts, popovers, and much more. JavaScripts Bring Bootstrap's components to life with over a dozen custom jquery plugins. Easily include them all, or one by one. Introduction This tip walks you through the steps for creating a ASP.NET MVC 5 Web Application using Bootstrap as template for layout. STEP 1 - Create ASP.NET Web Application Open Visual Studio 2013 and create a new project of type ASP.NET Web Application. On this project, I create a solution called MVCBootstrap.
34 Press OK, and a new screen will appear, with several options of template to use on our project. Select the option MVC.
35 STEP 2 - Upgrade Version if Necessary You can verify the version of bootstrap on two ways. First one, accessing the files on Content or Scripts folder. If open for example the file Bootstrap.css, we can check that the version of bootstrap is the
36 Another way to verify the bootstrap version is to check the installed NuGet package. Right click the solution and select Manage NuGet packages for solution.. option. In the Manage NuGet screen, select Installed Packages section. Then select the bootstrap package in the center pane to see the version details. As you see, the version is
37 STEP 3 - Change Layout The default bootstrap template used in Visual Studio 2013 is Jumbotron. Jumpotron s original source code is available here in bootstrap website. On this sample, we will change this template to the Justified-Nav one. So for that, do the next steps: Add the style sheet justified-nav.css to the Content folder
38 Open the BundleConfig.cs file under the App_Start folder. Add the justified-nav.css to the ~/Content/css style bundle. Now, open the layout file _Layout.cshtml in the Shared folder under Views Folder Remove the section within the div tag with class= navbar navbar-inverse navbar-fixedtop
39 One of the most critical things to understand with Bootstrap is the included grid system. When first getting started, you'll want to imagine it as being a grid with 12 columns. As an added benefit, those 12 columns will automatically collapse down to one column on a device with a small screen, such as a mobile phone or tablet. To illustrate this, start by finding the following line in the _Layout.vbhtml file you've been working with Open the Index.cshtml file in the Home folder under Views Change the class col-md-4 to col-lg-4 Now the sample is ready. This is the sample created with solution:
40
41
A send-a-friend application with ASP Smart Mailer
A send-a-friend application with ASP Smart Mailer Every site likes more visitors. One of the ways that big sites do this is using a simple form that allows people to send their friends a quick email about
Short notes on webpage programming languages
Short notes on webpage programming languages What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language is a set of
Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University
Web Design Basics Cindy Royal, Ph.D. Associate Professor Texas State University HTML and CSS HTML stands for Hypertext Markup Language. It is the main language of the Web. While there are other languages
Tutorial: Building a Dojo Application using IBM Rational Application Developer Loan Payment Calculator
Tutorial: Building a Dojo Application using IBM Rational Application Developer Loan Payment Calculator Written by: Chris Jaun ([email protected]) Sudha Piddaparti ([email protected]) Objective In this
Web Development 1 A4 Project Description Web Architecture
Web Development 1 Introduction to A4, Architecture, Core Technologies A4 Project Description 2 Web Architecture 3 Web Service Web Service Web Service Browser Javascript Database Javascript Other Stuff:
Website Login Integration
SSO Widget Website Login Integration October 2015 Table of Contents Introduction... 3 Getting Started... 5 Creating your Login Form... 5 Full code for the example (including CSS and JavaScript):... 7 2
Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates
Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates What is a DIV tag? First, let s recall that HTML is a markup language. Markup provides structure and order to a page. For example,
To install Multifront you need to have familiarity with Internet Information Services (IIS), Microsoft.NET Framework and SQL Server 2008.
Znode Multifront - Installation Guide Version 6.2 1 System Requirements To install Multifront you need to have familiarity with Internet Information Services (IIS), Microsoft.NET Framework and SQL Server
Paging, sorting, and searching using EF Code first and MVC 3. Introduction. Installing AdventureWorksLT database. Creating the MVC 3 web application
Paging, sorting, and searching using EF Code first and MVC 3 Nadeem Afana's blog Download code! Introduction In this blog post, I am going to show you how to search, paginate and sort information retrieved
BASIC WEB DEVELOPMENT WEB DEVELOPER CAREER STARTS HERE. Jacob J. Heck HTML CSS IIS C# ASP.NET MVC MSSQL
WEB DEVELOPER CAREER STARTS HERE Discover how the internet works and start creating your own custom web applications with Microsoft s Visual Studio, Internet Information Server, and SQL Server. Jacob J.
Further web design: HTML forms
Further web design: HTML forms Practical workbook Aims and Learning Objectives The aim of this document is to introduce HTML forms. By the end of this course you will be able to: use existing forms on
SelectSurvey.NET Developers Manual
Developers Manual (Last updated: 6/24/2012) SelectSurvey.NET Developers Manual Table of Contents: SelectSurvey.NET Developers Manual... 1 Overview... 2 General Design... 2 Debugging Source Code with Visual
Secure Messaging Server Console... 2
Secure Messaging Server Console... 2 Upgrading your PEN Server Console:... 2 Server Console Installation Guide... 2 Prerequisites:... 2 General preparation:... 2 Installing the Server Console... 2 Activating
MASTERTAG DEVELOPER GUIDE
MASTERTAG DEVELOPER GUIDE TABLE OF CONTENTS 1 Introduction... 4 1.1 What is the zanox MasterTag?... 4 1.2 What is the zanox page type?... 4 2 Create a MasterTag application in the zanox Application Store...
Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY
Advanced Web Development Duration: 6 Months SCOPE OF WEB DEVELOPMENT INDUSTRY Web development jobs have taken thе hot seat when it comes to career opportunities and positions as a Web developer, as every
CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)
CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions) Step 1 - DEFINE A NEW WEB SITE - 5 POINTS 1. From the welcome window that opens select the Dreamweaver Site... or from the main
Kentico CMS, 2011 Kentico Software. Contents. Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1
Contents Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1 Time for action - Viewing the mobile sample site 2 What just happened 4 Time for Action - Mobile device redirection
How to use SSO with SharePoint 2010 (FBA) using subdomains. Moataz Esmat EXT.1386
How to use SSO with SharePoint 2010 (FBA) using subdomains Moataz Esmat EXT.1386 I. Browse the web applications using subdomains: After creating the FBA web applications you need to simulate browsing the
LAB 1: Getting started with WebMatrix. Introduction. Creating a new database. M1G505190: Introduction to Database Development
LAB 1: Getting started with WebMatrix Introduction In this module you will learn the principles of database development, with the help of Microsoft WebMatrix. WebMatrix is a software application which
Customer Tips. Configuring Color Access on the WorkCentre 7328/7335/7345 using Windows Active Directory. for the user. Overview
Xerox Multifunction Devices Customer Tips February 13, 2008 This document applies to the stated Xerox products. It is assumed that your device is equipped with the appropriate option(s) to support the
Installation and Configuration Guide
Installation and Configuration Guide BlackBerry Resource Kit for BlackBerry Enterprise Service 10 Version 10.2 Published: 2015-11-12 SWD-20151112124827386 Contents Overview: BlackBerry Enterprise Service
Xtreeme Search Engine Studio Help. 2007 Xtreeme
Xtreeme Search Engine Studio Help 2007 Xtreeme I Search Engine Studio Help Table of Contents Part I Introduction 2 Part II Requirements 4 Part III Features 7 Part IV Quick Start Tutorials 9 1 Steps to
Building A Very Simple Web Site
Sitecore CMS 6.2 Building A Very Simple Web Site Rev 100601 Sitecore CMS 6. 2 Building A Very Simple Web Site A Self-Study Guide for Developers Table of Contents Chapter 1 Introduction... 3 Chapter 2 Building
Fortigate SSL VPN 4 With PINsafe Installation Notes
Fortigate SSL VPN 4 With PINsafe Installation Notes Table of Contents Fortigate SSL VPN 4 With PINsafe Installation Notes... 1 1. Introduction... 2 2. Overview... 2 2.1. Prerequisites... 2 2.2. Baseline...
How to Make a Working Contact Form for your Website in Dreamweaver CS3
How to Make a Working Contact Form for your Website in Dreamweaver CS3 Killer Contact Forms Dreamweaver Spot With this E-Book you will be armed with everything you need to get a Contact Form up and running
Fortigate SSL VPN 3.x With PINsafe Installation Notes
Fortigate SSL VPN 3.x With PINsafe Installation Notes Table of Contents Fortigate SSL VPN 3.x With PINsafe Installation Notes... 1 1. Introduction... 2 2. Overview... 2 2.1. Prerequisites... 2 2.2. Baseline...
Outline of CSS: Cascading Style Sheets
Outline of CSS: Cascading Style Sheets nigelbuckner 2014 This is an introduction to CSS showing how styles are written, types of style sheets, CSS selectors, the cascade, grouping styles and how styles
Configuring Color Access on the WorkCentre 7120 Using Microsoft Active Directory Customer Tip
Configuring Color Access on the WorkCentre 7120 Using Microsoft Active Directory Customer Tip October 21, 2010 Overview This document describes how to limit access to color copying and printing on the
Wakanda Studio Features
Wakanda Studio Features Discover the many features in Wakanda Studio. The main features each have their own chapters and other features are documented elsewhere: Wakanda Server Administration Data Browser
MVC FRAMEWORK MOCK TEST MVC FRAMEWORK MOCK TEST II
http://www.tutorialspoint.com MVC FRAMEWORK MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to MVC Framework Framework. You can download these sample
Tool Tip. SyAM Management Utilities and Non-Admin Domain Users
SyAM Management Utilities and Non-Admin Domain Users Some features of SyAM Management Utilities, including Client Deployment and Third Party Software Deployment, require authentication credentials with
ResPAK Internet Module
ResPAK Internet Module This document provides an overview of the ResPAK Internet Module which consists of the RNI Web Services application and the optional ASP.NET Reservations web site. The RNI Application
1. Tutorial - Developing websites with Kentico 8... 3 1.1 Using the Kentico interface... 3 1.2 Managing content - The basics... 4 1.2.
Kentico 8 Tutorial Tutorial - Developing websites with Kentico 8.................................................................. 3 1 Using the Kentico interface............................................................................
Deploying an ASP.NET Web Application to a Hosting Provider using Visual Studio
Deploying an ASP.NET Web Application to a Hosting Provider using Visual Studio Tom Dykstra Summary: This series of tutorials shows you how to make an ASP.NET web application available over the internet
Novell Identity Manager
AUTHORIZED DOCUMENTATION Manual Task Service Driver Implementation Guide Novell Identity Manager 4.0.1 April 15, 2011 www.novell.com Legal Notices Novell, Inc. makes no representations or warranties with
Visual Studio.NET Database Projects
Visual Studio.NET Database Projects CHAPTER 8 IN THIS CHAPTER Creating a Database Project 294 Database References 296 Scripts 297 Queries 312 293 294 Visual Studio.NET Database Projects The database project
Oracle Business Intelligence Publisher: Create Reports and Data Models. Part 1 - Layout Editor
Oracle Business Intelligence Publisher: Create Reports and Data Models Part 1 - Layout Editor Pradeep Kumar Sharma Senior Principal Product Manager, Oracle Business Intelligence Kasturi Shekhar Director,
Script Handbook for Interactive Scientific Website Building
Script Handbook for Interactive Scientific Website Building Version: 173205 Released: March 25, 2014 Chung-Lin Shan Contents 1 Basic Structures 1 11 Preparation 2 12 form 4 13 switch for the further step
HTML Forms and CONTROLS
HTML Forms and CONTROLS Web forms also called Fill-out Forms, let a user return information to a web server for some action. The processing of incoming data is handled by a script or program written in
Sitecore Security Hardening Guide
Sitecore CMS 6.5-6.6 Sitecore Security Hardening Guide Rev: 2012-09-19 Sitecore CMS 6.5-6.6 Sitecore Security Hardening Guide Recommendations for making Sitecore more secure Table of Contents Chapter 1
Internet Technologies
QAFQAZ UNIVERSITY Computer Engineering Department Internet Technologies HTML Forms Dr. Abzetdin ADAMOV Chair of Computer Engineering Department [email protected] http://ce.qu.edu.az/~aadamov What are forms?
Basic Web Development @ Fullerton College
Basic Web Development @ Fullerton College Introduction FC Net Accounts Obtaining Web Space Accessing your web space using MS FrontPage Accessing your web space using Macromedia Dreamweaver Accessing your
Database Forms and Reports Tutorial
Database Forms and Reports Tutorial Contents Introduction... 1 What you will learn in this tutorial... 2 Lesson 1: Create First Form Using Wizard... 3 Lesson 2: Design the Second Form... 9 Add Components
This course provides students with the knowledge and skills to develop ASP.NET MVC 4 web applications.
20486B: Developing ASP.NET MVC 4 Web Applications Course Overview This course provides students with the knowledge and skills to develop ASP.NET MVC 4 web applications. Course Introduction Course Introduction
http://www.patriotsystems.com/p64library/patriot64library.aspx?regist...
1 of 9 15/12/2014 9:53 AM Menu Patriot 6.4 Library Tutorials Patriot 6.4 Library Alarm Attendance Basic Client Maintenance Advanced Client Maintenance System Reports Security Tasks and Modules GSM Module
ProSystem fx Document
ProSystem fx Document Server Upgrade from Version 3.7 to Version 3.8 1 This Document will guide you through the upgrade of Document Version 3.7 to Version 3.8. Do not attempt to upgrade from any other
SiteBuilder 2.1 Manual
SiteBuilder 2.1 Manual Copyright 2004 Yahoo! Inc. All rights reserved. Yahoo! SiteBuilder About This Guide With Yahoo! SiteBuilder, you can build a great web site without even knowing HTML. If you can
Composite.Community.Newsletter - User Guide
Composite.Community.Newsletter - User Guide Composite 2015-11-09 Composite A/S Nygårdsvej 16 DK-2100 Copenhagen Phone +45 3915 7600 www.composite.net Contents 1 INTRODUCTION... 4 1.1 Who Should Read This
Integrating LANGuardian with Active Directory
Integrating LANGuardian with Active Directory 01 February 2012 This document describes how to integrate LANGuardian with Microsoft Windows Server and Active Directory. Overview With the optional Identity
Issue Tracking Anywhere Installation Guide
TM Issue Tracking Anywhere Installation Guide The leading developer of version control and issue tracking software Table of Contents Introduction...3 Installation Guide...3 Installation Prerequisites...3
SIMS Multi-user Installation Instructions
SIMS Multi-user Installation Instructions 2011 SIMS Software TABLE OF CONTENTS REQUIREMENTS... 3 COMMON REQUIREMENTS... 3 DATABASE REQUIREMENTS... 3 SERVER REQUIREMENTS... 3 INSTALLING SIMS CLIENT... 5
How to code, test, and validate a web page
Chapter 2 How to code, test, and validate a web page Slide 1 Objectives Applied 1. Use a text editor like Aptana Studio 3 to create and edit HTML and CSS files. 2. Test an HTML document that s stored on
Ad Hoc Reporting. Usage and Customization
Usage and Customization 1 Content... 2 2 Terms and Definitions... 3 2.1 Ad Hoc Layout... 3 2.2 Ad Hoc Report... 3 2.3 Dataview... 3 2.4 Page... 3 3 Configuration... 4 3.1 Layout and Dataview location...
Installing the ASP.NET VETtrak APIs onto IIS 5 or 6
Installing the ASP.NET VETtrak APIs onto IIS 5 or 6 2 Installing the ASP.NET VETtrak APIs onto IIS 5 or 6 3... 3 IIS 5 or 6 1 Step 1- Install/Check 6 Set Up and Configure VETtrak ASP.NET API 2 Step 2 -...
Introduction to XHTML. 2010, Robert K. Moniot 1
Chapter 4 Introduction to XHTML 2010, Robert K. Moniot 1 OBJECTIVES In this chapter, you will learn: Characteristics of XHTML vs. older HTML. How to write XHTML to create web pages: Controlling document
Microsoft Expression Web Quickstart Guide
Microsoft Expression Web Quickstart Guide Expression Web Quickstart Guide (20-Minute Training) Welcome to Expression Web. When you first launch the program, you ll find a number of task panes, toolbars,
OUTLOOK WEB APP (OWA): MAIL
Office 365 Navigation Pane: Navigating in Office 365 Click the App Launcher and then choose the application (i.e. Outlook, Calendar, People, etc.). To modify your personal account settings, click the Logon
SQL Server Database Web Applications
SQL Server Database Web Applications Microsoft Visual Studio (as well as Microsoft Visual Web Developer) uses a variety of built-in tools for creating a database-driven web application. In addition to
Building an ASP.NET MVC Application Using Azure DocumentDB
Building an ASP.NET MVC Application Using Azure DocumentDB Contents Overview and Azure account requrements... 3 Create a DocumentDB database account... 4 Running the DocumentDB web application... 10 Walk-thru
CREATE A CUSTOM THEME WEBSPHERE PORTAL 8.0.0.1
CREATE A CUSTOM THEME WEBSPHERE PORTAL 8.0.0.1 WITHOUT TEMPLATE LOCALIZATION, WITHOUT WEBDAV AND IN ONE WAR FILE Simona Bracco Table of Contents Introduction...3 Extract theme dynamic and static resources...3
Displaying a Table of Database Data (VB)
Displaying a Table of Database Data (VB) The goal of this tutorial is to explain how you can display an HTML table of database data in an ASP.NET MVC application. First, you learn how to use the scaffolding
Advanced Event Viewer Manual
Advanced Event Viewer Manual Document version: 2.2944.01 Download Advanced Event Viewer at: http://www.advancedeventviewer.com Page 1 Introduction Advanced Event Viewer is an award winning application
QUANTIFY INSTALLATION GUIDE
QUANTIFY INSTALLATION GUIDE Thank you for putting your trust in Avontus! This guide reviews the process of installing Quantify software. For Quantify system requirement information, please refer to the
System Administration Training Guide. S100 Installation and Site Management
System Administration Training Guide S100 Installation and Site Management Table of contents System Requirements for Acumatica ERP 4.2... 5 Learning Objects:... 5 Web Browser... 5 Server Software... 5
enicq 5 System Administrator s Guide
Vermont Oxford Network enicq 5 Documentation enicq 5 System Administrator s Guide Release 2.0 Published November 2014 2014 Vermont Oxford Network. All Rights Reserved. enicq 5 System Administrator s Guide
Portals and Hosted Files
12 Portals and Hosted Files This chapter introduces Progress Rollbase Portals, portal pages, portal visitors setup and management, portal access control and login/authentication and recommended guidelines
USER GUIDE Appointment Manager
2011 USER GUIDE Appointment Manager 0 Suppose that you need to create an appointment manager for your business. You have a receptionist in the front office and salesmen ready to service customers. Whenever
WHITEPAPER. Skinning Guide. Let s chat. 800.9.Velaro www.velaro.com [email protected]. 2012 by Velaro
WHITEPAPER Skinning Guide Let s chat. 2012 by Velaro 800.9.Velaro www.velaro.com [email protected] INTRODUCTION Throughout the course of a chat conversation, there are a number of different web pages that
Password Reset Server Installation Guide Windows 8 / 8.1 Windows Server 2012 / R2
Password Reset Server Installation Guide Windows 8 / 8.1 Windows Server 2012 / R2 Last revised: November 12, 2014 Table of Contents Table of Contents... 2 I. Introduction... 4 A. ASP.NET Website... 4 B.
Dashboard Builder TM for Microsoft Access
Dashboard Builder TM for Microsoft Access Web Edition Application Guide Version 5.3 5.12.2014 This document is copyright 2007-2014 OpenGate Software. The information contained in this document is subject
Cloud Administration Guide for Service Cloud. August 2015 E65820-01
Cloud Administration Guide for Service Cloud August 2015 E65820-01 Table of Contents Introduction 4 How does Policy Automation work with Oracle Service Cloud? 4 For Customers 4 For Employees 4 Prerequisites
5. At the Windows Component panel, select the Internet Information Services (IIS) checkbox, and then hit Next.
Installing IIS on Windows XP 1. Start 2. Go to Control Panel 3. Go to Add or RemovePrograms 4. Go to Add/Remove Windows Components 5. At the Windows Component panel, select the Internet Information Services
Download this chapter for free at: http://tinyurl.com/aspnetmvc
Download this chapter for free at: http://tinyurl.com/aspnetmvc Professional ASP.NET MVC 2 Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright
metaengine DataConnect For SharePoint 2007 Configuration Guide
metaengine DataConnect For SharePoint 2007 Configuration Guide metaengine DataConnect for SharePoint 2007 Configuration Guide (2.4) Page 1 Contents Introduction... 5 Installation and deployment... 6 Installation...
Chapter 5 Configuring the Remote Access Web Portal
Chapter 5 Configuring the Remote Access Web Portal This chapter explains how to create multiple Web portals for different users and how to customize the appearance of a portal. It describes: Portal Layouts
Using Form Tools (admin)
EUROPEAN COMMISSION DIRECTORATE-GENERAL INFORMATICS Directorate A - Corporate IT Solutions & Services Corporate Infrastructure Solutions for Information Systems (LUX) Using Form Tools (admin) Commission
MicrosoftDynam ics GP 2015. TenantServices Installation and Adm inistration Guide
MicrosoftDynam ics GP 2015 TenantServices Installation and Adm inistration Guide Copyright Copyright 2014 Microsoft Corporation. All rights reserved. Limitation of liability This document is provided as-is.
Secret Server Installation Windows 8 / 8.1 and Windows Server 2012 / R2
Secret Server Installation Windows 8 / 8.1 and Windows Server 2012 / R2 Table of Contents Table of Contents... 1 I. Introduction... 3 A. ASP.NET Website... 3 B. SQL Server Database... 3 C. Administrative
Building A Very Simple Website
Sitecore CMS 6.5 Building A Very Simple Web Site Rev 110715 Sitecore CMS 6.5 Building A Very Simple Website A Self-Study Guide for Developers Table of Contents Chapter 1 Introduction... 3 Chapter 2 Creating
Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation
Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation Credit-By-Assessment (CBA) Competency List Written Assessment Competency List Introduction to the Internet
EBOX Digital Content Management System (CMS) User Guide For Site Owners & Administrators
EBOX Digital Content Management System (CMS) User Guide For Site Owners & Administrators Version 1.0 Last Updated on 15 th October 2011 Table of Contents Introduction... 3 File Manager... 5 Site Log...
ACE: Dreamweaver CC Exam Guide
Adobe Training Services Exam Guide ACE: Dreamweaver CC Exam Guide Adobe Training Services provides this exam guide to help prepare partners, customers, and consultants who are actively seeking accreditation
Using SQL Reporting Services with Amicus
Using SQL Reporting Services with Amicus Applies to: Amicus Attorney Premium Edition 2011 SP1 Amicus Premium Billing 2011 Contents About SQL Server Reporting Services...2 What you need 2 Setting up SQL
ASP.NET Web Pages Using the Razor Syntax
ASP.NET Web Pages Using the Razor Syntax Microsoft ASP.NET Web Pages is a free Web development technology that is designed to deliver the world's best experience for Web developers who are building websites
Outlook. Getting Started Outlook vs. Outlook Express Setting up a profile Outlook Today screen Navigation Pane
Outlook Getting Started Outlook vs. Outlook Express Setting up a profile Outlook Today screen Navigation Pane Composing & Sending Email Reading & Sending Mail Messages Set message options Organizing Items
CIMHT_006 How to Configure the Database Logger Proficy HMI/SCADA CIMPLICITY
CIMHT_006 How to Configure the Database Logger Proficy HMI/SCADA CIMPLICITY Outline The Proficy HMI/SCADA CIMPLICITY product has the ability to log point data to a Microsoft SQL Database. This data can
Microsoft Expression Web
Microsoft Expression Web Microsoft Expression Web is the new program from Microsoft to replace Frontpage as a website editing program. While the layout has changed, it still functions much the same as
SPHOL326: Designing a SharePoint 2013 Site. Hands-On Lab. Lab Manual
2013 SPHOL326: Designing a SharePoint 2013 Site Hands-On Lab Lab Manual This document is provided as-is. Information and views expressed in this document, including URL and other Internet Web site references,
Installation Guide v3.0
Installation Guide v3.0 Shepherd TimeClock 4465 W. Gandy Blvd. Suite 800 Tampa, FL 33611 Phone: 813-882-8292 Fax: 813-839-7829 http://www.shepherdtimeclock.com The information contained in this document
Quality Center LDAP Guide
Information Services Quality Assurance Quality Center LDAP Guide Version 1.0 Lightweight Directory Access Protocol( LDAP) authentication facilitates single sign on by synchronizing Quality Center (QC)
Quick Start Guide. This guide will help you get started with Kentico CMS for ASP.NET. It answers these questions:
Quick Start Guide This guide will help you get started with Kentico CMS for ASP.NET. It answers these questions:. How can I install Kentico CMS?. How can I edit content? 3. How can I insert an image or
Hands-On Lab. Web Development in Visual Studio 2010. Lab version: 1.0.0. Last updated: 12/10/2010. Page 1
Hands-On Lab Web Development in Visual Studio 2010 Lab version: 1.0.0 Last updated: 12/10/2010 Page 1 CONTENTS OVERVIEW... 3 EXERCISE 1: USING HTML CODE SNIPPETS IN VISUAL STUDIO 2010... 6 Task 1 Adding
Adobe Dreamweaver CC 14 Tutorial
Adobe Dreamweaver CC 14 Tutorial GETTING STARTED This tutorial focuses on the basic steps involved in creating an attractive, functional website. In using this tutorial you will learn to design a site
Email Basics. a. Click the arrow to the right of the Options button, and then click Bcc.
Email Basics Add CC or BCC You can display the Bcc box in all new messages that you compose. In a new message, do one of the following: 1. If Microsoft Word is your e-mail editor a. Click the arrow to
Oracle E-Business Suite - Oracle Business Intelligence Enterprise Edition 11g Integration
Specialized. Recognized. Preferred. The right partner makes all the difference. Oracle E-Business Suite - Oracle Business Intelligence Enterprise Edition 11g Integration By: Arun Chaturvedi, Business Intelligence
Magento module Documentation
Table of contents 1 General... 4 1.1 Languages... 4 2 Installation... 4 2.1 Search module... 4 2.2 Installation in Magento... 6 2.3 Installation as a local package... 7 2.4 Uninstalling the module... 8
NSi Mobile Installation Guide. Version 6.2
NSi Mobile Installation Guide Version 6.2 Revision History Version Date 1.0 October 2, 2012 2.0 September 18, 2013 2 CONTENTS TABLE OF CONTENTS PREFACE... 5 Purpose of this Document... 5 Version Compatibility...
