BlackBerry Applications using Microsoft Visual Studio and Database Handling.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

Tutorial 6 Creating a Web Form
Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
1 Chapter 12 Working With Access 2000 on the Internet.
Integrating Access with the Web and with Other Programs.
Tutorial 6 Working with Web Forms
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Web-Based Applications
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Chapter 14: Advanced Topics: DBMS, SQL, and ASP.NET
Chapter 12 Database Connectivity with ASP.NET JavaScript, Third Edition.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
1 Chapter 20 — Creating Web Projects Microsoft Visual Basic.NET, Introduction to Programming.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Some Basic Database Terminology
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Databases and LINQ Visual Basic 2010 How to Program 1.
ASP.NET Programming with C# and SQL Server First Edition
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Microsoft Visual Basic 2005: Reloaded Second Edition
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
IE 411/511: Visual Programming for Industrial Applications
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Introduction to ASP.NET T.Ahlam Algharasi. The Visual Studio IDE Start page 2.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Database Handling, Sessions, and AJAX. Post Back ASP.NET Functionality The IsPostBack method in ASP.NET is similar to the BlackBerry.refresh method –IsPostBack.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Address Book Application Introducing Database Programming.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
CSCI 3327 Visual Basic Chapter 13: Databases and LINQ UTPA – Fall 2011.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Dive Into® Visual Basic 2010 Express
ASP.NET Forms.
Visual Basic 2010 How to Program
Haritha Dasari Josue Balandrano Coronel -
ASP.NET.
Database Applications
Chapter 10 Accessing Database Files
Presentation transcript:

BlackBerry Applications using Microsoft Visual Studio and Database Handling

Extending Microsoft Visual Studio Environment In an effort to support popular development environments, RIM has introduced the BlackBerry Plug-in for Microsoft Visual Studio This plug-in enables developers who are experienced in the.NET framework to extend their applications wirelessly using BlackBerry Mobile Data System (MDS)

Overview Using the BlackBerry Plug-in for Microsoft Visual Studio, one can develop rich-client BlackBerry MDS runtime applications One can also design and test BlackBerry MDS Runtime applications using a set of predefined controls, methods, and classes –Easy to build –Drag and drop

BlackBerry Plug-in for Microsoft Visual Studio Features Some of the main features include: –Visual Graphical User Interface (GUI) –Code generation –Testing and debugging –Support for Web services –ASP.NET application support –GPS support

BlackBerry Plug-in for Microsoft Visual Studio Features (continued) Using the plug-in, one has access to multiple BlackBerry simulators One also has access to a wide variety of BlackBerry controls

BlackBerry Plug-in for Microsoft Visual Studio Features (continued) Developers can write their code in the.NET framework (i.e. C#, or VB.NET) –Event handling and application logic is written in JavaScript

BlackBerry Toolbox The toolbox allows you to Connect to a BlackBerry device Publish an application Launch sample browser

Creating Mobile Web Applications Using BlackBerry Plug-in (1) Create a new Web site using Microsoft Visual Studio Select the template “ASP.NET Web Site” and define the location of the Web site

Creating Mobile Web Applications using BlackBerry Plug-in (2) Create a simple Web page in XHTML

Creating Mobile Web Applications using BlackBerry Plug-in (3) Right click on the filename in the solution explorer Select “Browse With…” Select “BlackBerry Browser”

Creating Mobile Web Applications using BlackBerry Plug-in (4) After clicking “Browser” button, the BlackBerry MDS Development Server simulator starts –An icon appears in the desktop task bar –A “Start Debugging” window appears

Creating Mobile Web Applications using BlackBerry Plug-in (4) The BlackBerry simulator starts, launching the Web page in the simulator’s browser and displaying the results Advantage the plug-in automatically launches the MDS Development Server and BlackBerry Device Simulator

Creating Mobile Web Applications using BlackBerry Plug-in (5) You can control the status of the MDS Development Server simulator by right clicking on the icon on the task bar You can also specify advanced settings such as port information and proxy connection information using the “Settings” option

Database-Driven Mobile Web Applications Databases are a way for managing and delivering information over the Web In a typical Web application, a GUI controls the front-end of the application and the database are used to manage the back-end delivery of information

What is a database? Database: A collection of facts that are systematically organized [Ashenfelter, 1999] The most common type of databases is the relational database Relational databases allow the linking between tables –a table can “relate” to other tables

Database Components Tables –Organized database elements into columns (identifiers) and rows (values) Queries –Tools that are used to add, modify, or delete information from a database Forms –UI for database applications (accessed directly) Reports –Printable documents for group of records

Database Components Example Example from Microsoft Access Table Queries

Database Tables Database tables are organized into –Columns (fields) typically contain the identifiers (can be unique) –Rows (records) typically contain values of data items Columns Rows Field (identifier) value

Primary Keys Databases can ensure that values are unique –Attempting to enter a duplicate returns an error –One can assign a column a primary key Primary Keys: values of two or more records in a field can not be the same –used to link tables with each other

Database Relationships Databases can contain multiple tables –Tables can relate to each other –School_ID is used to link the two tables Primary key Field name Relationship

Database Envorinment Database Management Systems (DBMS) is a software that is responsible for defining, creating, and maintaining databases –Can assign roles for users to access databases Examples: –Microsoft Access, Oracle, SQL Server, etc.

.NET Environment Microsoft Windows-based operating systems provide the Open Database Connectivity (ODBC) ODBC acts as a translator between various database formats and a universal database language called Structure Query Language (SQL)

Structure Query Language (SQL) SQL is an industry standard Used to access databases It is composed on English language statements that specify a query to be executed Example: SELECT * From tableName

ASP.NET Designed by Microsoft that aim at changing the way businesses develop programs Unlike many other scripting technologies, ASP.NET is a full-fledged programming language that is supported by the.NET Framework

ASP.NET (continued) One can develop an ASP.NET application that is composed of a combination of languages –Visual Basic.NET (VB.NET), C-Sharp (C#) or JavaScript –Using ASP.NE, one has a greater selection of programming languages

Elements of ASP.NET Page New tags in the form - No form action - If you do not specify an action, the form goes back to itself (postback form) Runat: by specifying server, you instruct ASP.NET to keep track of this form on the server (without it, it acts as normal HTML)

Code Blocks Code Declaration Block – : delimits a section of the page that the program will process dynamically The method of separating HTML from ASP.NET is achieved through Server Controls

Server Controls example Sub Page_Load() Message.Text=“ASP.NET Code line” End Sub Server Controls example First HTML Line Second HTML Line This marker is known as server control. The id attribute of the server control corresponds with the line of code in the block which we specify the text to display.

asp:label Example The ID attribute is used to uniquely identify the control one can refer to it in the ASP.NET code The runat=“server” attribute tells the server to process the control and generate HTML code to be sent to the client

asp:DropDownList Example

asp: DropDownList Example (continued)

BlackBerry Database Example Objective: Select a customer name from a drop down menu and display customer information Create a Microsoft Access (mdb) database –Customers.mdb –One table: CustomerInfo Four Fields: Name, Telephone, , Country

BlackBerry Database Example (continued) Place the database file “Customers.mdb” into the “App_Data” folder of Web site Fill in some records into the database

BlackBerry Database Example (continued) In Server Explorer, double click on Tables and right click on CustomerInfo, then select “Show Table Data”

BlackBerry Database Example (continued) Edit Default.aspx to –Select the Name field –Display Name records in a drop down menu Create DropDownList control Create Label control

BlackBerry Database Example (continued) Connect to Microsoft Access database ODBC Driver SQL Database File

BlackBerry Database Example (continued) Read the data from the database into an object called DataReader –Locally stores database records in a Web page

BlackBerry Database Example (continued) For each record, send the data to be added as a ASP List Item Text Value Column Name

BlackBerry Database Example (continued) Bind the data to the DropDownList control DataBind is a built-in member that binds all data expressions to any ASP.NET server control

BlackBerry Database Example (continued) The DropDownList populates the ListItem controls directly from the database –The larger the database, the more time it would take to load the DropDownList Without the DataBind() method, the data would not be loaded –Data binding may degrade your mobile Web application, depending on the nature of the calls and the amount of data