CHAPTER ONE 1.0 INTRODUCTION The introduction of the portal concept to the Web has opened new possibilities to address some of the issues concerning the personal management of academic information and knowledge. Some of the main issues are the lack of integration, personalization and customization of existing academic information sources and systems. A Web portal can be defined as a Web site that aggregates an array of content and provides a variety of services including search engines, directories, news, e-mail and chat rooms. 1
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
CHAPTER ONE
1.0 INTRODUCTION
The introduction of the portal concept to the Web has opened
new possibilities to address some of the issues concerning the personal
management of academic information and knowledge. Some of the
main issues are the lack of integration, personalization and
customization of existing academic information sources and systems.
A Web portal can be defined as a Web site that aggregates an array of
content and provides a variety of services including search engines,
directories, news, e-mail and chat rooms. Portals have evolved to
provide a customized gateway to Web information. A high level of
personalization and customization is possible (Melzer 1999; Boye
1999). It was felt that the portal concept could be further developed to
function as a sophisticated Web interface that can support the task
performance (teaching and research) of academics.
1
Over the years, methods of checking result, Hostel Allocation,
School Fees Payment, Course Registration, Online Application such as
Post UTME have been crude. This has contributed to the failure of
many Universities Portal, some of their portal take care of some aspect
of the School system online while other aspects of the Portal are done
manually. For example, in Delta State University, Abraka, the Portal
only allow students’ course Registration and school fees payment and
online application, while other aspects of the Portal such as result
processing and compilation, result checking, Hostel Allocation and the
rest of them are done manually which has resulted to the inefficiency of
the portal system. Most students complain of not having their result
pasted on time, others complain of irregularities in results pasted.
Some group of others says that results are not being seen on the notice
board when pasted, because some groups of hoodlums tear it off as
soon as it is pasted. There are also most times when queuing becomes
the order of the day.
Because the school population grows in geometric pattern yearly,
there is every likelihood that more of these irregularities will become
2
rampart. Holding on to these foreseen abnormalities in result, adoption
of online approach to result checking, hostel allocation and the
remaining other aspects of the existing portal is appropriate and would
be a load off students and staff shoulder. With this method transcripts
posting will become an easy thing. Students will no longer need to
travel down to the school premises to check their results. In their
individual location, they can check their results, they can also secure an
accommodation in any of the hostel in the University without the stress
of queuing and balloting so far they can access the internet
1.1 Statement of the problemThe central research problem is to ascertain what factors should be taken into account during the design and development of a Web portal for academics. Some of the Problems associated with the Existing university portal are stated below
a) Fraud b) Poor Security features of the portalc) Student cannot check their result onlined) Information of duly registered student are accessible by the
course lecturere) The portal is very slowf) Poor User Interfaceg) Poor Structure h) Student cannot print Details of previous course registration and
school fees paymenti) The portal does not keep tracks of capacity . e.t.c
3
1.2 SIGNIFICANCE OF STUDY
In this institution “Delta State University Abraka”, the
population of students grows in geometric pattern, there is every
likelihood that result checking, hostel allocation, online application and
so on would become one of the most tedious task to attend to. There
emanate situations where some students tear off the results pasted
because of their poor performance thereby depriving others from
checking their results. There are situations where students have to be in
queue just to check their results. Also, queuing to ballot for hostel
accommodation. This Course of study is embarked onto guarantee
speed, durability and reliability on result and transcript access with the
online result expert, checking results would become an easy task.
Students would no longer have stress in checking results.
1.3 AIMS AND OBJECTIVES
This research work is embarked on to easy the result processing,
result checking, hostel allocation. It is aimed at curtailing abnormalities
4
encountered on access to results, hostel allocation and online
application
The main aims and objectives of this project work are not
farfetched; they are highlighted as follows;
To provide students easy access to their results and transcripts
To enhance result checking anywhere around the globe
Reduce/ eliminate exposure of students’ results.
To reduce error in result processing and compilation of results.
To reduce the difficulties of securing accommodation in the
Hostel
To reduce the problems of venue allocation to potential students
of the university that are writing various entrance examination.
To enhance the security of the existing system
To eradicate some of the problems being face by the present
system.
5
1.4 SCOPE OF STUDY
This project work is carried out within the axis of DELTA
STATE UNIVERSITY ABRAKA. Its scope is the designing and
implementation of a University Portal, with basic information about the
modern method of making results available, hostel allocation, and
online application, school Fees payment, course registration to student
through the internet with minimum or no effort. It is embedded with
online University Portal and an exposure of the World Wide Web,
internet, IIS and the browser. It is though a prototype (evolutionary
prototype) meant to offer students opportunity to check their result,
secure accommodation, pay school fees, course registration and so
other task from any location they find themselves, so far they can
access the internet. There is a section of the portal for staff (lecturers)
to enter students’ records, test scores and examination scores from
anywhere in the world as far as they have access to the internet. Also
there is offline software for lecturer to upload student result, and
immediately update the main server (database) when the lecturer logs
in to the university portal.
6
1.5 ANATOMY OF THE STUDY
This project work is partitioned into five chapters with
appendices.
Chapter one encompasses introduction, significance of study,
aims and objectives, methodology, anatomy and limitations.
Chapter two contains literature review, checking result online,
the World Wide Web, the internet and IIS.
Chapter three is on system investigation, problem of the existing
system and the analysis of the existing system, covers system design,
design consideration, input and output design, system specification and
features of the system.
Chapter four is on the implementation of the system, application
of the system, system flowchart, site preparation and location and
system testing, documentation, and limitation of the system,
Chapter five is summary, conclusion and recommendation.
1.6 METHODOLOGY
To achieve this research work, I employed the underlying
method to gather data and analyzed the data to accomplish the task.
7
The Software methodology used is the SDLC (Software
development life cycle) which Includes the following stages
1. System study (Problem Definition)
2. Feasibility study
3. System Analysis
4. System design and Development
5. System Testing and Documentation
6. System Maintenance
Microsoft Expression Web
Three years ago, when I first used FrontPage, I was amazed at
how far ahead its time the program was. The ability to work with
tables, visual formatting, styles and pinpoint accurate designs timely
amazed me. I was skeptic when it came to visual editor and preferred
notepad whenever possible front page changed that in me and made me
look at web development as a whole new light.
Still many considered FrontPage a simple visual editor that
accomplishes little but in the development of static web pages. The
8
mindset is that visual editors lack the time complexity that it takes to
create rich and powerful web application that encompass client side
technologies such as HTML, CSS, JavaScript while leveraging server
side technologies such as ASP.NET
As FrontPage’s successor, Expression Web obliterates that
staginess by captivating the developer in a vast intuitive and features
rich environment. Whether you are designing a website for personal
use, a government institution or a private organisation, expression
web’s tools are geared to adding in the development of features rich,
accessible and captivating web paes.
Microsoft SQL Server 2005
Microsoft SQL server 2005 extends the performance reliability,
availability, programmability and ease of use of SQL server 2000. SQL
2005 includes several new features that make it an excellent database
platform for large-scale online transactional processing (OLTP), data
warehousing and e-commerce applications.
SQL server 2005 provides controlled access and rapid
transaction processing to meet the requirements of the most demanding
9
data consuming applications within any enterprise. It also provides rich
support for sustaining high availability.
1.7 LIMITATION OF STUDY
Time: there was no time to carry out this project work to the
fullest as I was combining my academic work on campus with
the web site development and also my write up.
Lack of internet facilities: because there was absence of the
internet, sourcing for information from the internet took a lot of
money also internet connectivity was not available, the full test
of the system was not done..
The system does not verify if the student being registered is truly
admitted or not, it assumes that for a student to register or check
results, he/she must have undergone screening and verification
Cost: There was no enough fund to buy server online to test the
application on the internet.
Payment of School Fees with ATM Cards is not Possible.
10
CHAPTER TWO
2.0 LITERATURE REVIEW
Computers have had a tremendous impart on our society since its
inception. The world today is moving from the state from where
everything is computerized. The introduction of the internet in 1969
and its improvement has turned the world into a global village.
According to Stella el al (2004), the internet is a vast
interconnected collection of computer networks of many different
types.
The world largest network is the internet, which is a world wide
collection of networks that links together millions business,
government offices, educational institutions and individuals- West
(2005). Each of these networks provides resources that add to the
abundance of goods, services and information accessible via the
internet.
Ekanem (2005) also viewed internet as a network of networked
computers all over the world. Simply put, it is a world wide network of 11
computers, furthermore, Ureigho and Ekruyota (2006), sees the internet
as an international network of networks that is a collection of hundreds
of thousands of private and public networks al over the world. The
internet has a range of capabilities that organizations are using to
exchange information internally or to communicate externally with
other organizations. The primary infrastructure of e-commerce, e-
banking and e-business is provided by the internet technology.
Information could be gathered together and published in websites.
2.1 PORTAL
In its early stage, the web served as an electronic poster to
promote the image of the institution and manually served as a
marketing tool. Institution competed with each other as to who has the
most splashing homepage. Few view the portal as a vehicle for
accessing and sharing of information. This emerged during the next
stage, when organizations realized that the web is a perfect vehicle to
get information not only to external constituents but also extremely be
useful to communicate procedures, common documents to internal
constituents. Extra and intra-net emerged, both displaying static 12
information, one targeted for attracting external constituents to the
organization and the other for sharing information inside the institution.
As the information posted was static, the problem arose, “who is
responsible for keeping the information up-to-date and synchronized
with other web pages after the initial posting”.
The term portal projected the vision that the web site is an entry
point to selected and relevant information in contrast to the general
web were all information is equally accessible. The term portal was
quickly accepted and today, it is used literally by vendors and
organizations alike to promote their websites beyond the original intra
and extra-nets. According to G. G. it is one of the most abused terms
today.
However, there is more to portal than website with relevant
contents. They go beyond the static web pages and require a sign on
where they link to some knowledge. The organization has collected
about the visitor. That knowledge allows the portal to be tailored to
meet individual’s needs. In addition, portals go beyonds the delivery of
13
static information and often provides access to services offered by the
organization. Beyond that they offer network services such as email
and other collaboration tools and these services often interact with
other organization specific applications. Currently the different types of
portal can be classified as;
2.1.1 PUBLIC PORTAL: example is yahoo. Offer wide range of
network services such as email, chartroom and channels of
common interest like the weather or stock market. Users can
tailor their homepage by selecting from a set of preset channels
and they can add their own link or change the appearance of the
portal.
2.1.2 VERTICAL PORTAL: focus on specific industry and the
channels offered are industry specific. For example, an education
portal will have channels that provide educational information
and services from many resources.
2.1.3 ENTERPRISE PORTAL: provides channels for single
organizations such as a university and the channels offered are
perceived to be of values to the organization’s customers. The 14
channels offered link to information or services that are manually
hosted at the organization.
2.2 ONLINE RESULT PROCESSING
For any business in the world today to be competitive, its mode
of operations need to be computerized otherwise, it will be left behind.
This means that for institution like ours to be competitive with the
various university and polytechnics in the country, it needs to go
online.
According to Williams and Sawyer (2005), online processing
therefore means the processing of data online (internet) through the use
of the internet. The internet is a mechanism for information
dissemination and a mechanism for collaboration and interaction
between individuals despite their geographical locations. The online
processing enables individuals to pass and receive information from
one another.
Online result processing have so many advantages which made
many organizations and institutions adapt to its mode of operation due
15
to civilization and technological advancement. Some of these
advantages are:
They are faster.
Storage capability.
Less strenuous
Reliability.
2.3 EXAMINATIONS AND ASSESSMENT
Each module is formally assessed by a mixture of module
assessments and examinations. Modules assessments consist of;
Individual assignments
Group assignment.
Examinations.
Class test.
Presentations.
Lab/studio practical
Other methods agreed by module staff.
16
2.4 EVALUATION OR GRADING SYSTEM
The minimum marks needed to pass a module is normally 40%
for B SC
The current grading system is as follows (according to student
handbook 2010)
70 and Above A - 5.00
60% - 69% B - 4.00
50% - 59% C - 3.00
45% - 49% D - 2.00
40% - 44% E - 1.00
0 39% F - 0.
Degree is graded as follows
Point average / CGPA Performance
First Class GPA of 4.50 and above
17
Second Class Upper GPA of 3.50 – 4.49
Second Class Lower GPA of 2.50 – 3.49
Third Class GPA of 2.00 – 2.49
Pass GPA of 1.00 – 1.99
Fail GPA of 0.99 and below.
18
CHAPTER THREE
SYSTEM ANALYSIS AND SYSTEM DESIGN
3.0 SYSTEM ANALYSIS
System analysis involves the process of investigating a system to
know how it actually works in other to make it work more effectively
and efficiently.
3.1 SYSTEM INVESTIGATION
In investigating any system, different data gathering tools such as
observation, interview, questionnaire, written document can be used
depending on the analyst
In investigating Delta State University Abraka, the following fact
finding techniques were employed:-
Interview with officers of the exams and record unit of the
registry department of the institution, Student Affair Officers , Bursary
and others lecturers was conducted in other to get details on how
processing of result, Hostel Allocation, and so on is being conducted.
19
Interview with the HOD of Mathematics and Computer science
was also conducted. Other staff and student of the institution was also
conducted.
The various process of course registration and result computation
were also observed as the researcher is currently on the system being
analyzed.
3.2 ANALYSIS OF THE EXISTING SYSTEM
From analysis gathered from the system Delta State University
Abraka is currently running a manual method of Allocating student to
Hostel, a manual Method of Allocating student to Exam Venue during
entrance examination into any of the Programme of the University,
system of result computation and result checking which involves the
staff recording all the assessment of each student on a sheet and
thereafter submit to the HOD for result computation. After computing
these results, they will be pasted on the notice board for students to
come and check. The steps involved in result processing are:-
20
Record the scores (assignment, test, practical, Exams e.t.c) of
each student on a sheet by each of the lectures
Compute the totals (continuous assessment).
Each lecturer submits their sheet to the HOD.
The HOD section compute the result using the University
grading system
Submits to the exams and record for verification
Paste result on the notice board for students to check.
3.3 PROBLEMS OF THE EXISTING SYSTEM
Information gathered from the existing system shows that the
system has the following problems.
Fraud
Reactivating Used cards to Student from the School Café
Insecurity of the Application the make use of cookies instead of
Sessions
Staff of the BTS have unlimited access to the some vital aspects
of the Portal
21
No Proper Job functions define on the users of the portal except
the student sections
Student cannot Check their Result online
Student cannot secure accommodation through the existing
Portal.
Potential Student are allocate to their Examination Venue through
a manual method, thereby causing a lot of problems during the
Examination day for post UTME student.
Redundancy of student’s information
Missing scripts
Enormous data entry
Errors in result calculation
Unnecessary long queue to check result
Data inaccuracy
Because of these numerous problems, a model for the designing
and Implementing a University Portal is adopted and if implemented
these problems will be brought to minimal.
3.4 BENEFITS OF THE PROPOSED SYSTEM22
The following are the Benefits of the Proposed system;
1. Student Can Check their result online through the University
Portal by going to any cybercafé or from any internet source.
2. Student can check their result also from their house or hostel
without connecting to the internet or going to cyber café, through
their GSM by sending their Matric Number in form of SMS to a
ShortCode or a Phone Number and automatically get their Result
in form of SMS to their phone.(E.g FOS/07/08/129449 First
2010/2011 as an SMS to 08032353712 or 6734) That is Matric
Number Semester Session to a particular code or Phone Number.
3. Student can Secure Accommodation from anywhere without
actually coming to the School, all they need Just Purchase the
Hostel Allocation Scratch Cards and Login to your Account in
the University Portal and Apply for Accommodation, The Portal
automatically assign you to any of the Rooms in the Hostel
available in the University.
23
4. Users of the Portal have their Functions well spell out. For
instance the Functions Assign to the Heads of Department are
different from those assign to others lecturer of the Institution.
5. During Online Application to any of the programme in the
University Especially for those Programme that required an
Entrance Examination Student, The New System automatically
allocate the Exam Venue to the Student to completion of the
Online Application. Student know the examination date , Time ,
Venue and Section Immediately, this will reduce the task of
student start looking for their venue on the examination day.
6. In addition is all the Functionalities of the Present in a more
standard form.
7. Also for those Post UTME candidate, Details of each applicant
are uploaded to the main database of the school before they
apply. In order to reduce irregular candidate using fake UTME
Application Number(Invalid Jamb No)
24
3.5 SYSTEM DESIGN
The system design model is a logical representation which
abstracts the features of a real system. It involves the design and the use
of models to predict the characteristics of any system. It is particularly
valuable when the designed system or prototype is large and complex.
If a model is properly designed the result obtained from it may be use
within a high degree of confidence in predicting the performance of the
prototype. Models are widely used in the design of engineering
systems.
3.5.1 CONTROL CENTRE
Student Login: the student login is segmented into two sections viz.
o Fresh students’ login: these take students through the process of
registration
o Returning students login: this module authenticate students by
allowing them check their results, Payment of School Fees,
Hostel Accommodation, Course Registration e. t. c.
25
Staff Login: this module authenticate staff to use the portal either to
enter scores process result etc.
Update Assessments: this module is used by each lecturer to enter
student’s scores.
Process Results: this module is done automatically on request for
result checker.
View Result: this view result page allows students to see their
performance (result) at the end of a semester or a session. The
HOD can also print the view master result to view and print the
master sheet of students in his/her department.
3.6 OBJECTIVES OF THE DESIGN
The objectives of this project are to be able to demonstrate a
model for the implantation of a University portal that solve the needs of
the student and staff and also allows Student to access their result
online, Secure Accommodation, Pay School Fees Online, Course
Registration e.t.c
26
3.7 DATABASE SPECIFICATION
The database management system used for the website is
Microsoft SQL server 2005 enterprise edition. The database was used
to create the tables such as tblStudentInfo, tblHostelAllocation,
Imports Microsoft.VisualBasicImports System.Data.SqlClientPublic Class Applicants Public surname As String Public othername As String Public sex As String Public DOB As String Public ContactAddress As String Public Email As String Public PhoneNo As String Public Nationality As String Public StateofOrigin As String Public LGA As String Public PermanentAddress As String Public UmeSubject1 As String Public UmeSubject2 As String Public UmeSubject3 As String Public UmeSubject4 As String Public UmeScore1 As String Public UmeScore2 As String Public UmeScore3 As String Public UmeScore4 As String Public AcademicSession As String Public Discpline As String Public HomeTown As String Public jambNoValid As Boolean = False Public ExamOk As Boolean = False Public ExamSeatNo As String Public ExamDate As String Public ExamVenue As String Public ExamTime As String Public DateApp As String Public JambAppNo As String
Public Sub NewApplicantExamDetails(ByVal appNo As String, ByVal SeatNo As String, ByVal ExamVenueID As String) Dim getconnections As New DatabaseConnections getconnections.ConnectDatabase() Dim cmd As New SqlCommand cmd.Connection = getconnections.cn cmd.CommandText = "Insert into tblApplicantExamInfo(AppNo,SeatNo,ExamVenueID) values('" & appNo & "','" & SeatNo & "','" & ExamVenueID & "')" cmd.ExecuteNonQuery() End Sub Public Sub OthersNewApplicant(ByVal appNo As String, ByVal surname As String, ByVal Othername As String, ByVal sex As String, ByVal DOB As String, ByVal ContactAddress As String, ByVal Email As String, ByVal PhoneNo As String, ByVal Nationality As String, ByVal State As String, ByVal LGA As String, ByVal HomeTown As String, ByVal PermanentAddress As String, ByVal Fcourse As String, ByVal Scoures As String, ByVal DateSubmitted As String, ByVal Session As String, ByVal AppType As String) Dim getconnections As New DatabaseConnections getconnections.ConnectDatabase() Dim cmd As New SqlCommand cmd.Connection = getconnections.cn cmd.CommandText = "Insert into tblOtherApplicants(AppNo,Surname,Othername,Sex,DOB,ContactAddress,Email,PhoneNo,Nati
64
onality,StateofOrigin,LGA,HomeTown,PermanentAddress,FirstCourse,SecondCourse,DateSubmitted,AcademicSession,ApplicationType) values('" & appNo & "','" & surname & "','" & Othername & "','" & sex & "','" & DOB & "','" & ContactAddress & "','" & Email & "','" & PhoneNo & "','" & Nationality & "','" & State & "','" & LGA & "','" & HomeTown & "','" & PermanentAddress & "','" & Fcourse & "','" & Scoures & "','" & DateSubmitted & "'," & Session & "','" & AppType & "' )" cmd.ExecuteNonQuery() End Sub Public Sub NewPostUTMEApplicant(ByVal JambNo As String, ByVal surname As String, ByVal Othername As String, ByVal sex As String, ByVal DOB As String, ByVal ContactAddress As String, ByVal Email As String, ByVal PhoneNo As String, ByVal Nationality As String, ByVal State As String, ByVal LGA As String, ByVal HomeTown As String, ByVal PermanentAddress As String, ByVal UmeSubject1 As String, ByVal UmeSubject2 As String, ByVal UmeSubject3 As String, ByVal UmeSubject4 As String, ByVal UmeScore1 As String, ByVal UmeScore2 As String, ByVal UmeScore3 As String, ByVal UmeScore4 As String, ByVal Fcourse As String, ByVal Scoures As String, ByVal Session As String, ByVal DateSubmitted As String, ByVal CardSerial As String, ByVal photo As String) Dim getconnections As New DatabaseConnections getconnections.ConnectDatabase() Dim cmd As New SqlCommand Dim s As String = Replace(Trim(photo), "/", "_") cmd.Connection = getconnections.cn cmd.CommandText="Insert into tblPostUmeApplicants(JambNO,Surname,Othername,Sex,DOB,ContactAddress,Email,PhoneNo,Nationality,StateofOrigin,LGA,HomeTown,PermanentAddress,UmeSubject1,UmeSubject2,UmeSubject3,UmeSubject4,UmeScore1,UmeScore2,UmeScore3,UmeScore4,FirstCourse,SecondCourse,AcademicSession,DateSubmitted,CardSerial,Photo) values('" & JambNo & "','" & surname & "','" & Othername & "','" & sex & "','" & DOB & "','" & ContactAddress & "','" & Email & "','" & PhoneNo & "','" & Nationality & "','" & State & "','" & LGA & "','" & HomeTown & "','" & PermanentAddress & "','" & UmeSubject1 & "','" & UmeSubject2 & "','" & UmeSubject3 & "','" & UmeSubject4 & "','" & UmeScore1 & "','" & UmeScore2 & "','" & UmeScore3 & "','" & UmeScore4 & "','" & Fcourse & "','" & Scoures & "','" & Session & "','" & DateSubmitted & "','" & CardSerial & "','" & s & "')" cmd.ExecuteNonQuery() End Sub Public Sub GetJambNo(ByVal cardSerial As String) Dim getconnections As New DatabaseConnections getconnections.ConnectDatabase() Dim cmd As New SqlCommand
cmd.Connection = getconnections.cn cmd.CommandText = "Select JambNo from tblPostUmeApplicants where CardSerial='" & cardSerial & "'"
JambAppNo = cmd.ExecuteScalar End Sub Public Sub ValidatePUMENo(ByVal JambNo As String) Dim getconnections As New DatabaseConnections getconnections.ConnectDatabase() Dim cmd As New SqlCommand
cmd.Connection = getconnections.cn cmd.CommandText = "Select * from tblJambDetails where JambNo='" & JambNo & "'" Dim rd As SqlDataReader rd = cmd.ExecuteReader If rd.HasRows = True Then rd.Read() jambNoValid = True surname = rd.Item("Surname") othername = rd.Item("Othername") sex = rd.Item("Sex")
65
DOB = rd.Item("DOB") ContactAddress = rd.Item("ContactAddress") Email = rd.Item("Email") PhoneNo = rd.Item("PhoneNo") StateofOrigin = rd.Item("StateofOrigin") Nationality = rd.Item("Nationality") LGA = rd.Item("LGA") HomeTown = rd.Item("HomeTown") PermanentAddress = rd.Item("PermanentAddress") UmeSubject1 = rd.Item("UmeSubject1") UmeSubject2 = rd.Item("UmeSubject2") UmeSubject3 = rd.Item("UmeSubject3") UmeSubject4 = rd.Item("UmeSubject4") AcademicSession = rd.Item("AcademicSession") UmeScore1 = rd.Item("UmeScore1") UmeScore2 = rd.Item("UmeScore2") UmeScore3 = rd.Item("UmeScore3") UmeScore4 = rd.Item("UmeScore4") rd.Close() Else jambNoValid = False End If rd.Close() End Sub Public Sub GetExamVenueInfo(ByVal FacultyCode As String, ByVal jambno As String, ByVal p As Page) Dim getconnections As New DatabaseConnections getconnections.ConnectDatabase() Dim cmd As New SqlCommand
cmd.Connection = getconnections.cn cmd.CommandText = "Select * from tblExamVenues where FacultyCode='" & Imports Microsoft.VisualBasicImports System.Data.SqlClient
Public Class DatabaseConnections Public cn As New SqlConnection Public Sub Msg(ByVal message As String, ByVal pg As Page) Dim str = "<script language=JavaScript >" str &= "alert(""" & message & """);" str &= "</script>" 'Response.Write(str) pg.RegisterStartupScript("clientscript", str) End Sub Public Sub ConnectDatabase() If cn.State = Data.ConnectionState.Open Then cn.Close() cn.ConnectionString = ConfigurationManager.ConnectionStrings("PortalConnectionString").ConnectionString cn.Open() End Sub