Download presentation
Presentation is loading. Please wait.
1
Working with your database
Lesson 8 Working with your database
2
Connect to your database
Make sure that you’re connected to the Movies database in data explorer Click on Tables Click on JamesBondSeries
3
This should be on your screen
4
Sorting your database Click on any of the field names and the database will automatically sort for you You can also make any changes to the database and then click Close
5
Follow the steps to view your database on a webpage
Viewing your database Follow the steps to view your database on a webpage
6
Create a new ASP.NET Page
Filename: Showdata.aspx
7
Working with Tables Drag the JamesBondSeries Table over onto your workspace
8
This is what you see… Press F5 to Start
9
Start Web Application
10
Your first database web page
Notice in your system tray that you now have your ASP.NET Web Matrix Server Open
11
Taking a look at Properties
Double click over the database design grid
12
Take a look at Properties
Scroll down and view some of the Properties Change the BackColor to a color of your choice Change the BorderColor to a color of your choice Change the CellPadding to 1
13
View selected fields Scroll down to Fields and click on elipsis box …
The Members are your fields You can delete any field you don’t want to view Remove Member # 4-8 to see how this works
14
View your changes Before you can view your changes you need to right click over the Microsoft ASP.NET Web Matrix Servericon in your System tray and left click on Stop Why? You can only have one application running on that port number 8080 which is the default Now you can press F5 to view your changes to the grid
15
More to notice… Notice the DataMember name which is the name of your table Notice the DataSourceControl ID name
16
Viewing properties Here you can view properties of the DataBindings
17
Learning a little SQL commands
You can drag the Properties window to the left over your workspace to view these commands ConnectionString- Notice the connection on your localserver to your Movies Database SelectCommand-The SQL command used to select records UpdateCommand-The SQL command used to update records
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.