You are on page 1of 64

International Advance Diploma In Computer Studies Advanced Visual Basic

Statement and Confirmation of Own Work

Programme/Qualification name:
Each NCC Education assessed assignment submitted by you must have this statement attached to
the assignment as the cover page or it will not be accepted for marking. Please ensure that this
statement is either firmly attached to the cover of the assignment or electronically inserted into the
front of the assignment.

Student declaration

I have read and understood NCC Education’s Policy on Academic Dishonesty and
Plagiarism.

I can confirm the following details:

Student ID/Registration Number:

Name:

Centre Name:

Module Name:

Module Leader:

Number of words:

I confirm that this is my own work and that I have not plagiarised any part of it. I
have also noted the assessment criteria and pass mark for assignments.

Due Date:

Student Signature:

Submitted Date:
Advanced Visual Basic 1 September 2010
International Advance Diploma In Computer Studies Advance VB

Acknowledgement

This assignment has provided to individual candidate from NCC for Advance Visual
Basic. In this assignment I have exercised various analyzing and designing techniques.
It is a Task that preparing me to facing competition in the world. I have enjoyed doing
this assignment and while I was doing I have recognize a lot of things. I have face
challenging problems but I have overcome my problems help of my teacher MD.
Nazmul Haque. I also appreciate the greatness of NCC and thanks NCC for giving us
such opportunity. I also thank NCC for providing this kind of Global IT Education.

MD. Nazmul Haque: He is a lecturer of Advance Visual Basic in IADCS of Daffodil


Institute of Information Technology. He has been a great inspiration and help for me. He
is great person and he has a great patience that helps me in any time. He has tried his
best to help me to complete this assignment when I have captured by any type of
problem, not only that he is also a best lecturer. Without his help it was far difficult to
complete my assignment and I dearly grateful to him.

Finally, I thanks to almighty ALLAH, who give me strength and inspiration to complete
this assignment.

TITLE: Advance VB 2 September 2010


International Advance Diploma In Computer Studies Advance VB

Table of contents
Task Page
Task-1……………………………………………………………………… 4-9
Task-2……………………………………………………………………… 10-16

TITLE: Advance VB 3 September 2010


International Advance Diploma In Computer Studies Advance VB

Task-3……………………………………………………………………… 17-24
Task-4……………………………………………………………………… 25-33
Task-5……………………………………………………………………… 34-47
Task-6……………………………………………………………………… 48-54
Task-7……………………………………………………………………… 55-60
Task-8……………………………………………………………………… 61-62

References ………………………………………………………………....

TITLE: Advance VB 4 September 2010


International Advance Diploma In Computer Studies Advance VB

Task-1

The Scenario:
A new company that intends to trade in used Personal Computers has decided to conduct its
business via the Internet. A Web Site would have to be designed and implemented. In addition a
database would have to be designed, implemented and placed on an Internet service provider
along with the Web Site.

Problem Statement:

In this task I asked to:

TITLE: Advance VB 5 September 2010


International Advance Diploma In Computer Studies Advance VB

Design a database structure that meets the requirements of the system described.

Document the assumptions underlying my design.

Task Description:
For designing the database at first I have designed a normalization process through which I can
find out the database entities/tables, which are then used as the back-bone data source of the
proposed system.

Normalization is the process of identifying the logical associations between data-items and
designing a database which will represent such associations but without suffering the file
maintenance anomalies.

This process is done by step by step way as follows:

Unnormalized Data-set:
At first I figured the un-normalized data items out from the given scenario. These are:

(PcId, name, monitor, MBoard, Proccsr, HDD, ram, disk_Drive, UseTime, other, qty, price,
SalesSts, InStockDate, avaibility, TrID, FName, LName, address, sex, contact., country email,
TrUName, TrPasswd, SId, SDate, AdminUserName, AdminPasswd)

First Normal Form:

Here the data-items of un-normalized dataset which are then divided into two different groups:
repetitive and non-repetitive for creating the first normal form:

Non-Repetitive:

(PcId, name, monitor, MBoard, Proccsr, HDD, ram, disk_Drive, UseTime, other, qty, price,
SalesSts, InStockDate, AdminUName, AdminPasswd)

Repetitive:

(SId, Sdate, TrID, FName, LName, address, sex, contact, country, email, TrUName, TrPasswd)

Second normal Form:


Then I found the part-key dependency among the data-items of first normal form on the primary
key. These are:

Stock

(PcId, name, monitor, MBoard, Proccsr, HDD, ram, disk_Drive, UseTime, other, qty, price,
SalesSts, InStockDate, AdminUName, AdminPasswd)

TITLE: Advance VB 6 September 2010


International Advance Diploma In Computer Studies Advance VB

Sales

(Sid, Sdate, *TrId, *PcId)

Trader

(TrID, FName, LName, address, sex, contact, country, email, TrUName, TrPasswd)

Third Normal Form:


At last the third normal form is created form the third normal form by find out the non key
dependency among the data-items of the second normal form. These are:

Admin

(AdminUName, AdminPasswd)

Stock

(PcId, name, monitor, MBoard, Proccsr, HDD, ram, disk_Drive, UseTime, other, qty, price,
SalesSts, InStockDate, availability)

Sales

(Sid, Sdate, TrId, PcId)

Trader

(TrID, FName, LName, address, sex, contact, country, email, TrUName, TrPasswd)

Now I have a set of normalized data-items which are suitable for creating an Entity Relationship
Diagram. From this ERD I can now define the database tables and their relationship and can
assume the whole system operations with the use of this database across the system.

Entity Relationship Diagram:


This ERD define the data-items of 3rd NF and their relation between themselves. Database
tables are then derived from this ERD.

ERD

TITLE: Advance VB 7 September 2010


International Advance Diploma In Computer Studies Advance VB

Trader Stock
PK TrId PK PcId
FName TraderId (Fk)
LName Monitor
Address MBoard
sex Proccsr
contact HDD
country Ram
email Disk -Drive
TrUName UseTime
TrPasswd other
qty
Price
SaleSts
InStockDate

Sales

PK SId Admin

TraderId (Fk ) PK AdminUName


PcId (Fk )
SDate AdminPasswd

Figure: Entity Relationship Diagram.

Database structure:
Here the structure of the database is represented. This database structure is derived from the
ERD.

This structure defined the data needed with their data-type and other properties:

Database Tables:

There are three four tables that I found from the ERD. These are:

TITLE: Advance VB 8 September 2010


International Advance Diploma In Computer Studies Advance VB

1) Stock.

2) Trader.

3) Sales.

4) Admin.

Stock Table:

Field Name Data Type Length Null? Primary key Foreign key

PcId Varchar 50 No Yes No

name Varchar 50 No

Monitor Varchar 50 No

MBoard Varchar 30 No

Proccsr Varchar 50 No

HDD Varchar 50 No

Ram Varchar 50 No

Disk_Drive Varchar 50 No

UseTime Varchar 20 No

Other Varchar 80 allow

qty int 10 No

Price Money null No

SaleSts Varchar 10 allow

InStockDate DateTime Date-range No

Trader Table:
Field Name Data Type Length Null? Primary key Foreign key

TrId Int 10 No Yes No

FName Varchar 30 allow

LName Varchar 30 allow

TITLE: Advance VB 9 September 2010


International Advance Diploma In Computer Studies Advance VB

address Varchar 80 allow

sex Varchar 10 allow

contact Varchar 15 allow

country Varchar 50 allow

email Varchar 50 allow

TrUName Varchar 80 No

Passwd Varchar 20 No

Sales Table:

Field Data Length Null? Primary Foreign Constant Name Ref Ref
Name Type key key Table Column

SId Int 10 No Yes No

Sdate DateTime null No

PcId int 10 No Yes FK_Sales_Stock Stock PcId

TrID int 10 No FK_Sales_Trader Trader TrID

TITLE: Advance VB 10 September 2010


International Advance Diploma In Computer Studies Advance VB

Task-2

Problem Statement:
Using either Microsoft Access or SQL Server set up the structure of the database designed in
Task 1. Design suitable test data for the tables of the database that has been set up. Using the
database management system or other means enter this test data.

Task Description:
I used Microsoft SQL Server as my database management system and set up the structure of
the database designed in Task 1 that I completed earlier. This designing phase was including
several steps as follows:

TITLE: Advance VB 11 September 2010


International Advance Diploma In Computer Studies Advance VB

Database Design in MSSQL:

I have designed a database based on the structure from the earlier task. This database is
placed in the App_Data folder of the project. These designing steps are as follows:

• Select the project.

• Right click on the App_Data folder.

• From the pop-up menu item select new item.

• From the Visual Studio installed templates select SQL Server Database.

• Assign a name for the database. Here “OtsDataBase.mdf “.

• Click Add.

• Database that Created

TITLE: Advance VB 12 September 2010


International Advance Diploma In Computer Studies Advance VB

After connecting it to the SQL server I set up the necessary tables by following these steps:

• From the server explorer I created new table for my database.

• Filled the column name with my data-items, their type and other properties identified in
task 1.

TITLE: Advance VB 13 September 2010


International Advance Diploma In Computer Studies Advance VB

• Give the name of the table.

• Repeat this I created all my necessary tables.

My database tables:

Stock table:

TITLE: Advance VB 14 September 2010


International Advance Diploma In Computer Studies Advance VB

Trader Table:

Sales Table:

Admin table:

TITLE: Advance VB 15 September 2010


International Advance Diploma In Computer Studies Advance VB

Database tables with suitable test data:


Stock table:

Trader Table:

Sales Table:

Admin Table:

TITLE: Advance VB 16 September 2010


International Advance Diploma In Computer Studies Advance VB

End of Task-2

TITLE: Advance VB 17 September 2010


International Advance Diploma In Computer Studies Advance VB

Tsak-3

Problem Statement:
In this task I have been asked to:

Design the user interfaces of the SIX interactive Web Forms that correspond to the six Web
Pages named in the Introduction.

Problem Decomposition:

Design of Home page:

TITLE: Advance VB 18 September 2010


International Advance Diploma In Computer Studies Advance VB

Banner

Home Stock Search Upload product Registration Log In Admin

News Home

“some text Some text to descried the


for latest website………………………………..
news”

Footer section

Design of the Stock Page:

Banner

TITLE: Advance VB 19 September 2010


International Advance Diploma In Computer Studies Advance VB

Home Stock Search Upload product Registration Log In Admin

News Latest Product In Stock

“some text
for latest Picture
news”
Pc ID
Name
Processor
Monitor
Motherboard
Hard Disk
Ram
Disk Drive
Other
Used time
Quantity
Price
In Stock Date
Buy

Footer section

Design of the Search Stock Page:

TITLE: Advance VB 20 September 2010


International Advance Diploma In Computer Studies Advance VB

Banner

Home Stock Search Upload product Registration Log In Admin

News Search
“some text Search by product Name:
for latest
news”

Product Name:

Search Result

Footer section

Design of the Registration Page:

TITLE: Advance VB 21 September 2010


International Advance Diploma In Computer Studies Advance VB

Banner

Home Stock Search Upload product Registration Log In Admin

News Registration
“some text
for latest Register With onlinetrade.com
news” First Name:

Last Name:

Address:

Sex:

Contact:

Country:

Email:

User Name:

Password:

Re-Type Password:

Submi Reset
t

Footer section
Design of the Product Upload Page:

TITLE: Advance VB 22 September 2010


International Advance Diploma In Computer Studies Advance VB

Banner

Home Stock Search Upload product Registration Log In Admin

News Upload Yor Product


“some text
for latest
news” Name/Pc Model:

Monitor:

Mother Board:

Processor:

Hard Disk:

Ram:

Disk-Drive:

Use time:

Other:

Quantity:

Price:

In Stock date:

Submi Reset
t

Footer section
Design of the Purchase Page

TITLE: Advance VB 23 September 2010


International Advance Diploma In Computer Studies Advance VB

Banner

Home Stock Search Upload product Registration Log In Admin

News Confirm Your Buy


“some text
for latest Product ID:
news
Name:

Price:

Quantity:

Availabl
e?

Date :

Confirm
Buy

Footer section

TITLE: Advance VB 24 September 2010


International Advance Diploma In Computer Studies Advance VB

Design of the Admin Main Page:

Banner

Main View Product Search Registratio LogIn


n

Confirm buying

Report Click to View


View Product Details View

View Sales Details View

View Trader Details View

Footer section

End Of Task-3

TITLE: Advance VB 25 September 2010


International Advance Diploma In Computer Studies Advance VB

Task-4

TITLE: Advance VB 26 September 2010


International Advance Diploma In Computer Studies Advance VB

Problem Statement:
In this task I have been asked to:

Design the logical processes including the connections to the database that will have to lie
behind the interfaces designed in Task 3. These designs to include the design of all the
algorithms required.

Task Description:
At first I have designed the algorithm for database connection to connect with my database.
Then the entire important algorithm for operating and maintaining of this website are described
below:

Algorithm for Database Connection:

• Input database URL/connectionString into SQL connection object.

• Then this object will try to connect to the SQL Server as path specified into
ConnectionString.

• If found then do operation or

• Generate error message for SQL connection.

While any operation or page try to connect to the database for interaction with it, then this
algorithm will come into action.

This algorithm could be drawn as flowchart as below:

TITLE: Advance VB 27 September 2010


International Advance Diploma In Computer Studies Advance VB

Flow Chart for Database connection:

Start

Input
ConnectionString
/DB URL

Search the Database

No
Conne
ct ? Error
Message

Yes

Do Operation

End

TITLE: Advance VB 28 September 2010


International Advance Diploma In Computer Studies Advance VB

Algorithm for log in page:

• Load the page.


• Accept input
• Establish connection
• Check inputs with database corresponding field values
• If user exists then create a session for him/her and redirect to the home page/main
page.

This algorithm worked out while any type of Authentication and authorization take place as well
as an admin login to the admin page.

Flow Chart for Log In:

Start

Load page

Search the Database

Enter username
Enter
password

Establish Connection

Search the Database

Match No
?
Error
Yes Message
Login Successful
and Redirect to
Default Page

End

Algorithms for any read operation of database:

TITLE: Advance VB 29 September 2010


International Advance Diploma In Computer Studies Advance VB

Pages applied: Stock page, Search page, Admin Product Detail page, Admin Trader
Detail page, Admin Sales Detail page.

Although Search page depends on the user input but others are retrieve necessary
information directly from the database based on the primary key.

Algorithms For search Page:


• check the session for log in that was created in user log in
• if value is null string then redirect to the log in page
• if not then load the search page
• select a product name for view its details from the list box items
• click search button
• establish connection to the database
• check the product name in stock table with user input
• if matches display all fields in grid view.

Flow chart for read data from database:

Start

User Input:
Product name

Establish
Connection

Search in stock
table

Fou No
nd?

Yes Error Message

Display Record
for product

End
Algorithms for Save/Write data in database:
• Load the input form.

TITLE: Advance VB 30 September 2010


International Advance Diploma In Computer Studies Advance VB

• Collect data from user.


• Check validation.
• Establish connection.
• Check section and Save data in database.
• If save show successful message.
• If not show error message.

This algorithm is correspondence to Registration page and upload product page. While
a user will input all necessary field of the form and click the “submit” button then the
page check the validation. If any invalid data inserted it will produce appropriate error
message. If all fields are filled-up correctly then the page trying to connect to the
database. If it gets connection then save these users input in the table fields.

TITLE: Advance VB 31 September 2010


International Advance Diploma In Computer Studies Advance VB

Flow chart for save data:

Start

Load the page

Users input and


submit button
clicked

Check
Not valid
Validati
on?

Error Message
Valid

Establish
Connection

Check Unsuccessful
No
Section Message
and
save? Don’t Save

Yes
Successful
message

End

Algorithm for purchase/buy page:

TITLE: Advance VB 32 September 2010


International Advance Diploma In Computer Studies Advance VB

This page needs to check the user authorization for make a purchase from this website.
Only authorized and authenticate user can get entrance into this page and make
purchase. The algorithm for this page is as follows:

• Select the Pc for buy from stock or by search.


• Check authentication.
• If authorized user then load the page
• If not redirect to log in page
• Input quantity.
• Check availability for the product.
• If available count buy. Start
• If not show error message.
• Save sales data into sales table.

Select the
product to buy

Che Not
ck Authorized
user Redirect to Log In
? page

Authoriz
ed

Load the page

Input Quantity

Check
Not Available
availabi
lity?

Show Message

Available

Show message
Flow Chart for buy Page:

Process buy

TITLE: Advance VB 33 September 2010

End
International Advance Diploma In Computer Studies Advance VB

End of Task-3

TITLE: Advance VB 34 September 2010


International Advance Diploma In Computer Studies Advance VB

Task-5

Problem Statement:
In this task I have asked to:

TITLE: Advance VB 35 September 2010


International Advance Diploma In Computer Studies Advance VB

Implement and test all that has been designed in Tasks 3 and 4.

Task Description:
In task-3 I was created a rough scratch of six pages that correspond to the six Web
Pages named in the Introduction and in task-4 I have designed the algorithms of all
interaction takes place of these web-pages with the database.

Here I would like to represent that how I implemented these pages and algorithms in
real. I used Visual studio 2005 to create these pages and interaction. I used the
following languages, tools and technology for this purpose in Visual Studio environment:

• ASP.Net with Visual Basic.Net

• XHTML

• CSS

• SQL

• Adobe Photoshop CS3

Implementation of task 3:
Log In Page:

For implementing this page I use the XHTML code with CSS which are in an external
file named “Style Sheet.css” in the project folder.

Implemented Page in Mozilla Firefox browser:

TITLE: Advance VB 36 September 2010


International Advance Diploma In Computer Studies Advance VB

Search Page:
For implementing this page I use the XHTML code with CSS which are in an external
file named “Style Sheet.css” in the project folder.

Implemented Page in Mozilla Firefox browser:

Registration Page:

TITLE: Advance VB 37 September 2010


International Advance Diploma In Computer Studies Advance VB

For implementing this page I use the following XHTML code with CSS which are in an
external file named “Style Sheet.css” in the project folder.

Implemented Page in Mozilla Firefox browser:

Upload Product Page:


For implementing this page I used XHTML code with CSS which are in an external file
named “Style Sheet.css” in the project folder.

Implemented Page in Mozilla Firefox browser:

Purchase Page:

TITLE: Advance VB 38 September 2010


International Advance Diploma In Computer Studies Advance VB

For implementing this page I use the following XHTML code with CSS which are in an
external file named “Style Sheet.css” in the project folder.

Implemented Page in Mozilla Firefox browser:

Maintenance page:
For implementing this page I use the following XHTML code with CSS which are in an
external file named “Style Sheet.css” in the project folder.

Implemented Page in Mozilla Firefox browser:

Part-2

TITLE: Advance VB 39 September 2010


International Advance Diploma In Computer Studies Advance VB

Implementation of Task-4:
Implementation of dataset connection algorithm:
Code for connecting to the database:
Public Class DBU
Dim con As SqlConnection

Public Sub New()


Dim constr As String = "Data Source=.\SQLEXPRESS;AttachDbFilename=|
DataDirectory|\OtsDatabase.mdf;Integrated Security=True;User Instance=True"
'Dim constr As String = "Server=.\SQLEXPRESS;integrated security=true;database=scms"
con = New SqlConnection(constr)
End Sub
Explanation of the code:
• At first I created an object named con of type SqlConnection in class DBU()

• In a sub procedure I declare variable of type string which was initiated the
ConnectionString of the file name and path of the data source including other
attributes.

• Then pass this string as arguments into the ‘con’ object.

• This connection object is used whilst the application is trying to connect to the
database.

For log in/authentication:

Code for Trader log-in check:


Partial Class LogIn
Inherits System.Web.UI.Page

Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles


btnSubmit.Click
lblWrongUser.Visible = False
Dim Uname As String = txtUserName.Text
Dim Pass As String = txtPassword.Text

Dim str As String = String.Format("SELECT * FROM Trader Where TrName='" & Uname & "' and
Passwd='" & Pass & "'")
Dim db As New DBU
Dim a As ArrayList = db.Query(str)
Dim chk As Integer = a.Count
If chk <> 0 Then

Session("un") = txtUserName.Text
Response.Redirect("Stock.aspx")

TITLE: Advance VB 40 September 2010


International Advance Diploma In Computer Studies Advance VB

Else
lblWrongUser.Visible = True
End If
End Sub
End Class

Code in real action:

Log in page with user name and password:

• While the authorized user name and password are inserted and submit button clicked
then the page will redirect to stock page.

Input of valid data:

After log in:

TITLE: Advance VB 41 September 2010


International Advance Diploma In Computer Studies Advance VB

• if unauthorized person try to log in with wrong user name or password an error message
will appear in the same page as like:

So the algorithm for log in is proved here.

• Same log-in criteria was applied for admin-log in process.

Implementation of write operation of data in database tables:

TITLE: Advance VB 42 September 2010


International Advance Diploma In Computer Studies Advance VB

Here is the code of implementation by which I implemented the algorithm for write data
into database tables:

This function was implemented to write into database tables:

Public Function Execute(ByVal s As String) As String


Try
Dim cmd As New SqlCommand(s, con)
con.Open()
cmd.ExecuteNonQuery()
Return "Successfully Data has Been Inserted"
Catch ex As Exception
Return ex.Message
Finally
con.Close()
End Try
End Function

Back-end page code:

In page
Partial Class Registration
Inherits System.Web.UI.Page

Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles


btnSubmit.Click
Dim sex As String = ""
If rdbMale.Checked Then
sex = "Male"
Else
sex = "Female"
End If

Dim cmdStr As String = String.Format("INSERT INTO Trader


VALUES('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}','{8}')", txtFName.Text, txtLName.Text, txtMultiAddress.Text,
sex, txtContact.Text, txtCountry.Text, txtEmail.Text, txtName.Text, txtPasswd.Text)
Dim dbu As New DBU()
lblSucceccSts.Text = dbu.Execute(cmdStr)
End Sub

Protected Sub txtName_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)


Handles txtName.TextChanged
txtLName.Text = txtFName.Text & "." & txtLName.Text
End Sub

Protected Sub txtLName_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)


Handles txtLName.TextChanged

End Sub
End Class

TITLE: Advance VB 43 September 2010


International Advance Diploma In Computer Studies Advance VB

Code in action:
Implemented code in real page environment:

Figure: Registration page after successful data written.

New data that has just written in the table ‘Trader’:

For product upload page:


Back-end page code:

Partial Class UploadProduct


Inherits System.Web.UI.Page

Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles


btnSubmit.Click
Dim cmdStr As String = String.Format("INSERT INTO Stock
VALUES('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}','{8}',{9},'{10}','{11}')", txtPName.Text, txtMonitor.Text,
txtMBoard.Text, txtProccssor.Text, txtHDD.Text, txtRam.Text, txtDiskDrive.Text, txtUTime.Text,
txtOther.Text, txtQty.Text, txtPrice.Text, txtSaleStsHidden.Text)
Dim dbu As New DBU()
ltlSaveSts.Text = dbu.Execute(cmdStr)

TITLE: Advance VB 44 September 2010


International Advance Diploma In Computer Studies Advance VB

txtPName.Text = ""
txtMonitor.Text = ""
txtMBoard.Text = ""
txtProccssor.Text = ""
txtHDD.Text = ""
txtRam.Text = ""
txtDiskDrive.Text = ""
txtUTime.Text = ""
txtOther.Text = ""
txtQty.Text = ""
txtPrice.Text = ""
End Sub

Protected Sub txtPName_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)


Handles txtPName.TextChanged

End Sub

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load


If Session("un") = vbNullString Then
Session("pageS") = "UploadProduct.aspx"
Response.Redirect("LogInFirst.aspx")
End If
End Sub

Protected Sub btnLogOut_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles


btnLogOut.Click
Session.Clear()
Response.Redirect("Default.aspx")
End Sub
End Class

Code in action with page Upload Product:

Figure: After successful data written in Stock table.

New data that has just written in the table ‘Stock’:

TITLE: Advance VB 45 September 2010


International Advance Diploma In Computer Studies Advance VB

Implementation of read data from database tables:


• At first choose the data source from which data would be retrieve

• Then choose the data connection that the application will use to connect to the
database:

TITLE: Advance VB 46 September 2010


International Advance Diploma In Computer Studies Advance VB

• Then chose the fields for display in page:

• Then test query and clicked finish:

TITLE: Advance VB 47 September 2010


International Advance Diploma In Computer Studies Advance VB

Now the “Details View” is ready for retrieve and display the stock information:

End of Task-5

TITLE: Advance VB 48 September 2010


International Advance Diploma In Computer Studies Advance VB

Task-6

TITLE: Advance VB 49 September 2010


International Advance Diploma In Computer Studies Advance VB

Problem Statement:

In this task I have been asked to:

Produce evidence of system testing of the completed system.

This evidence must contain relevant screen shots.

Task description:

System Testing:
I select some suitable data set for system testing. Then these data were implemented
into the system. The testing process and suitable screenshot are represented below:

The system testing report show in table –

This table is for testing the menu link.

Link name Desire destination Acutual destination Result


home Index.aspx index.jsp Success
stock Stock.aspx Stock.aspx Success
search Search.aspx Search.aspx Success
upload product Uploadproduct.aspx Uploadproduct.aspx Success
registration Registration.aspx Registration.aspx Success
login LogIn.aspx LogIn.aspx Success
admin AdmiLogIn.asppx AdmiLogIn.asppx Success

The result of every link is success. That means all Menu link work correctly.

TITLE: Advance VB 50 September 2010


International Advance Diploma In Computer Studies Advance VB

This table testing the log In purchase and upload section:

Action Desire destination Actual destination Result

Trader login (valid) Stock.aspx Page Sale or bye page Success

Trader login (invalid) Error Message Error Message Showed

Registration Success Status Success Status Showed

Product Upload Success Status Success Status Showed

Purchase/Confirm Buy Success Status Success Status Showed

Admin login (valid) AdminMain.aspx Page AdminMain.aspx Page Success

Admin login (invalid) Error Message Error Message Showed

Field Validation (Page: Error Message Before Error Message Before Showed
Registration, upload Submit Submit
product)

The every actions were work properly in this website. All the section design and tested well.

When invalided username or password is given the system will redirect ronguser.jsp page

Trader LogIn (Valid):

Figure: Screenshot of valid log in.

TITLE: Advance VB 51 September 2010


International Advance Diploma In Computer Studies Advance VB

After Log In:

For Invalid Log In:

For Successful Registration:

Field Validation:

TITLE: Advance VB 52 September 2010


International Advance Diploma In Computer Studies Advance VB

Successful Upload:

Field Validation:

Successful Purchase:

TITLE: Advance VB 53 September 2010


International Advance Diploma In Computer Studies Advance VB

Successful Admin Log In:

After Log In:

Invalid Admin Log In:

TITLE: Advance VB 54 September 2010


International Advance Diploma In Computer Studies Advance VB

End of Task-6

TITLE: Advance VB 55 September 2010


International Advance Diploma In Computer Studies Advance VB

Task-7

Problem Statement:

TITLE: Advance VB 56 September 2010


International Advance Diploma In Computer Studies Advance VB

In this task I have been asked to:

Produce a user guide. This guide should contain suitable screen shots.

Task Description:
In this task I produced the user guide which will guide the user to use this website
perfectly. Please read this user guide carefully so that it can help you to effeciantly uses
this website and pages.

You always require logging in to view some protected pages of this sit e. these
protected pages are:

1. upload product page.

2. Make purchase page.

3. Search page.

After the Website requested or launch:

• The Log In Page will displayed

Usually you don’t have any log in name and password until you registered with this
website.

If you are not registered then click on the registration link from the menu:

• Then the registration page will loaded.

• Fill the necessary information in the form and submit.

TITLE: Advance VB 57 September 2010


International Advance Diploma In Computer Studies Advance VB

Figure: Registration page

After a successful registration you can now enable to log in with the user name and password
you just registered.

If you are admin you have to log in through admin log in page to view the company’s data about
trader, sales, product etc.

The log in process is same as trader log in except you have to collect your admin log in name
and password from the system administrator.

Upload a product for sale:


• After successful log in you can upload a product for sale on this website.

• To do this click on the upload product link in the menu.

TITLE: Advance VB 58 September 2010


International Advance Diploma In Computer Studies Advance VB

• Then this from will be displayed

• Fill necessary field and click submit to save your product information.

Purchase a product from stock:


• Select your product from the stock page.

• Then click the link”Buy” to buy this product.

TITLE: Advance VB 59 September 2010


International Advance Diploma In Computer Studies Advance VB

• The page will redirect you to the purchase page where the product id , name and price
will be displayed.

• Enter quantity of product you want to buy.

TITLE: Advance VB 60 September 2010


International Advance Diploma In Computer Studies Advance VB

• Click “Available?” button to check availability of this product.

• If available then click “confirm buy” button to confirm you purchase.

Search a product from stock:


• Search a product by product name select the name from the drop down list

• Then the search result of your selected product will display below. Like:

TITLE: Advance VB 61 September 2010


International Advance Diploma In Computer Studies Advance VB

Task-8

TITLE: Advance VB 62 September 2010


International Advance Diploma In Computer Studies Advance VB

Problem Statement:

Produce a publishable working copy of the completed assignment together with some
installation notes.

The installation notes should include the system requirements.

This copy should be on an appropriate medium (CD-ROM, DVD etc.).

This evidence must include relevant screen shots.

Task Description:

This task is completed and included with this hard copy in CD-ROM, which contains the
publishable copy of the completed assignment with some installation notes.

TITLE: Advance VB 63 September 2010


International Advance Diploma In Computer Studies Advance VB

References
Book References:
Professional ASP.NET 2.0 Published By Willey publishing, Inc Edition 2006

By.

Bill Evjrn

Scott HAnselman

Farhan Muhammad

Web References:
http://www.developer.com/net/asp/article.php/3299641/ServerTransfer-Vs
ResponseRedirect.htm

http://support.microsoft.com/kb/312063

http://www.w3schools.com/aspnet/default.asp

http://www.asp101.com/lessons/validation.asp

http://forums.asp.net/p/1562682/3876825.aspx

http://www.microsoft.com/sqlserver/2005/en/us/default.aspx

http://support.microsoft.com/ph/13165

http://www.sql-server-performance.com/

http://blog.sqlauthority.com/2006/11/01/sql-server-query-to-display-foreign-key-relationships-
and-name-of-the-constraint-for-each-table-in-database/

http://msdn.microsoft.com/en-us/library/aa258255(SQL.80).aspx

http://www.vbforums.com/showthread.php?t=366078

http://msdn.microsoft.com/en-us/library/8z6watww(VS.71).aspx

TITLE: Advance VB 64 September 2010

You might also like