Further Web-Database Examples

Size: px
Start display at page:

Download "Further Web-Database Examples"

Transcription

1 Further Web-Database Examples Most of the examples of Web-database before involve only displaying data using a select query. Moreover, in all cases, the user do not have any control on the selection of the query criteria. In the following, we provide some examples where the user maintains some flexibility, and we also deal with examples of insert, delete, and update to a database from the Web. Allowing the SQL Statement with a WHERE Clause In this first example, we want the SQL statement to contain a WHERE clause. In the following ASP.NET page, we use two controls: a DataGrid and a Button. Upon clicking the button, the SQL statement is executed; although the user does not have any control on defining the SQL statement. Again, we are using the Northwind database of Microsoft Access. <%@ Page Language="VB" Debug="true" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="System.Data.OleDb" %> <script runat="server"> Sub btnview_click(sender As Object, e As EventArgs) connectionstring ="Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("northwind.mdb") dim objconnection as new OLEDBConnection(connectionString) Dim querystring As String = "SELECT * FROM Customers WHERE CustomerID = 'BOLID' " Dim objcommand as new OLEDBCommand(queryString,objConnection) objconnection.open dgcustomerinfo.datasource = objcommand.executereader(commandbehavior.closeconnection) dgcustomerinfo.databind() </script> <html><head></head><body> <form runat="server"> <asp:button id="btnview" onclick="btnview_click" runat="server" Text="View Customer"></asp:Button> <asp:datagrid id="dgcustomerinfo" runat="server"></asp:datagrid> </form> </body></html> Run SelectCustomer (See results next page) 1

2 Using a Value from a TextBox: Using Numbers in the WHERE Clause In the previous example, the SQL statement is fixed the user do not have any control on the query. In this example, we want the user to enter a specific customer ID through an input box, and then display the associated information of the customer. In the ASP.NET page, we use three controls: a DataGrid, a TextBox, and a Button. All the codes are in a user-defined subroutine called btnview_click, which gets executed by the click event. Note, the EmployeeId in the Employees table is between 1 and 9, and there is an error-handling condition when the user clicks the button without entering any value. 2

3 Page Language="VB" Debug="true" %> import Namespace="System.Data" %> import Namespace="System.Data.OleDb" %> <script runat="server"> Sub btnview_click(sender As Object, e As EventArgs) connectionstring ="Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("northwind.mdb") dim objconnection as new OLEDBConnection(connectionString) If CustomerID.text <> "" Dim querystring As String = "SELECT LastName, FirstName, Title, Address, City, PostalCode, HomePhone FROM Employees WHERE EmployeeID =" & CustomerID.text dim objcommand as new OLEDBCommand(queryString,objConnection) objconnection.open dgcustomerinfo.datasource = objcommand.executereader(commandbehavior.closeconnection) dgcustomerinfo.databind() end if </script> <html> <head> </head> <body> <form runat="server"> CustomerID: <asp:textbox id="customerid" runat="server" Columns="5"></asp:TextBox> <asp:button id="btnview" onclick="btnview_click" runat="server" Text="View Customer"></asp:Button> <asp:datagrid id="dgcustomerinfo" runat="server"></asp:datagrid> <!-- Insert content here --> </form> </body> </html></html> Run SelectEmployee (Enter a number between 1 9 and see the result) 3

4 Reading Text from an InputBox: Using String in the WHERE Clause Use of string in the WHERE clause of SQL statement needs to be handled carefully. Web Control TextBoxes by default accept input as variable data type. As such it depends on the what is typed. Thus typing text does not automatically used as text in the SQL string. For example, we want a SQL statement like: "SELECT * FROM Customers WHERE CustomerID = BOLID. If we read the value for the WHERE clause from a textbox, it will read as BOLID, not BOLID. Thus we need to place the BOLID within a quote in the SQL statement to work. The example below illustrates how to read and convert the value into string. In the following, we use a textbox to get input from the user that is used in the WHERE clause and a Button to execute a subroutine. The SQL string is displayed on a label control and the data is displayed using a datagrid. 4

5 Page Language="VB" Debug="true" %> import Namespace="System.Data" %> import Namespace="System.Data.OleDb" %> <script runat="server"> Sub btnview_click(sender As Object, e As EventArgs) connectionstring ="Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("northwind.mdb") dim objconnection as new OLEDBConnection(connectionString) dim customernum as string customernum = CustomerInput.text If customernum <> "" Dim querystring As String = "SELECT * FROM Customers WHERE CustomerID = '" & CustomerNum & "'" label1.visible = true label1.text = querystring dim objcommand as new OLEDBCommand(queryString,objConnection) objconnection.open dgcustomerinfo.datasource = objcommand.executereader(commandbehavior.closeconnection) dgcustomerinfo.databind() end if </script> <html><head></head><body> <form runat="server"> CustomerID: <asp:textbox id="customerinput" runat="server" Columns="5"></asp:TextBox> <asp:button id="btnview" onclick="btnview_click" runat="server" Text="View Customer"></asp:Button> <asp:label id="label1" runat="server" ForeColor="Red" Visible="False"></asp:Label> <asp:datagrid id="dgcustomerinfo" runat="server" BorderColor="Blue" CellPadding="1" ForeColor="DarkViolet" HorizontalAlign="Left"></asp:DataGrid> </form> </body></html> Run SelectCustomerString.aspx (Try 11 and ANTON, BOLID, or FRANK. See results) 5

6 Counting Number of Records Returned Number of records returned by a data reader or data adapter can be counted, as shown by the following modified code from the above example. <%@ Page Language="VB" Debug="true" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="System.Data.OleDb" %> <script runat="server"> Sub btnview_click(sender As Object, e As EventArgs) connectionstring ="Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("northwind.mdb") dim objconnection as new OLEDBConnection(connectionString) dim customernum as string customernum = CustomerInput.text 'Try Customer ID = ANTON, BOLID, or FRANK If customernum <> "" Dim querystring As String = "SELECT * FROM Customers WHERE CustomerID = '" & CustomerNum & "'" dim objcommand as new OLEDBCommand(queryString,objConnection) objconnection.open() dgcustomerinfo.datasource = objcommand.executereader(commandbehavior.closeconnection) dgcustomerinfo.databind() Check the number of records returned dim reccount as integer reccount = dgcustomerinfo.items.count if (reccount = 0) then label1.text = "No Records found from the database" else label1.text = "Number of Records: " & reccount end if end if </script> <html> <head></head><body> <form runat="server"> CustomerID: <asp:textbox id="customerinput" runat="server" Columns="5"></asp:TextBox> <asp:button id="btnview" onclick="btnview_click" runat="server" Text="View Customer"></asp:Button> <asp:label id="label1" runat="server">label</asp:label> <asp:datagrid id="dgcustomerinfo" runat="server"></asp:datagrid> <!-- Insert content here --> </form> </body> Run SelectCustomerTwo (Try typing 1, 2, or 3 as well as ANTON, BOLID, or FRANK) 6

7 Binding Database Data to a DropDownList A DropDownList contains multiple list items, one of which can be selected. The items are typically populated in the design time, but populating list items from a database data is common also. Each list item has two properties: text and value. The text property specifies the text displayed to the user and value is hidden but used in manipulations. For example, while a customername is a text, customerid is the value. In order to bind database data to a DropDownList, we need to perform the following: Set the DataSource property of the DropDownList control to the DataSet or DataReader returned by a routine that retrieves appropriate data. Call DropDownList s DataBind() method. Set DataTextField property of DropDownList control to the DataSource field to be displayed. Set DataValueField property of DropDownList control to the DataSource field to be used for future manipulation.. Because our goal is to display information of a selected item from the drop-down list, we need to have the Web form post back when the user selects an item form the list. One option is to use a button that users can click once a list item is selected. Another way is to set the DropDownList s AutoPostBack property to True. This will cause the Web form to submit once a new item is selected. Binding database data to a DropDownList control is fine, but the data needs to be used. Typically, when an item in a DropDownList is selected, a code is executed. To execute the code, we use an event handler, and the most obvious one is the SelectedIndexChanged event handler. Note how the selected item of the DropDownList is accessed in the SQL statement: CustomerList.selectedItem.value 7

8 Page Language="VB" Debug="true" %> Register TagPrefix="wmx" Namespace="Microsoft.Saturn.Framework.Web.UI" Assembly="Microsoft.Saturn.Framework, Version= , Culture=neutral, PublicKeyToken=6f763c " %> import Namespace="System.Data" %> import Namespace="System.Data.OleDb" %> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) If not page.ispostback then connectionstring ="Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("northwind.mdb") dim objconnection as new OLEDBConnection(connectionString) objconnection.open Dim querystring As String = "SELECT * FROM Customers" dim objcommand as new OLEDBCommand(queryString,objConnection) CustomerList.DataSource = objcommand.executereader(commandbehavior.closeconnection) CustomerList.Databind() end if Sub customerlist_selectedindexchanged(sender As Object, e As EventArgs) Response.Write("<br>Text selected: " & customerlist.selecteditem.text) Response.Write("<br>Value selected: " & customerlist.selecteditem.value) connectionstring ="Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("northwind.mdb") dim objconnection as new OLEDBConnection(connectionString) objconnection.open Dim CustomerQuery As String = "SELECT * FROM Customers WHERE CustomerID = '" & CustomerList.selectedItem.value & "'" label1.visible = true label1.text = customerquery dim newcommand as new OLEDBCommand(customerQuery,objConnection) dgcustomerinfo.datasource = newcommand.executereader(commandbehavior.closeconnection) dgcustomerinfo.databind() </script> <html><head></head><body> <form runat="server"> Contact Name: <asp:dropdownlist id="customerlist" runat="server" OnSelectedIndexChanged="customerList_SelectedIndexChanged" DataValueField="CustomerID" DataTextField="ContactName" AutoPostBack="True"></asp:DropDownList> <asp:label id="label1" runat="server" ForeColor="#C00000" visible="false">label</asp:label> <asp:datagrid id="dgcustomerinfo" runat="server" BorderColor="DarkRed" CellPadding="1" HorizontalAlign="Left" ForeColor="Blue" BorderStyle="Inset"></asp:DataGrid> </form> </body></html> 8

9 Run SelectCustomerDropDown Screen shot before selecting an item Screen shot after selecting an item 9

10 Paging through DataGrid s Data When a DataSource returned from a database query returns a large rows of data to a DataGrid control, it is not advisable to display all the data at once. Rather a subset of data can be presented to the user, and then move forward or backward with the next or previous subset of data. This can be accomplished by setting several properties of the DataGrid control and some other changes as described below. Paging Mode: The DataGrid can be configured to page in two different modes: hyperlinked next/previous mode or numbering mode. This property can be set in design time through the property window. Other properties to be set: AllowPaging property = True. PageSize property = a reasonable number suitable for the user (say 10) DataSet as DataSource: In the previous examples, we used a DataReader to get data from the database. For data to be paged, we must return a DataSet, not a DataReader. Note, a DataSet is returned through a DataAdapter object rather than a DataReader object. So, there are some changes in the code and Fill() method is used to fill the DataSet. CurrentPageIndex: In order to page through various pages of data, the CurrentPageIndex property of the DataGrid control must be changed. The index for the first page is 0, that for the second page is 1, and so on. Except fort he first index, the others are not set, and thus paging may not be accomplished automatically. In order to do that, we need to add a DataGrid event handler to page through and bind data in new pages. The event handler must be of the form: Sub EvenrtHandlerName (sender As Object, e As DataGridPageChangedEventArgs) The second input parameter to the event handler is of type DataGridPageChangedEventArgs, which has a property called NewPageIndex. It is used to access the new page and then assigned as the DataSource to the DataGrid control. The data is again rebinded. OnPageIndexChanged event: The final step is to assign the EventHandlerName to the OnPageIndexChanged event of the DataGrid control, so that the event is fired for a change of the event (clicking on the navigation button). 10

11 Page Language="VB" Debug="true" %> Register TagPrefix="wmx" Namespace="Microsoft.Saturn.Framework.Web.UI" Assembly="Microsoft.Saturn.Framework, Version= , Culture=neutral, PublicKeyToken=6f763c " %> import Namespace="System.Data" %> import Namespace="System.Data.OleDb" %> <script runat="server"> Function GetCustomers() As System.Data.DataSet connectionstring ="Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("northwind.mdb") Dim objconnection as new OLEDBConnection(connectionString) objconnection.open Dim CustomerQuery As String = "SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, City, PostalCode FROM Customers" label1.text = "SQL = " & CustomerQuery Dim newcommand as new OLEDBCommand(customerQuery,objConnection) Dim objadapter as new OledbDataAdapter(newCommand) Dim objdataset as new DataSet() objadapter.fill(objdataset) Return objdataset End Function Sub Page_Load(sender As Object, e As EventArgs) If not page.ispostback then dgcustomers.datasource = GetCustomers() dgcustomers.databind() end if Sub dgcustomers_page(sender As Object, e As DataGridPageChangedEventArgs) ' Assign the CurrentPageIndex property to the new page index value dgcustomers.currentpageindex = e.newpageindex ' Rebind the data to the DataGrid dgcustomers.datasource = GetCustomers() dgcustomers.databind() </script> <html><head></head><body> <form runat="server"> <asp:label id="label1" runat="server" ForeColor="Red">Label</asp:Label> <asp:datagrid id="dgcustomers" runat="server" ForeColor="Blue" AllowPaging="True" BorderColor="DarkRed" CellPadding="1" HorizontalAlign="Left" BorderStyle="Inset" PageSize="6" OnPageIndexChanged="dgCustomers_Page" CellSpacing="1"> <PagerStyle nextpagetext="next&gt;" prevpagetext="&lt;prev"></pagerstyle> </asp:datagrid> </form></body></html> 11

12 Run CustomerPaging Limited to six rows and Next/Prev buttons A different page accessed through Next/Prev buttons 12

13 Reading Rows and Items from a DataSet As it was mentioned, there are two ways data can be retrieved from a database: DataReader and DataSet. The DataReader is a read-only forward-only recordset and as such data can not be updated. On the other hand, DataSet is most flexible, and can be used to update the database. A DataSet contains a Tables collection, i.e., more than one tables can be held in a DataSet. Each Table in the Tables collection is identified through an index such as Tables(0), Tables(1), Tables(2), and so on. When retrieving Tables through an SQL statement, the name of the Table can be given specifically or the name of the Table from the database is automatically taken if not given specifically in the DataSet. To access a Table, we can use the Table index or the Table name, such as: DataSetName.Tables(0) or DataSetName.Tables( TableName ) Each Table in a DataSet has a Rows collection. Rows are accessed through an index such as Rows(0), Rows(1), Rows(2), and so on. To access a Row in the code, we can use the index such as: DataSetName.Tables(0).Rows(2) or DataSetName.Tables( TableName ).Rows(2) Each Row consists of an Items collection. Items are accessed through an index such as Item(0), Item(1), Item(2), and so on. An item can also be accessed through the field name of the Table. Thus to access a field value of a Row: DataSetName.Tables(0).Rows(2).Item(2) or DataSetName.Tables( TableName ).Rows(2).Item( FieldName ) The following code section opens two tables from the Microsoft Access Northwind database to a DataSet named Data using a DataAdapter. It then displays the two tables in two DataGrid controls. It also displays two fields from two tables. 13

14 Page Language="VB" %> import Namespace="System.Data" %> import Namespace="System.Data.Oledb" %> <script runat="server"> Sub Page_Load(Sender As Object, E As EventArgs) connectionstring ="Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("northwind.mdb") Dim dbconnection As New OleDbConnection(connectionString) Dim querystring As String = "SELECT * FROM Categories" Dim dbcommand As New OleDbCommand dbcommand.commandtext = querystring dbcommand.connection = dbconnection Dim dataadapter As New OleDbDataAdapter dataadapter.selectcommand = dbcommand Dim data As DataSet = New System.Data.DataSet dataadapter.fill(data, "Categories") dataadapter.selectcommand.commandtext = "SELECT * FROM Shippers" dataadapter.fill(data, "Shippers") DataGrid1.DataSource = data.tables("categories") DataGrid1.DataBind() DataGrid2.DataSource = data.tables("shippers") DataGrid2.DataBind() Label1.Text = data.tables("categories").rows(1).item("categoryname") Label2.Text = data.tables(1).rows(2).item(2) </script> <html> <head></head> <body> <form runat="server"> <font color="blue"><strong>categories:</strong></font> <asp:datagrid id="datagrid1" runat="server" ForeColor="#FF8000" OnSelectedIndexChanged="DataGrid1_SelectedIndexChanged" BorderColor="Blue"></asp:DataGrid> <strong>category Name in Row (2):</strong> <asp:label id="label1" runat="server" ForeColor="Magenta">Label</asp:Label> <font color="blue"><strong>shippers:</strong></font> <asp:datagrid id="datagrid2" runat="server" ForeColor="#FF8000" BorderColor="Blue"></asp:DataGrid> <strong>shipper Phone in Row(3):</strong> <asp:label id="label2" runat="server" ForeColor="Magenta">Label</asp:Label> </form> </body> </html> 14

15 Run TableAndRow 15

16 Adding Data to a Database As it was mentioned adding and updating data to a database requires a DataSet. To add a row into a dataset, first a new row is defined in the DataSet table through a NewRow() method, then appropriate values are assigned to fields or Items to the new row. Finally, the new row is added through the Add method. The code section below shows this steps. <%@ Page Language="VB" Debug="true" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="System.Data.OleDb" %> <script runat="server"> Sub Page_Load(Sender As Object, E As EventArgs) Dim querystring As String Dim data As New DataSet Dim dataadapter As OleDbDataAdapter connectionstring ="Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("northwind.mdb") Dim dbconnection As New OleDbConnection(connectionString) querystring = "SELECT FirstName, LastName FROM Employees" dataadapter = New OleDbDataAdapter(queryString, dbconnection) dataadapter.fill(data, "Employees") DataGrid1.DataSource = data.tables("employees") DataGrid1.DataBind() Dim table As DataTable Dim newrow As DataRow table = data.tables("employees") newrow = table.newrow() newrow.item("firstname") = "Norman" newrow.item("lastname") = "Blake" table.rows.add(newrow) ' bind the data grid to the new data DataGrid2.DataSource = table DataGrid2.DataBind() </script> <html><head></head><body> <table style="width: 466px; HEIGHT: 162px" width="466"> <tbody> <tr><td> <font color="blue"><strong>original Data</strong></font></td> <td> <font color="blue"><strong>data with new Row</strong></font></td> </tr> <tr> <td valign="top"> <asp:datagrid id="datagrid1" runat="server" ForeColor="#FF8000" BorderColor="Blue"></asp:DataGrid> </td> <td valign="top"> <asp:datagrid id="datagrid2" runat="server" ForeColor="#FF8000" BorderColor="Blue"></asp:DataGrid> </td> </tr> </tbody> </table> </body></html> 16

17 Run AddingData Note: This example only adds data in the dataset in the memory, not in the database. One needs to send an Insert sql command to add a record to the database. 17

Reading From Databases

Reading From Databases 57076_Ch 8 SAN.qxd 01/12/2003 6:43 PM Page 249 8 Reading From Databases So far in this book you've learnt a lot about programming, and seen those techniques in use in a variety of Web pages. Now it's time

More information

Reports, Tables, and Graphs:.NET Reporting in Autodesk MapGuide Toby Jutras

Reports, Tables, and Graphs:.NET Reporting in Autodesk MapGuide Toby Jutras December 2-5, 2003 MGM Grand Hotel Las Vegas Reports, Tables, and Graphs:.NET Reporting in Autodesk MapGuide Toby Jutras GI42-2 In this session, we will explore Microsoft's ASP.NET technology for reporting

More information

CHAPTER 1 INTRODUCING ADO.NET

CHAPTER 1 INTRODUCING ADO.NET CHAPTER 1 INTRODUCING ADO.NET I. Overview As more and more companies are coming up with n-tier client/server and Web-based database solutions, Microsoft with its Universal Data Access (UDA) model, offers

More information

Programming with ADO.NET

Programming with ADO.NET Programming with ADO.NET The Data Cycle The overall task of working with data in an application can be broken down into several top-level processes. For example, before you display data to a user on a

More information

CST272 Getting Started Page 1

CST272 Getting Started Page 1 CST272 Getting Started Page 1 1 2 3 5 6 8 10 Introduction to ASP.NET and C# CST272 ASP.NET ASP.NET Server Controls (Page 1) Server controls can be Buttons, TextBoxes, etc. In the source code, ASP.NET controls

More information

Web based of electronic document management systems

Web based of electronic document management systems Invention Journal of Research Technology in Engineering & Management (IJRTEM) ISSN: 2455-3689 www.ijrtem.com ǁ Volume 1 ǁ Issue 7 ǁ Web based of electronic document management systems Viliam Malcher 1,

More information

INTRODUCTION & IMPLEMENTATION OF ASP.NET

INTRODUCTION & IMPLEMENTATION OF ASP.NET INTRODUCTION & IMPLEMENTATION OF ASP.NET CONTENTS I. Introduction to ASP.NET 1. Difference between ASP and ASP.NET 2. Introduction to IIS 3. What is Web Application? Why is it used? II. Implementation

More information

COOKBOOK Creating an Order Form

COOKBOOK Creating an Order Form 2010 COOKBOOK Creating an Order Form Table of Contents Understanding the Project... 2 Table Relationships... 2 Objective... 4 Sample... 4 Implementation... 4 Generate Northwind Sample... 5 Order Form Page...

More information

CST272 Getting Started Page 1

CST272 Getting Started Page 1 CST272 Getting Started Page 1 1 2 3 4 5 6 8 Introduction to ASP.NET, Visual Studio and C# CST272 ASP.NET Static and Dynamic Web Applications Static Web pages Created with HTML controls renders exactly

More information

ASP.NET Pearson Education, Inc. All rights reserved.

ASP.NET Pearson Education, Inc. All rights reserved. 1 ASP.NET 2 Rule One: Our client is always right. Rule Two: If you think our client is wrong, see Rule One. Anonymous 3 25.1 Introduction ASP.NET 2.0 and Web Forms and Controls Web application development

More information

Web Programming Paper Solution (Chapter wise)

Web Programming Paper Solution (Chapter wise) .Net.net code to insert new record in database using C#. Database name: College.accdb Table name: students Table structure: std_id number std_name text std_age number Table content (before insert): 2 abcd

More information

CST141 ASP.NET Database Page 1

CST141 ASP.NET Database Page 1 CST141 ASP.NET Database Page 1 1 2 3 4 5 8 ASP.NET Database CST242 Database A database (the data) A computer filing system I.e. Payroll, personnel, order entry, billing, accounts receivable and payable,

More information

BIS4430 Web-based Information Systems Management. Unit 11 [BIS4430, LU11 version1.0, E.M, 09/07)]

BIS4430 Web-based Information Systems Management. Unit 11 [BIS4430, LU11 version1.0, E.M, 09/07)] SCOPE Context BIS4430 Web-based Information Systems Management Unit 11 [BIS4430, LU11 version1.0, E.M, 09/07)] A fully dynamic e-commerce site must be able to send and retrieve data from the user and some

More information

VS2010 C# Programming - DB intro 1

VS2010 C# Programming - DB intro 1 VS2010 C# Programming - DB intro 1 Topics Database Relational - linked tables SQL ADO.NET objects Referencing Data Using the Wizard Displaying data 1 VS2010 C# Programming - DB intro 2 Database A collection

More information

Working with Data in ASP.NET 2.0 :: Using Parameterized Queries with the SqlDataSource Introduction

Working with Data in ASP.NET 2.0 :: Using Parameterized Queries with the SqlDataSource Introduction 1 of 17 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

8 Library loan system

8 Library loan system Chapter 8: Library loan system 153 8 Library loan system In previous programs in this book, we have taken a traditional procedural approach in transferring data directly between web pages and the ASP database.

More information

Lab 9: Creating Personalizable applications using Web Parts

Lab 9: Creating Personalizable applications using Web Parts Lab 9: Creating Personalizable applications using Web Parts Estimated time to complete this lab: 45 minutes Web Parts is a framework for building highly customizable portalstyle pages. You compose Web

More information

You can use Dreamweaver to build master and detail Web pages, which

You can use Dreamweaver to build master and detail Web pages, which Chapter 1: Building Master and Detail Pages In This Chapter Developing master and detail pages at the same time Building your master and detail pages separately Putting together master and detail pages

More information

Arena Development 101 / 102 Courses # A280, A281 IMPORTANT: You must have your development environment set up for this class

Arena Development 101 / 102 Courses # A280, A281 IMPORTANT: You must have your development environment set up for this class Arena Development 101 / 102 Courses # A280, A281 IMPORTANT: You must have your development environment set up for this class Presented by: Jeff Maddox Director of Platform Integrations, Ministry Brands

More information

Simple sets of data can be expressed in a simple table, much like a

Simple sets of data can be expressed in a simple table, much like a Chapter 1: Building Master and Detail Pages In This Chapter Developing master and detail pages at the same time Building your master and detail pages separately Putting together master and detail pages

More information

Building Datacentric Applications

Building Datacentric Applications Chapter 4 Building Datacentric Applications In this chapter: Application: Table Adapters and the BindingSource Class Application: Smart Tags for Data. Application: Parameterized Queries Application: Object

More information

Displaying Views of Data (Part II)

Displaying Views of Data (Part II) Displaying Views of Data (Part II) In Chapter 6, we discussed how we can work with the GridView control in ASP. NET. This is the last part in the series of two chapters on how we can use the view controls

More information

Working with Data in ASP.NET 2.0 :: Paging Report Data in a DataList or Repeater Control Introduction

Working with Data in ASP.NET 2.0 :: Paging Report Data in a DataList or Repeater Control Introduction 1 of 16 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

ASP.NET - MANAGING STATE

ASP.NET - MANAGING STATE ASP.NET - MANAGING STATE http://www.tutorialspoint.com/asp.net/asp.net_managing_state.htm Copyright tutorialspoint.com Hyper Text Transfer Protocol HTTP is a stateless protocol. When the client disconnects

More information

BETA CHAPTER. Creating Custom Modules

BETA CHAPTER. Creating Custom Modules 7 Creating Custom Modules This is the second part of the chapter from "Building Websites with VB.NET and DotNetNuke 3.0". (This version of the chapter covers version 2.12. The finished book will cover

More information

ADO.NET for Beginners

ADO.NET for Beginners Accessing Database ADO.NET for Beginners Accessing database using ADO.NET in C# or VB.NET This tutorial will teach you Database concepts and ADO.NET in a very simple and easy-to-understand manner with

More information

Program Contents: DOTNET TRAINING IN CHENNAI

Program Contents: DOTNET TRAINING IN CHENNAI DOTNET TRAINING IN CHENNAI NET Framework - In today s world of enterprise application development either desktop or Web, one of leaders and visionary is Microsoft.NET technology. The.NET platform also

More information

3 Customer records. Chapter 3: Customer records 57

3 Customer records. Chapter 3: Customer records 57 Chapter 3: Customer records 57 3 Customer records In this program we will investigate how records in a database can be displayed on a web page, and how new records can be entered on a web page and uploaded

More information

Submit the MS Access Database file that contains the forms created in this lab.

Submit the MS Access Database file that contains the forms created in this lab. A. Lab # : BSBA BIS245A-5B B. Lab 5B of 7: Completing Forms C. Lab Overview--Scenario/Summary TCO(s): 5. Given a physical database containing tables and relationships, create forms which demonstrate effective

More information

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p.

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p. Preface p. xix ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p. 6 Personalization p. 6 Master Pages p. 6 Navigation p.

More information

III BCA 'A' and 'B' [ ] Semester VI Core: WEB TECHNOLOGY - 606B Multiple Choice Questions.

III BCA 'A' and 'B' [ ] Semester VI Core: WEB TECHNOLOGY - 606B Multiple Choice Questions. Dr.G.R.Damodaran College of Science (Autonomous, affiliated to the Bharathiar University, recognized by the UGC)Re-accredited at the 'A' Grade Level by the NAAC and ISO 9001:2008 Certified CRISL rated

More information

Chapter 3. Windows Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 3. Windows Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 3 Windows Database Applications McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Objectives - 1 Retrieve and display data from a SQL Server database on Windows forms Use the

More information

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src="images/train.

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src=images/train. Chapter 6: Mountain Bike Club 113 6 Mountain Bike Club In the previous chapter we created a web site with images programmed into HTML page code using commands such as: In

More information

XML with.net: Introduction

XML with.net: Introduction XML with.net: Introduction Extensible Markup Language (XML) strores and transports data. If we use a XML file to store the data then we can do operations with the XML file directly without using the database.

More information

Validation Server Controls

Validation Server Controls Validation Server Controls Definition: Validation is a set of rules that you apply to the data you collect. A Validation server control is used to validate the data of an input control. If the data does

More information

B. V. Patel Institute of Business Management, Computer and Information Technology

B. V. Patel Institute of Business Management, Computer and Information Technology B.C.A (5 th Semester) 030010501 Basics of Web Development using ASP.NET Question Bank Unit : 1 ASP.NET Answer the following questions in short:- 1. What is ASP.NET? 2. Which events are fired when page

More information

Index. AutoNumber data types, 154 6, 168 and Number data type, 181 AutoPostBack Property, 505, 511, 513 5, 527 8, AVG, 242, 247 8

Index. AutoNumber data types, 154 6, 168 and Number data type, 181 AutoPostBack Property, 505, 511, 513 5, 527 8, AVG, 242, 247 8 Index A Access queries, 10, 146, 191, 212, 220, 426 7 query design view, 403 types, 190, 236 table design, 141 tables, 10, 133, 136, 150, 426 Access Data Object, 136 7, 148 Access database, 136 8 table,

More information

Assignment Grading Rubric

Assignment Grading Rubric Final Project Outcomes addressed in this activity: Overview and Directions: 1. Create a new Empty Database called Final 2. CREATE TABLES The create table statements should work without errors, have the

More information

Module 2: Using Master Pages

Module 2: Using Master Pages Module 2: Using Master Pages Contents Overview 1 Lesson: Advantages of Using Master Pages 2 Lesson: Writing Master and Content Pages 9 Lesson: Writing Nested Master Pages 21 Lesson: Programming Master

More information

ITdumpsFree. Get free valid exam dumps and pass your exam test with confidence

ITdumpsFree.  Get free valid exam dumps and pass your exam test with confidence ITdumpsFree http://www.itdumpsfree.com Get free valid exam dumps and pass your exam test with confidence Exam : 070-305 Title : Developing and Implementing Web Applications with Microsoft Visual Basic.NET

More information

CST272 GridView Page 1

CST272 GridView Page 1 CST272 GridView Page 1 1 2 3 5 6 7 GridView CST272 ASP.NET The ASP:GridView Web Control (Page 1) Automatically binds to and displays data from a data source control in tabular view (rows and columns) To

More information

ASP.NET Using C# Student Guide Revision 2.2. Object Innovations Course 416

ASP.NET Using C# Student Guide Revision 2.2. Object Innovations Course 416 ASP.NET Using C# Student Guide Revision 2.2 Object Innovations Course 416 ASP.NET Using C# Rev. 2.2 Student Guide Information in this document is subject to change without notice. Companies, names and

More information

Working with Data in ASP.NET 2.0 :: Sorting Data in a DataList or Repeater Control Introduction

Working with Data in ASP.NET 2.0 :: Sorting Data in a DataList or Repeater Control Introduction 1 of 26 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

Information Systems Engineering. Presenting data in web pages Using ASP.NET

Information Systems Engineering. Presenting data in web pages Using ASP.NET Information Systems Engineering Presenting data in web pages Using ASP.NET 1 HTML and web pages URL Request HTTP GET Response Rendering.html files Browser ..

More information

Visual Studio.NET Add-in. Includes Bonus ADO.NET IN A NUTSHELL. A Desktop Quick Reference. Bill Hamilton & Matthew MacDonald

Visual Studio.NET Add-in. Includes Bonus ADO.NET IN A NUTSHELL. A Desktop Quick Reference. Bill Hamilton & Matthew MacDonald Includes Bonus Visual Studio.NET Add-in ADO.NET IN A NUTSHELL A Desktop Quick Reference Bill Hamilton & Matthew MacDonald ADO.NET IN A NUTSHELL ADO.NET IN A NUTSHELL Bill Hamilton and Matthew MacDonald

More information

Chapter 4. Windows Database Using Related Tables The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 4. Windows Database Using Related Tables The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 4 Windows Database Using Related Tables McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Objectives - 1 Explain the types of table relationships Display master/detail records

More information

Insert Data into Table using C# Code

Insert Data into Table using C# Code Insert Data into Table using C# Code CREATE TABLE [registration]( [roll_no] [int] NULL, [name] [varchar](50), [class] [varchar](50), [sex] [varchar](50), [email] [varchar](50))

More information

Unit-2 ASP.NET Server Controls

Unit-2 ASP.NET Server Controls INTRODUCTION TO HTML CONTROLS, SERVER CONTROLS AND VALIDATION CONTROLS There are three types of the controls: HTML Controls Web Server Controls Validation Controls HTML Controls HTML Forms are required

More information

QUETZALANDIA.COM. 5. Data Manipulation Language

QUETZALANDIA.COM. 5. Data Manipulation Language 5. Data Manipulation Language 5.1 OBJECTIVES This chapter involves SQL Data Manipulation Language Commands. At the end of this chapter, students should: Be familiar with the syntax of SQL DML commands

More information

Data Binding. Basic Data Binding

Data Binding. Basic Data Binding Data Binding Instructor: Dr. Wei Ding Fall 2009 1 Basic Data Binding Associate a data source with a control Have that control automatically display your data Key characteristic of data binding is that

More information

Getting Started with the Bullhorn SOAP API and C#/.NET

Getting Started with the Bullhorn SOAP API and C#/.NET Getting Started with the Bullhorn SOAP API and C#/.NET Introduction This tutorial is for developers who develop custom applications that use the Bullhorn SOAP API and C#. You develop a sample application

More information

Working with Data in ASP.NET 2.0 :: Master/Detail Filtering Across Two Pages Introduction

Working with Data in ASP.NET 2.0 :: Master/Detail Filtering Across Two Pages Introduction 1 of 13 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

Instructor: Craig Duckett. Lecture 14: Tuesday, May 15 th, 2018 Stored Procedures (SQL Server) and MySQL

Instructor: Craig Duckett. Lecture 14: Tuesday, May 15 th, 2018 Stored Procedures (SQL Server) and MySQL Instructor: Craig Duckett Lecture 14: Tuesday, May 15 th, 2018 Stored Procedures (SQL Server) and MySQL 1 Assignment 3 is due LECTURE 20, Tuesday, June 5 th Database Presentation is due LECTURE 20, Tuesday,

More information

Dynamic Web Programming BUILDING WEB APPLICATIONS USING ASP.NET, AJAX AND JAVASCRIPT

Dynamic Web Programming BUILDING WEB APPLICATIONS USING ASP.NET, AJAX AND JAVASCRIPT Dynamic Web Programming BUILDING WEB APPLICATIONS USING ASP.NET, AJAX AND JAVASCRIPT AGENDA 5. ASP.NET Server Controls 5.1 Page Control Hierarchy 5.2 Types of Server Controls 5.3 Web Controls 5.4 List

More information

Information Systems Engineering

Information Systems Engineering Connection to a DB Information Systems Engineering Data from Databases Using ASP.NET Several ASP.NET controls allow the presentation of data from a datasource The datasource can be a database The association

More information

Working with Data in ASP.NET 2.0 :: Programmatically Setting the ObjectDataSource's Parameter Values

Working with Data in ASP.NET 2.0 :: Programmatically Setting the ObjectDataSource's Parameter Values 1 of 8 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

ACTIVE SERVER PAGES.NET 344 Module 5 Programming web applications with ASP.NET Writing HTML pages and forms Maintaining consistency with master pages Designing pages with ASP.NET controls Styling sites

More information

2.1 Read and Write XML Data. 2.2 Distinguish Between DataSet and DataReader Objects. 2.3 Call a Service from a Web Page

2.1 Read and Write XML Data. 2.2 Distinguish Between DataSet and DataReader Objects. 2.3 Call a Service from a Web Page LESSON 2 2.1 Read and Write XML Data 2.2 Distinguish Between DataSet and DataReader Objects 2.3 Call a Service from a Web Page 2.4 Understand DataSource Controls 2.5 Bind Controls to Data by Using Data-Binding

More information

Final Web Application Create a new web site under c:\temp\webapps\ and name it Final. Create the following additional folders:

Final Web Application Create a new web site under c:\temp\webapps\ and name it Final. Create the following additional folders: Final Web Application Create a new web site under c:\temp\webapps\ and name it Final. Create the following additional folders: StyleSheets App_Themes (ASP.NET folder, name the Theme1 folder Basic) App_Data

More information

Using SQL Server 2OOO and ADO/ASP.NET in Database Instruction

Using SQL Server 2OOO and ADO/ASP.NET in Database Instruction School of Science and Engineering Alakhawayn University in Ifrane CSC3326 Lab Manual Using SQL Server 2OOO and ADO/ASP.NET in Database Instruction HTTP ASP. NET ADO.NET DB Client Web Server SQL Server

More information

Access VBA programming

Access VBA programming Access VBA programming TUTOR: Andy Sekiewicz MOODLE: http://moodle.city.ac.uk/ WEB: www.staff.city.ac.uk/~csathfc/acvba The DoCmd object The DoCmd object is used to code a lot of the bread and butter operations

More information

5. Explain Label control in detail with Example.

5. Explain Label control in detail with Example. 5. Explain Label control in detail with Example. Whenever you need to modify the text displayed in a page dynamically, you can use the Label control. Any string that you assign to the Label control's Text

More information

Setting Synchronization Direction

Setting Synchronization Direction In Visual Studio 2008, the Local Database Cache configures a SQL Server Compact 3.5 database and a set of partial classes that enable Sync Services for ADO.NET. Because Visual Studio generates partial

More information

ComponentOne. MultiSelect for WinForms

ComponentOne. MultiSelect for WinForms ComponentOne MultiSelect for WinForms GrapeCity US GrapeCity 201 South Highland Avenue, Suite 301 Pittsburgh, PA 15206 Tel: 1.800.858.2739 412.681.4343 Fax: 412.681.4384 Website: https://www.grapecity.com/en/

More information

Part 3: Dynamic Data: Querying the Database

Part 3: Dynamic Data: Querying the Database Part 3: Dynamic Data: Querying the Database In this section you will learn to Write basic SQL statements Create a Data Source Name (DSN) in the ColdFusion Administrator Turn on debugging in the ColdFusion

More information

Overview of ASP.NET and Web Forms

Overview of ASP.NET and Web Forms ASP.NET with Web Forms Objectives Learn about Web Forms Learn the Web controls that are built into Web Forms Build a Web Form Assumptions The following should be true for you to get the most out of this

More information

Web Forms ASP.NET. 2/12/2018 EC512 - Prof. Skinner 1

Web Forms ASP.NET. 2/12/2018 EC512 - Prof. Skinner 1 Web Forms ASP.NET 2/12/2018 EC512 - Prof. Skinner 1 Active Server Pages (.asp) Used before ASP.NET and may still be in use. Merges the HTML with scripting on the server. Easier than CGI. Performance is

More information

Book IX. Developing Applications Rapidly

Book IX. Developing Applications Rapidly Book IX Developing Applications Rapidly Contents at a Glance Chapter 1: Building Master and Detail Pages Chapter 2: Creating Search and Results Pages Chapter 3: Building Record Insert Pages Chapter 4:

More information

Unit-4 Working with Master page and Themes

Unit-4 Working with Master page and Themes MASTER PAGES Master pages allow you to create a consistent look and behavior for all the pages in web application. A master page provides a template for other pages, with shared layout and functionality.

More information

Working with Data in ASP.NET 2.0 :: Using TemplateFields in the DetailsView Control Introduction

Working with Data in ASP.NET 2.0 :: Using TemplateFields in the DetailsView Control Introduction This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx. Working

More information

Encrypt and Decrypt Username or Password stored in database in ASP.Net using C# and VB.Net

Encrypt and Decrypt Username or Password stored in database in ASP.Net using C# and VB.Net Encrypt and Decrypt Username or Password stored in database in ASP.Net using C# and VB.Net Here Mudassar Ahmed Khan has explained how to encrypt and store Username or Password in SQL Server Database Table

More information

DATABASE MANAGEMENT SYSTEMS PREPARED BY: ENGR. MOBEEN NAZAR

DATABASE MANAGEMENT SYSTEMS PREPARED BY: ENGR. MOBEEN NAZAR DATABASE MANAGEMENT SYSTEMS PREPARED BY: ENGR. MOBEEN NAZAR SCHEME OF PRESENTATION LAB MARKS DISTRIBUTION LAB FILE DBMS PROJECT INSTALLATION STEPS FOR SQL SERVER 2008 SETTING UP SQL SERVER 2008 INTRODUCTION

More information

.NET, C#, and ASP.NET p. 1 What Is.NET? p. 2 The Common Language Runtime p. 2 Introducing C# p. 3 Introducing ASP.NET p. 4 Getting Started p.

.NET, C#, and ASP.NET p. 1 What Is.NET? p. 2 The Common Language Runtime p. 2 Introducing C# p. 3 Introducing ASP.NET p. 4 Getting Started p. Introduction p. xix.net, C#, and ASP.NET p. 1 What Is.NET? p. 2 The Common Language Runtime p. 2 Introducing C# p. 3 Introducing ASP.NET p. 4 Getting Started p. 5 Installing Internet Information Server

More information

B.V Patel Institute of Business management, Computer and IT, UTU

B.V Patel Institute of Business management, Computer and IT, UTU Unit1 : ASP.NET Basic Short Question 1. What is ASP? 2. What is ASP.NET? 3. Justify Is ASP.NET is a server-side technology. 4. What is IIS? Why is it used? 5. What is AutoPostBack? 6. Which events are

More information

Designing an Intranet Using Forms Authentication

Designing an Intranet Using Forms Authentication k4849-2 Ch21.F 7/8/02 8:58 AM Page 613 Chapter 21 Designing an Intranet Using Forms Authentication IN THIS CHAPTER Working with specifications Creating a database for an intranet Creating user- and role-based

More information

SYSTEMS DESIGN / CAPSTONE PROJECT MIS 413

SYSTEMS DESIGN / CAPSTONE PROJECT MIS 413 SYSTEMS DESIGN / CAPSTONE PROJECT MIS 413 Client Checkpoint #4 Building your first Input Screen and Output Screens To trigger grading: send an email message to janickit@uncw.edu (see last page for additional

More information

CST272 GridView Page 1

CST272 GridView Page 1 CST272 GridView Page 1 1 2 3 4 5 6 10 Databound List Controls CST272 ASP.NET The ASP:DropDownList Web Control (Page 1) The asp:dropdownlist Web control creates a Form field that allows users to select

More information

Mainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below.

Mainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below. APPENDIX 1 TABLE DETAILS Mainly three tables namely Teacher, Student and Class for small database of a school are used. The snapshots of all three tables are shown below. Details of Class table are shown

More information

STEP 1: CREATING THE DATABASE

STEP 1: CREATING THE DATABASE Date: 18/02/2013 Procedure: Creating a simple registration form in ASP.NET (Programming) Source: LINK Permalink: LINK Created by: HeelpBook Staff Document Version: 1.0 CREATING A SIMPLE REGISTRATION FORM

More information

OVERVIEW ENVIRONMENT PROGRAM STRUCTURE BASIC SYNTAX DATA TYPES TYPE CONVERSION

OVERVIEW ENVIRONMENT PROGRAM STRUCTURE BASIC SYNTAX DATA TYPES TYPE CONVERSION Program: C#.Net (Basic with advance) Duration: 50hrs. C#.Net OVERVIEW Strong Programming Features of C# ENVIRONMENT The.Net Framework Integrated Development Environment (IDE) for C# PROGRAM STRUCTURE Creating

More information

Introduction. What is Recursive Data? Reporting on Hierarchical Recursive data using MS Reporting Services Asif Sayed

Introduction. What is Recursive Data? Reporting on Hierarchical Recursive data using MS Reporting Services Asif Sayed Introduction I will start with a question here. How many of you had chance to interact with Employee table from sample database Northwind? There you go I can imagine countless hands in air, and why not

More information

L e a r n S q l select where

L e a r n S q l select where L e a r n S q l The select statement is used to query the database and retrieve selected data that match the criteria that you specify. Here is the format of a simple select statement: select "column1"

More information

Contents. Chapter 1 Introducing ADO.NET...1. Acknowledgments...xiii. About the Authors...xv. Introduction...xix

Contents. Chapter 1 Introducing ADO.NET...1. Acknowledgments...xiii. About the Authors...xv. Introduction...xix Acknowledgments...xiii About the Authors...xv Introduction...xix Chapter 1 Introducing ADO.NET...1 How We Got Here...2 What Do These Changes Mean?...5 ADO.NET A New Beginning...7 Comparing ADOc and ADO.NET...8

More information

An Introduction to ADO.Net

An Introduction to ADO.Net An Introduction to ADO.Net Mr. Amit Patel Dept. of I.T. .NET Data Providers Client SQL.NET Data Provider OLE DB.NET Data Provider ODBC.NET Data Provider OLE DB Provider ODBC Driver SQL SERVER Other DB

More information

840 Database: SQL, ADO and RDS Chapter 25. Department Salary Location

840 Database: SQL, ADO and RDS Chapter 25. Department Salary Location iw3htp_25.fm Page 840 Tuesday, May 23, 2000 6:11 AM 840 Database: SQL, ADO and RDS Chapter 25 A record Number Name 25 Database: SQL, ADO and RDS Table: Employee Department Salary Location 23603 JONES,

More information

ADO.NET.NET Data Access and Manipulation Mechanism. Nikita Gandotra Assistant Professor, Department of Computer Science & IT

ADO.NET.NET Data Access and Manipulation Mechanism. Nikita Gandotra Assistant Professor, Department of Computer Science & IT ADO.NET.NET Data Access and Manipulation Mechanism Nikita Gandotra Assistant Professor, Department of Computer Science & IT Overview What is ADO.NET? ADO VS ADO.NET ADO.NET Architecture ADO.NET Core Objects

More information

TABLE OF CONTENTS. Data binding Datagrid 10 ComboBox 10 DropdownList 10

TABLE OF CONTENTS. Data binding Datagrid 10 ComboBox 10 DropdownList 10 TABLE OF CONTENTS Preparation Database Design Tips 2 Installation and Setup 2 CRUD procedures 3 doodads for tables 3 doodads for views 3 Concrete classes 3 ConnectionString 4 Enhancing concrete classes

More information

Working with Data in ASP.NET 2.0 :: Adding Validation Controls to the Editing and Inserting Interfaces Introduction

Working with Data in ASP.NET 2.0 :: Adding Validation Controls to the Editing and Inserting Interfaces Introduction This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx. Working

More information

ADO.NET Using Visual Basic 2005 Table of Contents

ADO.NET Using Visual Basic 2005 Table of Contents Table of Contents INTRODUCTION...INTRO-1 Prerequisites...INTRO-2 Installing the Practice Files...INTRO-3 Software Requirements...INTRO-3 The Chapter Files...INTRO-3 About the Authors...INTRO-4 ACCESSING

More information

Mobile MOUSe ASP.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE

Mobile MOUSe ASP.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE Mobile MOUSe ASP.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE COURSE TITLE ASP.NET FOR DEVELOPERS PART 1 COURSE DURATION 18 Hour(s) of Interactive Training COURSE OVERVIEW ASP.NET is Microsoft s development

More information

Data Source. Application. Memory

Data Source. Application. Memory Lecture #14 Introduction Connecting to Database The term OLE DB refers to a set of Component Object Model (COM) interfaces that provide applications with uniform access to data stored in diverse information

More information

Exam : Title. : Developing and Implementing Web Applications with Microsoft Visual Basic.NET

Exam : Title. : Developing and Implementing Web Applications with Microsoft Visual Basic.NET Exam : 070-305 Title : Developing and Implementing Web Applications with Microsoft Visual Basic.NET QUESTION 1 You create an ASP.NET application for Certkiller 's intranet. All employee on the intranet

More information

Creating a NEW ASP.NET Mobile Web Application

Creating a NEW ASP.NET Mobile Web Application 31_041781 ch28.qxp 8/1/06 9:01 PM Page 1149 Mobile Development We are entering an era of mobile applications. Mobile devices are getting better, faster, and cheaper every year. The bandwidth on these devices

More information

ASP.NET Web Forms Programming Using Visual Basic.NET

ASP.NET Web Forms Programming Using Visual Basic.NET ASP.NET Web Forms Programming Using Visual Basic.NET Duration: 35 hours Price: $750 Delivery Option: Attend training via an on-demand, self-paced platform paired with personal instructor facilitation.

More information

COMM 391. Objectives. Introduction to Microsoft Access. What is in an Access database file? Introduction to Microsoft Access 2010

COMM 391. Objectives. Introduction to Microsoft Access. What is in an Access database file? Introduction to Microsoft Access 2010 Objectives COMM 391 Introduction to Management Information Systems Introduction to Microsoft Access 2010 Describe the major objects in Access database. Define field, record, table and database. Navigate

More information

ASP.NET 2.0 FileUpload Server Control

ASP.NET 2.0 FileUpload Server Control ASP.NET 2.0 FileUpload Server Control Bill Evjen September 12, 2006 http://www.codeguru.com/csharp/sample_chapter/article.php/c12593 3/ In ASP.NET 1.0/1.1, you could upload files using the HTML FileUpload

More information

UNIVERSITY OF MUMBAI T.Y.B.Sc.( INFORMATION TECHNOLOGY) (Semester V) (Practical) EXAMINATION OCTOBER ASP.NET with C# Seat No. : Max.

UNIVERSITY OF MUMBAI T.Y.B.Sc.( INFORMATION TECHNOLOGY) (Semester V) (Practical) EXAMINATION OCTOBER ASP.NET with C# Seat No. : Max. 1. Write an application that receives the following information from a set of students: Student Id: Student Name: Course Name: Date of Birth: The application should also display the information of all

More information

SAE6B/SAZ6A UNIT: I - V SAE6B/SAZ6A WEB TECHNOLOGY

SAE6B/SAZ6A UNIT: I - V SAE6B/SAZ6A WEB TECHNOLOGY SAE6B/SAZ6A WEB TECHNOLOGY UNIT: I - V 1 UNIT: 1 Internet Basic Introduction to HTML List Creating Table Linking document Frames Graphics to HTML Doc Style sheet -Basics Add style to document Creating

More information

TABLE OF CONTENTS. Data binding Datagrid 10 ComboBox 10 DropdownList 10. Special functions LoadFromSql* 11 FromXml/ToXml 12

TABLE OF CONTENTS. Data binding Datagrid 10 ComboBox 10 DropdownList 10. Special functions LoadFromSql* 11 FromXml/ToXml 12 TABLE OF CONTENTS Preparation Database Design Tips 2 Installation and Setup 2 CRUD procedures 3 doodads for tables 3 doodads for views 3 Concrete classes 3 ConnectionString 4 Enhancing concrete classes

More information