Vous êtes sur la page 1sur 53

DR. B. C.

ROY ENGINEERING COLLEGE,


DURGAPUR
Project on
SIM Card Registration System
In VB.net and ASP.net a part of
vocational training in Ardent Collaboratin

Designed &
Developed By
 Amit Kr.Ghosh
 Chikan Banerjee
 Imdadul Mallick
 Joyeta Sarkar
 Pawan Kumar
Submitted to:
Mr. Biswanath Gope . Date: 06.08.2008
Ardent Collaborations.

Acknowledgment

It is our to acknowledge the assistance of our Project assistor, Mrs.


Biswanath Gope, administrator of Ardent collaboration, Durgapur for the
enormous help and guidance towards the successful completion of “Sim
registration System”, the project I have undertaken. Without his
guidance, support and inspiration, the completion of this project would
have been impossible and it’s my privilege to express my deep sense of
gratitude to him.
We all together have contributed our sincere effort for the completion of
this project based on VB.net & ASP.net. Working on this project was
wonderful experience and our knowledge really enhanced on this topic.

I also wish to acknowledge my debt to Ardent collaboration, Durgapur


for providing me the infrastructure support and resources in the project
development cycle, without which the project would not have been
completed successfully within the stipulated time.

At last I am thankful to all those who are attached to this project directly
or indirectly.
Dr. B. C. Roy Engineering College,
Durgapur.

CERTIFICATE

This is to certified that, Amit Kumar Ghosh , a student of


Dr. B. C. Roy Engineering College, Durgapur, has successfully
completed a project on “SIM Card Registration System” using
ASP.net & VB.net 2003.

The entire project is original and has been designed and


developed with the honest efforts of the above mentioned
individual.

………………………
(Signature) Date:
The Supervisor
Ardent Collaborations.
Durgapur.

Dr. B. C. Roy Engineering College,


Durgapur.

CERTIFICATE

This is to certified that, Chikan Banerjee, a student of


Dr. B. C. Roy Engineering College, Durgapur, has successfully
completed a project on “SIM Card Registration System” using
ASP.net & VB.net 2003.

The entire project is original and has been designed and


developed with the honest efforts of the above mentioned
individual.

………………………
(Signature) Date:
The Supervisor
Ardent Collaborations.
Durgapur.

Dr. B. C. Roy Engineering College,


Durgapur.

CERTIFICATE

This is to certified that, Imdadul Mallick, a student of


Dr. B. C. Roy Engineering College, Durgapur, has successfully
completed a project on “SIM Card Registration System” using
ASP.net & VB.net 2003.

The entire project is original and has been designed and


developed with the honest efforts of the above mentioned
individual.

………………………
(Signature) Date:
The Supervisor
Ardent Collaborations.
Durgapur.

Dr. B. C. Roy Engineering College,


Durgapur.

CERTIFICATE

This is to certified that, Joyeta Sarkar, a student of


Dr. B. C. Roy Engineering College, Durgapur, has successfully
completed a project on “SIM Card Registration System” using
ASP.net & VB.net 2003.

The entire project is original and has been designed and


developed with the honest efforts of the above mentioned
individual.

………………………
(Signature) Date:
The Supervisor
Ardent Collaborations.
Durgapur.

Dr. B. C. Roy Engineering College,


Durgapur.

CERTIFICATE

This is to certified that, Pawan Kumar, a student of


Dr. B. C. Roy Engineering College, Durgapur, has successfully
completed a project on “SIM Card Registration System” using
ASP.net & VB.net 2003.

The entire project is original and has been designed and


developed with the honest efforts of the above mentioned
individual.
………………………
(Signature) Date:
The Supervisor
Ardent Collaborations.
Durgapur.

Contents
Sr. Topics Page no.
no.
1. Introduction. 9
2. Process Design. 10-11
3. ERD and DFD. 12-13
4. Software & Hardware Specifications. 14
5. ASP.net. 15-19
6. IIS 5.1 20-21
7. Visual Basic. 21-22
8. MS Access. 22-24
9. SIM Card Registration System. 24-25
10. CODE. 25-49
11. Bibliography. 50
12. Conclusion. 51
INTRODUCTION

“SIM Card Registration System” is a system which is


used by the user for the purpose of managing and saving
different SIM Card holders of different service providers.
This project provides very sincere way of keeping total
details of any Card holders of any service providers and
their details.
Detailed .net programming with web application has
been used to design this project. The aim or objective of
this project is to handle the all the data of card holders
as like their address, phone no., pin code, SIM serial no.,
SIM card no., E-mail address etc. by which service
provider can easily handle their customers.
Process design
CENTS

Waterfall Model: This is also called as System Development Life Cycle Model or Classic Life
Cycle Model or Linear Sequential Model or Waterfall Method. This model has the following
activities:

1) System / Information Engineering and Modeling:


As software development is large process so work begins by establishing
requirements for all system elements and then allocating some subset of these
requirements to software. The view of this system is necessary when software must
interface with other elements such as hardware, people and other resources. System
is the very essential requirement for the existence of software in any entity. In
some cases for maximum output, the system should be reengineered and spruced
up. Once the ideal system is designed according to requirement, the development
team studies the software requirement for the system.
2) Software Requirement Analysis:

Software Requirement Analysis is also known as feasibility study. In this


requirement analysis phase, the development team visits the customer and studies
their system requirement. They examine the need for possible software automation
in the given software system. After feasibility study, the development team
provides a document that holds the different specific recommendations for the
candidate system. It also consists of personnel assignments, costs of the system,
project schedule and target dates. The requirements analysis and information
gathering process is intensified and focused specially on software. To understand
what type of the programs to be built, the system analyst must study the
information
Domain for the software as well as understand required function, behavior,
performance and interfacing. The main purpose of requirement analysis phase is to
find the need and to define the problem that needs to be solved.
3) System Analysis and Design:

In System Analysis and Design phase, the whole software development process,
the overall Software structure and its outlay are defined. In case of the client/server
processing technology, the number of tiers required for the package architecture,
the database design, the data structure design etc is all defined in this phase. After
designing part a software development model is created. Analysis and Design are
very important in the whole development cycle process. Any fault in the design
phase could be very expensive to solve in the software development process. In
this phase, the logical system of the product is developed.
4) Code Generation:
In Code Generation phase, the design must be decoded into a machine-readable
form. If the design of software product is done in a detailed manner, code
generation can be achieved without much complication. For generation of code,
Programming tools like Compilers, Interpreters, and Debuggers are used. For
coding purpose different high level programming languages like C, C++, Pascal
and Java are used. The right programming language is chosen according to the type
of application.

5) Testing:

After code generation phase the software program testing begins. Different testing
methods are available to detect the bugs that were committed during the previous
phases. A number of testing tools and methods are already available for testing
purpose.

6) Maintenance:
Software will definitely go through change once when it is delivered to the
customer. There are large numbers of reasons for the change. Change could happen
due to some unpredicted input values into the system. In addition to this the
changes in the system directly have an effect on the software operations. The
software should be implemented to accommodate changes that could be happen
during the post development period.

Entity relationship diagram:


Data flow diagram for SIM Card Registration:
SOFTWARE & HARDWARE SPECIFICATION

Operating System
Windows XP (SP2)
Database Support
Microsoft Office Access 2003
Programming Language
ASP.NET, VB.NET (Microsoft Visual Studio .NET 2003)
Web Server
Microsoft IIS 5.1
Documentation
Microsoft Office Word 2003
EDGE Diagrammer – Version 5.0

Processor: Pentium IV
Ethernet Card: Windows Compatible Ethernet Card
Video Resolution: 1280 x 800, True Colors Recommended
Processor Speed: 3.0 GHz
Cache: 1MB L2 Cache
Mouse: Microsoft Mouse or Compatible Device
Modem: Internal
RAM: 512 MB DDR RAM
HDD: 80 GB
ASP.NET

ASP.NET, the next version of ASP, is a programming framework used to create


enterprise-class Web Applications. These applications are accessible on a global
basis leading to efficient information management. The advantages that ASP.NET
offers are more than just the next version of ASP.

Why ASP.NET?

Since 1995, Microsoft has been constantly working to shift its focus from
Windows-based platforms to the Internet. As a result, Microsoft introduced ASP
(Active Server Pages) in November 1996. ASP offered the efficiency of ISAPI
applications along with a new level of simplicity that made it easy to understand
and use. However, ASP script was an interpreted script and consisted unstructured
code and was difficult to debug and maintain. As the web consists of many
different technologies, software integration for Web development was complicated
and required to understand many different technologies. Also, as applications grew
bigger in size and became more complex, the number of lines of source code in
ASP applications increased dramatically and was hard to maintain. Therefore, an
architecture was needed that would allow development of Web applications in a
structured and consistent way. The .NET Framework was introduced with a vision
to create globally distributed software with Internet functionality and
Interoperability. The .NET Framework consists of many class libraries, includes
multiple language support and a common execution platform. It's a very flexible
foundation on which many different types of top class applications can be
developed that do different things. Developing Internet applications with the .NET
Framework is very easy. ASP.NET is built into this framework; we can create
ASP.NET applications using any of the built-in languages. Unlike ASP, ASP.NET
uses the Common Language Runtime (CLR) provided by the .NET Framework.
This CLR manages execution of the code we write. ASP.NET code is a compiled
CLR code instead of interpreted code (ASP). CLR also allows objects written in
different languages to interact with each other. The CLR makes development of
Web applications simple.

Advantages Using ASP.NET:


ASP.NET drastically reduces the amount of code required to build large
applications.
ASP.NET makes development simpler and easier to maintain with an event-
driven, server-side programming model.
ASP.NET pages are easy to write and maintain because the source code and
HTML are together.
The source code is executed on the server. The pages have lots of power and
flexibility by this approach.
The source code is compiled the first time the page is requested. Execution is
fast as the Web Server compiles the page the first time it is requested. The server
saves the compiled version of the page for use next time the page is requested.
The Web server continuously monitors the pages, components and applications
running on it. If it notices memory leaks, infinite loops, other illegal software or
activities, it seamlessly kills those activities and restarts itself.
ASP.NET validates information (validation controls) entered by the user
without writing a single line of code.
ASP.NET easily works with ADO .NET using data-binding and page
formatting features.

Differences between ASP.NET and Client-Side Technologies:

Client-side refers to the browser and the machine running the browser.
Server-side on the other hand refers to a Web server.

Client-Side Scripting:

JavaScript and VBScript are generally used for Client-side scripting. Client-side
scripting executes in the browser after the page is loaded. Using client-side
scripting you can add some cool features to your page. Both, HTML and the script
are together in the same file and the script is downloading as part of the page
which anyone can view. A client-side script runs only on a browser that supports
scripting and specifically the scripting language that is used. Since the script is in
the same file as the HTML and as it executes on the machine you use, the page
may take longer time to download.

Server-Side Scripting:
ASP.NET is purely server-side technology. ASP.NET code executes on the server
before it is sent to the browser. The code that is sent back to the browser is pure
HTML and not ASP.NET code. Like client-side scripting, ASP.NET code is similar
in a way that it allows you to write your code alongside HTML. Unlike client-side
scripting, ASP.NET code is executed on the server and not in the browser. The
script that you write alongside your HTML is not sent back to the browser and that
prevents others from stealing the code you developed.

ASP.NET Features:
ASP.NET is not just a simple upgrade or the latest version of ASP. ASP.NET
combines unprecedented developer productivity with performance, reliability, and
deployment. ASP.NET redesigns the whole process. It's still easy to grasp for new
comers but it provides many new ways of managing projects. Below are the
features of ASP.NET.
DESCRIPTION OF TECHNOLOGY USED
Easy Programming Model:
ASP.NET makes building real world Web applications dramatically easier.
ASP.NET server controls enable an HTML-like style of declarative programming
that let you build great pages with far less code than with classic ASP. Displaying
data, validating user input, and uploading files are all amazingly easy. Best of all,
ASP.NET pages work in all browsers including Netscape, Opera, AOL, and
Internet Explorer.

Flexible Language Options:


ASP.NET lets you leverage your current programming language skills. Unlike
classic ASP, which supports only interpreted VBScript and JScript, ASP.NET now
supports more than 25 .NET languages (built-in support for VB.NET, C#, and
JScript.NET), giving you unprecedented flexibility in your choice of language.

Great Tool Support:


You can harness the full power of ASP.NET using any text editor, even Notepad.
But Visual Studio .NET adds the productivity of Visual Basic-style development to
the Web. Now you can visually design ASP.NET Web Forms using familiar drag-
drop-double-click techniques, and enjoy full-fledged code support including
statement completion and color-coding. VS.NET also provides integrated support
for debugging and deploying ASP.NET Web applications. The Enterprise versions
of Visual Studio .NET deliver life-cycle features to help organizations plan,
analyze, design, build, test, and coordinate teams that develop ASP.NET Web
applications. These include UML class modeling, database modeling (conceptual,
logical, and physical models), testing tools (functional, performance and
capability), and enterprise frameworks and templates, all available within the
integrated Visual Studio .NET environment.

Rich Class Framework:

Application features that used to be hard to implement, or required a 3rd-party


component, can now be added in just a few lines of code using the .NET
Framework. The .NET Framework offers over 4500 classes that encapsulate rich
functionality like XML, data access, file upload, regular expressions, image
generation, performance monitoring and logging, transactions, message queuing,
SMTP mail, and much more. With Improved Performance and Scalability
ASP.NET lets you use serve more users with the same hardware.

Compiled execution:
ASP.NET is much faster than classic ASP, while preserving the "just hit save"
update model of ASP. However, no explicit compile step is required. ASP.NET will
automatically detect any changes, dynamically compile the files if needed, and
store the compiled results to reuse for subsequent requests. Dynamic compilation
ensures that your application is always up to date, and compiled execution makes it
fast. Most applications migrated from classic ASP see a 3x to 5x increase in pages
served.
Rich output caching:
ASP.NET output caching can dramatically improve the performance and
scalability of your application. When output caching is enabled on a page,
ASP.NET executes the page just once, and saves the result in memory in addition
to sending it to the user. When another user requests the same page, ASP.NET
serves the cached result from memory without re-executing the page. Output
caching is configurable, and can be used to cache individual regions or an entire
page. Output caching can dramatically improve the performance of data-driven
pages by eliminating the need to query the database on every request.

Memory Leak, Deadlock and Crash Protection:


ASP.NET automatically detects and recovers from errors like deadlocks and
memory leaks to ensure your application is always available to your users. For
example, say that your application has a small memory leak, and that after a week
the leak has tied up a significant percentage of your server's virtual memory.
ASP.NET will detect this condition, automatically start up another copy of the
ASP.NET worker process, and direct all new requests to the new process. Once the
old process has finished processing its pending requests, it is gracefully disposed
and the leaked memory is released. Automatically, without administrator
intervention or any interruption of service, ASP.NET has recovered from the error.

Easy Deployment:
ASP.NET takes the pain out of deploying server applications. "No touch"
application deployment. ASP.NET dramatically simplifies installation of your
application. With ASP.NET, you can deploy an entire application as easily as an
HTML page, just copy it to the server. No need to run regsvr32 to register any
components, and configuration settings are stored in an XML file within the
application.
Dynamic update of running application:
ASP.NET now lets you update compiled components without restarting the web
server. In the past with classic COM components, the developer would have to
restart the web server each time he deployed an update. With ASP.NET, you simply
copy the component over the existing DLL, ASP.NET will automatically detect the
change and start using the new code.

Easy Migration Path:


You don't have to migrate your existing applications to start using ASP.NET.
ASP.NET runs on IIS side-byside with classic ASP on Windows 2000 and
Windows XP platforms. Your existing ASP applications continue to be processed
by ASP.DLL, while new ASP.NET pages are processed by the new ASP.NET
engine. You can migrate application by application, or single pages. And ASP.NET
even lets you continue to use your existing classic COM business components.

INTERNET INFORMATION SERVICES 5.1


Windows XP Professional includes Internet Information Services (IIS) version 5.1,
which makes it possible for you to host your own Web site on the Internet or your
intranet. Before you can use IIS, you must install it separately after you have
installed Windows XP Professional on your computer. To add IIS, use the
Add/Remove Programs dialog box in Control Panel on your Windows XP
Professional-based computer. IIS is not available in Windows XP Home Edition.
IIS includes a broad range of administrative features for managing Web sites. With
programmatic features like Active Server Pages (ASP), you can create and deploy
scalable, flexible Web applications on the Internet or your intranet. Other features
of IIS 5.1 in Windows XP Professional include:

Microsoft Management Console (MMC) snap-in for managing IIS.


The MMC task pad considerably simplifies the administration of your Web site.
You can select the task you want to complete, and a wizard walks you through the
steps.

The use of Remote Desktop technology for managing your Web site
remotely.
The Remote Desktop technology in Windows XP Professional lets administrators
remotely administer IIS by using the MMC over a dial-up or PPTP connection.

Support for Active Server Pages.


IIS support for ASP provides an easy-to-use alternative to Common Gateway
Interface (CGI) and Internet Server Application Program Interface (ISAPI) by
letting content developers embed any scripting language or server component into
their HTML pages. ASP pages provide standards-based database connectivity and
the ability to customize content for different browsers. ASP also provides error-
handling capabilities for Web-based applications.
More extensive support for Web folders using Web Distributed Authoring
and Versioning (WebDAV).
WebDAV is an Internet standard that lets multiple people collaborate on a
document using an Internet-based shared file system.

Web Folders let users maintain a consistent look and feel between navigating
the local file system, a networked drive, and an Internet Web site.
With FrontPage Server Extensions, administrators can view and manage a Web
site in a graphical interface, so creating Web sites with the FrontPage Web site
creation and management tool is as easy as clicking a check box on a property page
for the Web site.

Administrators can use Simple Mail Transfer Protocol (SMTP) and Network
News Transport Protocol (NNTP) Services to set up intranet mail and news
services that work in conjunction with IIS. IIS 5.1 for Windows XP Professional is
designed for users developing a Web service for home or for office use. It can
service only 10 simultaneous client connections, only one Web site, and it does not
have all the features of the server versions. IIS replaces the Personal Web Service
(PWS), which was found in earlier client versions of Windows. PWS cannot be
upgraded to run with Windows XP.

VISUAL BASIC .NET

Visual Basic .NET is the next generation of Microsoft's popular Visual Basic
programming languages. Some programmers refer to the new incarnation as VB 7,
but this is incorrect. Visual Basic .NET is actually not backwards-compatible with
VB6, meaning that code written in the old version will not compile under VB.NET.
In fact, the languages are sufficiently different that many programmers consider
them independent. Visual Basic .NET is a multi-purpose computer programming
language from Microsoft that is suitable for most development needs. The
language is designed with Rapid Application Development in mind, providing
several tools to shorten development time. As a language, Visual Basic.NET has
the following traits:

Object-Oriented:
Visual Basic 6 included limited support for object-oriented design. Encapsulation
was supported with Public and Private data types in Classes, as well as special
Accessor / Mutator pairs called Properties (a feature unique to Visual Basic).
Polymorphism received crude support through the Implements keyword, which
would require that one class implement all of the methods in another, skeleton
class. Inheritance was neglected completely. As of VB.NET, all of this has
changed. As with all .NET languages, VB.NET includes full-blown support for
object-oriented concepts, including simple inheritance. Unlike most other OOP
languages, everything in VB.NET is an object, including all of the primitives
(Short, Integer, Long, String, Boolean, etc.) as well as types, events, and even
assemblies. Everything inherits from the Object base class.

Event-Driven:
All previous versions of Visual Basic were event-driven, but this feature is heavily
enhanced under the .NET framework. Events are no longer recognized because
they use a certain naming convention (ObjectName_EventName), but now are
declared with a Handles Object Name ,Event Name clause. Event handlers can also
be declared at runtime using the Add Handler command.

MICROSOFT ACCESS
Microsoft Access:
Microsoft Office Access, previously known as Microsoft Access, is a relational
database management system from Microsoft which combines the relational
Microsoft Jet Database Engine with a graphical user interface and software
development tools. It is a member of the 2007 Microsoft Office system. Access can
use data stored in Access/Jet, Microsoft SQL Server, Oracle, or any ODBC-
compliant data container. Skilled software developers and data architects use it to
develop application software. Relatively unskilled programmers and non-
programmer "power users" can use it to build simple applications. It supports some
object-oriented techniques but falls short of being a fully object-oriented
development tool. Access was also the name of a communications program from
Microsoft, meant to compete with ProComm and other programs. This proved a
failure and was dropped. Years later Microsoft reused the name for its database
software. In Microsoft Office Access 2003, you can view information on
dependencies between database objects. Viewing a list of objects that use a specific
object helps maintain a database over time and avoid errors related to missing
record sources. For example, the Quarterly Orders query in the Sales database is no
longer needed, but before deleting it, you might want to find out which other
objects in the database use the query. Then, you could either change the record
source of the dependent objects, or delete them, before deleting the Quarterly
Orders query. Viewing a complete list of dependent objects helps you save time
and minimize errors. In the SQL and query Design views of a query in both a
Microsoft Access database and Microsoft Access project, you can now change the
font and font size of the text by using the Query design font option added to the
Tables/Queries tab of the Options dialog box under the Tools menu. These settings
apply to all databases and work with the high-contrast and other accessibility
settings of your computer. In the SQL view of a query in a Microsoft Access
database, you can now get help specific to Jet SQL keywords, VBA functions, and
Access functions. Simply press F1 to bring up the help that corresponds to the text
near the cursor. You can also search the Jet SQL and VBA function reference
topics. With the enhanced XML support in Microsoft Office Access 2003, you can
specify a transform file when you import data from or export data to XML. The
transform is then applied automatically. When you import XML data, the transform
is applied to the data as soon as the data is imported, before any new table is
created or an existing one is appended to. When you export data to XML, the
transform is applied following the export operation. Often times a database
contains lookup values that are stored in another database. You can now include
these related tables when exporting. You can also include any predefined filter or
sort order for an object when exporting the object.
New look for Office:
Microsoft Office 2003 has a new look that’s open and energetic. Additionally, new
and improved task panes are available to you. New task panes include Getting
Started, Help, Search Results, and Research.

Tablet PC support:
On a Tablet PC, you can quickly provide input using your own handwriting
directly into Office documents as you would using a pen and a printout.
Additionally, you can now view task panes horizontally to help you do your work
on the Tablet PC the way you want to do your work.

Microsoft Office Online:


Microsoft Office Online is better integrated in all Microsoft Office programs so
that you can take full
advantage of what the site has to offer while you work. You can visit Microsoft
Office Online directly from within your Web browser or use the links provided in
various task panes and menus in your Office program to access articles, tips, and
clip art, templates, online training, downloads, and services to enhance how you
work with Office programs. The site is updated regularly with new content based
on direct feedback and specific requests from you and others who use Office

SIM Card Registration System

With the prevalent incidents of phone scams, it brings to mind the lobbying of
certain sectors to require SIM registration for pre-paid users. A SIM, or subscriber
identity module, for prepaid phone users are, up to now, completely anonymous
allowing phone scams go unchecked and hard to trace because of this anonymity.
While post-paid subscribers are required strict compliance to documents for
identity verification, prepaid users go unchecked. And a huge chunk of the
subscriber base of these telecom companies (Globe Telecoms, Smart
Communications & Sun Cellular) are using prepaid SIMs. With the registration
come similar benefits like that of post-paid subscribers — the ability to re-claim
your phone number in case it got lost or the SIM card is damaged. Very important
to people like me who has gathered hundreds of contacts over the years.

* Phone Number Portability allows for convenient switching between


mobile providers because subscribers need not change their
numbers and inform their contacts about it.

* No more buying of new SIMs or SIM swap promotions just to trick


people into switching providers.

* Avoid subscriber-padding. I’m sure these telecoms are just counting


the number of SIMs sold and not the actual number of people using
them.

We have done this project based on the real requirement of the system as how the
registration of any sim is being done. This project is solely based on the real
existence of the sim card registration. We gave it a web page model for it . This
gives an efficient means of registering the sim online. The code has been designed
by VB+ASP.net using the sql server and ms axcess database. The code has been
mentioned below along with the snapshots of various steps carried out the project
has been built in keeping the security and facility of all users. Media uneasy over
sim-card registration. The media fraternity has reacted with mixed feelings to the
announcement that the details of owners of all prepaid sim-cards will be registered.
The announcement was made by Botswana Telecommunications Authority (BTA)
Chief Executive Officer, Thari Pheko, at a press conference on Wednesday
morning. He said the registration
is meant to make it easy to track owners of sim-cards whenever the need arises. A
journalist at the press conference asked whether the registration was not part of
plans by state security agents to keep tabs on people. He said that given the context
of the announcement, the initiative may be abused by elements in the security
intelligence community. However Pheko replied that the initiative is normal and is
line with international practice. He asserted that the BTA is not beholden to any
institution. Sunday Standard journalist Reuben Pitse told Mmegi that he found no
problem with the system. "As somebody who is against crime, I would say this is a
good thing. The current system where somebody could buy sim-cards, use them
and discard them easily made it easy for criminals to abuse the technology. Many
criminals would ordinarily communicate through cell phones with sim-cards
specifically bought for the purpose before throwing them away," he said. However,
Media Institute of Southern Africa Director, Thapelo Ndlovu, says there is a
possibility that the system could be used by security apparatus to target people,
especially media sources, for the personal and political benefit of those in power.
He said there is no question that the reasons forwarded by Pheko are valid and
even sincere. However, he said a number of factors make the issue a cause for
concern for journalists.

Code of SIM Card registration system:

User Login Code:

Public Class WebForm1

Inherits System.Web.UI.Page

……………………………………………………………………………………………....

Web Form Designer Generated Code:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load

Session("user") = ""

End Sub

.......................................................................

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
Try

If (Me.TextBox1.Text = "" Or Me.TextBox2.Text = "") Then

Me.Label4.Text = "Fields Cannot be Blank !"

Me.TextBox1.Text = ""

Me.TextBox2.Text = ""

ElseIf (Me.TextBox1.Text.Length < 6 Or Me.TextBox2.Text.Length <


6) Then

Me.Label4.Text = "Username / Password Cannot be Less than 6


Characters !"

Me.TextBox1.Text = ""

Me.TextBox2.Text = ""

Else

Dim ds As New DataSet

Me.OleDbDataAdapter1.Fill(ds)

Dim dr() As DataRow = ds.Tables(0).Select("username='" +


Me.TextBox1.Text.Trim.ToUpper + "'and password='" +
Me.TextBox2.Text.Trim.ToUpper + "'")

If (dr.Length <> 0) Then

carry.uname = Me.TextBox1.Text.Trim.ToUpper

Session("user") = "user"

Response.Redirect("Home.aspx")

Else

Me.Label4.Text = "Invalid Username / Password !"

End If

End If

Catch ex As Exception

End Try

End Sub

End Class
.......................................................................

Module carry

Public uname As String

Public search As String

End Module

User Management Code:

Public Class UserMang


Inherits System.Web.UI.Page

.......................................................................

Web Form Designer Generated Code:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load

If (Session("user") = "") Then

Response.Redirect("Master.aspx")

End If

End Sub

.......................................................................

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click

Try

If (Me.TextBox1.Text = "" Or Me.TextBox2.Text = "") Then

Me.Label7.Text = "Fields Cannot be Blank !"

ElseIf (Me.TextBox1.Text.Length < 6 Or Me.TextBox2.Text.Length <


6) Then

Me.Label7.Text = "Username & Password Cannot be Less than 6


Characters !"

Else

Dim ds As New DataSet

Me.OleDbDataAdapter1.Fill(ds)

Dim dr As DataRow = ds.Tables(0).NewRow

dr("username") = Me.TextBox1.Text.Trim.ToUpper

dr("password") = Me.TextBox2.Text.Trim.ToUpper

ds.Tables(0).Rows.Add(dr)

Me.OleDbDataAdapter1.Update(ds)

Me.Label7.Text = "User Registration Successfully Completed"

End If

Catch ex As Exception
Finally

Me.TextBox1.Text = ""

Me.TextBox2.Text = ""

End Try

End Sub

.......................................................................

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click

Response.Redirect("Home.aspx")

End Sub

End Class

New SIM Registration Code:


Public Class NewSIMRegn

Inherits System.Web.UI.Page

......................................................................

Web Form Designer Generated Code:

Dim a As String

Dim b As Boolean

.......................................................................

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load

If (Session("user") = "") Then

Response.Redirect("Master.aspx")

End If

End Sub

.......................................................................

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button3.Click

Response.Redirect("Home.aspx")

End Sub

.......................................................................

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click

Try

a = "*[@]*[.]*"

b = Me.TextBox12.Text Like a

Me.Label17.Text = ""

Me.Label18.Text = ""

Me.Label19.Text = ""
Me.Label13.Text = ""

Me.Label16.Text = ""

Me.Label21.Text = ""

Me.Label22.Text = ""

Me.Label23.Text = ""

Me.Label24.Text = ""

Me.Label25.Text = ""

Me.Label26.Text = ""

Me.Label20.Text = ""

Me.TextBox1.Text = Me.TextBox1.Text.Trim.ToUpper

Me.TextBox2.Text = Me.TextBox2.Text.Trim.ToUpper

Me.TextBox3.Text = Me.TextBox3.Text.Trim.ToUpper

Me.TextBox4.Text = Me.TextBox4.Text.Trim.ToUpper

Me.TextBox5.Text = Me.TextBox5.Text.Trim.ToUpper

Me.TextBox6.Text = Me.TextBox6.Text.Trim.ToUpper

Me.TextBox7.Text = Me.TextBox7.Text.Trim.ToUpper

Me.TextBox8.Text = Me.TextBox8.Text.Trim.ToUpper

Me.TextBox9.Text = Me.TextBox9.Text.Trim.ToUpper

Me.TextBox10.Text = Me.TextBox10.Text.Trim.ToUpper

Me.TextBox11.Text = Me.TextBox11.Text.Trim.ToUpper

Me.TextBox12.Text = Me.TextBox12.Text.Trim.ToUpper

If (Me.TextBox1.Text.Length < 12 Or Me.TextBox1.Text.Length > 12)


Then

Me.Label17.Text = "SIM Serial No. Must be 12 Characters !"

ElseIf (Me.TextBox2.Text.Length < 12 Or Me.TextBox2.Text.Length >


12) Then

Me.Label18.Text = "SIM Card No. Must be 12 Characters !"


ElseIf (Me.TextBox3.Text.Length < 10 Or Me.TextBox3.Text.Length >
10) Then

Me.Label19.Text = "Phone Number Must be 10 Characters !"

ElseIf (Me.TextBox4.Text.Length < 1) Then

Me.Label13.Text = "Please Provide a Valid Service Provider !"

ElseIf (Me.TextBox5.Text.Length < 1) Then

Me.Label16.Text = "Please Enter Your Full Name !"

ElseIf (Me.TextBox6.Text.Length < 1) Then

Me.Label21.Text = "Please Provide a Valid Address Line 1!"

ElseIf (Me.TextBox7.Text.Length < 1) Then

Me.Label22.Text = "Please Provide a Valid Address Line 2 !"

ElseIf (Me.TextBox8.Text.Length < 1) Then

Me.Label23.Text = "Please Enter a City Name!"

ElseIf (Me.TextBox9.Text.Length < 1) Then

Me.Label24.Text = "Field Can Not Be Blank !"

ElseIf (Me.TextBox10.Text.Length < 1) Then

Me.Label25.Text = "Field Can Not Be Blank !"

ElseIf (Me.TextBox11.Text.Length < 1) Then

Me.Label26.Text = "Please Enter Valid Pin Code !"

ElseIf (b = False) Then

Me.Label20.Text = "Please Enter a Valid E-Mail Address !"

Else

Dim ds As New DataSet

Me.OleDbDataAdapter1.Fill(ds)

Dim dr As DataRow = ds.Tables("SIM_Regn").NewRow

dr("srno") = Me.TextBox1.Text.Trim.ToUpper

dr("simno") = Me.TextBox2.Text.Trim.ToUpper

dr("phno") = Me.TextBox3.Text.Trim.ToUpper

dr("ser") = Me.TextBox4.Text.Trim.ToUpper
dr("fullname") = Me.TextBox5.Text.Trim.ToUpper

dr("add1") = Me.TextBox6.Text.Trim.ToUpper

dr("add2") = Me.TextBox7.Text.Trim.ToUpper

dr("city") = Me.TextBox8.Text.Trim.ToUpper

dr("state") = Me.TextBox9.Text.Trim.ToUpper

dr("country") = Me.TextBox10.Text.Trim.ToUpper

dr("pin") = Me.TextBox11.Text.Trim.ToUpper

dr("email") = Me.TextBox12.Text.Trim.ToUpper

ds.Tables("SIM_Regn").Rows.Add(dr)

Me.OleDbDataAdapter1.Update(ds)

Me.clearform()

Response.Redirect("Home.aspx")

End If

Catch ex As Exception

End Try

End Sub

.......................................................................

Public Sub clearform()

Me.TextBox1.Text = ""

Me.TextBox2.Text = ""

Me.TextBox3.Text = ""

Me.TextBox4.Text = ""

Me.TextBox5.Text = ""

Me.TextBox6.Text = ""

Me.TextBox7.Text = ""

Me.TextBox8.Text = ""

Me.TextBox9.Text = ""

Me.TextBox10.Text = ""
Me.TextBox11.Text = ""

Me.TextBox12.Text = ""

End Sub

End Class

Edit / Update SIM Registration Code:


Public Class GridEdit1

Inherits System.Web.UI.Page

.......................................................................

Web Form Designer Generated Code:

Dim a As String

Dim b As Boolean

.......................................................................

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load

If (Session("user") = "") Then

Response.Redirect("Master.aspx")

Else

Me.Panel1.Enabled = False

End If

End Sub

.......................................................................

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click

Try

a = "*[@]*[.]*"

b = Me.TextBox12.Text Like a

Me.Label17.Text = ""

Me.Label18.Text = ""

Me.Label19.Text = ""

Me.Label16.Text = ""

Me.Label21.Text = ""
Me.Label22.Text = ""

Me.Label23.Text = ""

Me.Label24.Text = ""

Me.Label25.Text = ""

Me.Label26.Text = ""

Me.Label27.Text = ""

Me.Label20.Text = ""

Me.TextBox1.Text = Me.TextBox1.Text.Trim.ToUpper

Me.TextBox2.Text = Me.TextBox2.Text.Trim.ToUpper

Me.TextBox3.Text = Me.TextBox3.Text.Trim.ToUpper

Me.TextBox4.Text = Me.TextBox4.Text.Trim.ToUpper

Me.TextBox5.Text = Me.TextBox5.Text.Trim.ToUpper

Me.TextBox6.Text = Me.TextBox6.Text.Trim.ToUpper

Me.TextBox7.Text = Me.TextBox7.Text.Trim.ToUpper

Me.TextBox8.Text = Me.TextBox8.Text.Trim.ToUpper

Me.TextBox9.Text = Me.TextBox9.Text.Trim.ToUpper

Me.TextBox10.Text = Me.TextBox10.Text.Trim.ToUpper

Me.TextBox11.Text = Me.TextBox11.Text.Trim.ToUpper

Me.TextBox12.Text = Me.TextBox12.Text.Trim.ToUpper

If (Me.TextBox1.Text.Length < 12 Or Me.TextBox1.Text.Length > 12)


Then

Me.Label17.Text = "SIM Serial No. Must be 12 Characters !"

Me.Panel1.Enabled = True

ElseIf (Me.TextBox2.Text.Length < 12 Or Me.TextBox2.Text.Length >


12) Then

Me.Label18.Text = "SIM Card No. Must be 12 Characters !"

Me.Panel1.Enabled = True
ElseIf (Me.TextBox3.Text.Length < 10 Or Me.TextBox3.Text.Length >
10) Then

Me.Label19.Text = "Phone No. Must be 10 Digit !"

Me.Panel1.Enabled = True

ElseIf (Me.TextBox4.Text.Length < 1) Then

Me.Label16.Text = "Enter a Valid Service Provider Name !"

Me.Panel1.Enabled = True

ElseIf (Me.TextBox5.Text.Length < 1) Then

Me.Label21.Text = "Please Enter Your Full Name !"

Me.Panel1.Enabled = True

ElseIf (Me.TextBox6.Text.Length < 1) Then

Me.Label22.Text = "Please Provide a Valid Address Line 1 !"

Me.Panel1.Enabled = True

ElseIf (Me.TextBox7.Text.Length < 1) Then

Me.Label23.Text = "Please Provide a Valid Address Line 2 !"

Me.Panel1.Enabled = True

ElseIf (Me.TextBox8.Text.Length < 1) Then

Me.Label24.Text = "Field Can Not Be Blank !"

Me.Panel1.Enabled = True

ElseIf (Me.TextBox9.Text.Length < 1) Then

Me.Label25.Text = "Field Can Not Be Blank !"

Me.Panel1.Enabled = True

ElseIf (Me.TextBox10.Text.Length < 1) Then

Me.Label26.Text = "Field Can Not Be Blank !"

Me.Panel1.Enabled = True

ElseIf (Me.TextBox11.Text.Length < 1) Then

Me.Label27.Text = "Enter a Valid Pin Code !"

Me.Panel1.Enabled = True

ElseIf (b = False) Then


Me.Label20.Text = "Please Enter a Valid E-Mail Address !"

Me.Panel1.Enabled = True

Else

Dim ds As New DataSet

Me.OleDbDataAdapter2.Fill(ds)

Dim dr() As DataRow = ds.Tables(0).Select("phno = '" +


gridedit.ph.ToString + "'")

dr(0)("srno") = Me.TextBox1.Text.Trim.ToUpper

dr(0)("simno") = Me.TextBox2.Text.Trim.ToUpper

dr(0)("phno") = Me.TextBox3.Text.Trim.ToUpper

dr(0)("ser") = Me.TextBox4.Text.Trim.ToUpper

dr(0)("fullname") = Me.TextBox5.Text.Trim.ToUpper

dr(0)("add1") = Me.TextBox6.Text.Trim.ToUpper

dr(0)("add2") = Me.TextBox7.Text.Trim.ToUpper

dr(0)("city") = Me.TextBox8.Text.Trim.ToUpper

dr(0)("state") = Me.TextBox9.Text.Trim.ToUpper

dr(0)("country") = Me.TextBox10.Text.Trim.ToUpper

dr(0)("pin") = Me.TextBox11.Text.Trim.ToUpper

dr(0)("email") = Me.TextBox12.Text.Trim.ToUpper

Me.OleDbDataAdapter2.Update(ds)

Me.clearform()

Response.Redirect("ViewAll.aspx")

End If

Catch ex As Exception

End Try

End Sub

.......................................................................

Public Sub clearform()

Me.TextBox1.Text = ""
Me.TextBox2.Text = ""

Me.TextBox3.Text = ""

Me.TextBox4.Text = ""

Me.TextBox5.Text = ""

Me.TextBox6.Text = ""

Me.TextBox7.Text = ""

Me.TextBox8.Text = ""

Me.TextBox9.Text = ""

Me.TextBox10.Text = ""

Me.TextBox11.Text = ""

Me.TextBox12.Text = ""

End Sub

.......................................................................

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click

Response.Redirect("Home.aspx")

End Sub

.......................................................................

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button3.Click

Try

Dim ds As New DataSet

Me.OleDbDataAdapter1.Fill(ds)

Dim dr() As DataRow = ds.Tables(0).Select("phno = '" +


gridedit.ph.ToString + "'")

If (dr.Length <> 0) Then

Me.Panel1.Enabled = True

Me.TextBox1.Text = dr(0)("srno")

Me.TextBox2.Text = dr(0)("simno")
Me.TextBox3.Text = dr(0)("phno")

Me.TextBox4.Text = dr(0)("ser")

Me.TextBox5.Text = dr(0)("fullname")

Me.TextBox6.Text = dr(0)("add1")

Me.TextBox7.Text = dr(0)("add2")

Me.TextBox8.Text = dr(0)("city")

Me.TextBox9.Text = dr(0)("state")

Me.TextBox10.Text = dr(0)("country")

Me.TextBox11.Text = dr(0)("pin")

Me.TextBox12.Text = dr(0)("email")

End If

Catch ex As Exception

End Try

End Sub

.......................................................................

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button4.Click

Response.Redirect("ViewAll.aspx")

End Sub

End Class
Delete SIM Registration Code:
Public Class DELSIMRegn

Inherits System.Web.UI.Page

.......................................................................

Web Form Designer Generated Code:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load

If (Session("user") = "") Then

Response.Redirect("Master.aspx")

Else

Me.Panel1.Visible = False

End If

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button3.Click

Response.Redirect("Home.aspx")

End Sub

.......................................................................

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button4.Click

Try

If (Me.TextBox13.Text.Length < 1) Then

Me.Label16.Text = "Field Cannot be Blank !"

Else

Dim ds As New DataSet

Me.OleDbDataAdapter1.Fill(ds)
Dim dr() As DataRow = ds.Tables(0).Select("phno = '" +
Me.TextBox13.Text.Trim.ToUpper + "'")

If (dr.Length <> 0) Then

Me.Panel1.Visible = True

Me.Label16.Text = ""

Else

Me.Label16.Text = "SIM Information Not Found !"

End If

End If

Catch ex As Exception

End Try

End Sub

.......................................................................

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click

Try

Dim ds As New DataSet

Me.OleDbDataAdapter1.Fill(ds)

Dim dr() As DataRow = ds.Tables(0).Select("phno = '" +


Me.TextBox13.Text.Trim.ToUpper + "'")

dr(0).Delete()

Me.OleDbDataAdapter1.Update(ds)

Me.Label16.Text = "SIM Information Successfully Deleted !"

Me.TextBox13.Text = ""

Catch ex As Exception

End Try

End Sub

.......................................................................

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click
Me.Label16.Text = "SIM Information Deletion Cancelled !"

Me.TextBox13.Text = ""

End Sub

End Class

Search SIM Registration Code:

Private Sub Search_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Search.Click

Try
Dim ds1 As New DataSet

Me.OleDbDataAdapter1.Fill(ds1)

Dim dr1() As DataRow = ds1.Tables("SIM_Regn").Select("phno='" +


Me.TextBox1.Text.Trim.ToUpper + "'")

If (dr1.Length <> 0) Then

carry.search = Me.TextBox1.Text.Trim.ToUpper

Response.Redirect("EDITSIMRegn.aspx")

Else

Me.Label3.Text = "Mobile Number Doesn't Exist !"

End If

Catch ex As Exception

End Try

End Sub

End Class

.......................................................................
View all SIM Registration Code:

Public Class ViewAll

Inherits System.Web.UI.Page

.......................................................................

Web Form Designer Generated Code:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load

If (Session("user") = "") Then

Response.Redirect("Master.aspx")

Else

Me.OleDbDataAdapter1.Fill(Me.DataSet11)

Me.DataGrid1.DataBind()
End If

End Sub

.......................................................................

Private Sub DataGrid1_PageIndexChanged(ByVal source As Object, ByVal e As


System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles
DataGrid1.PageIndexChanged

Try

Me.DataGrid1.Visible = True

Me.DataGrid1.CurrentPageIndex = e.NewPageIndex

Me.OleDbDataAdapter1.Fill(Me.DataSet11)

Me.DataGrid1.DataBind()

Catch ex As Exception

End Try

End Sub

.......................................................................

Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As


System.Web.UI.WebControls.DataGridItemEventArgs) Handles
DataGrid1.ItemDataBound

Try

If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType =


ListItemType.AlternatingItem Then

e.Item.Attributes.Add("onmouseover",
"this.style.backgroundColor='#ffff66'")

e.Item.Attributes.Add("onmouseout",
"this.style.backgroundColor='white'")

Dim objButton As LinkButton

objButton = e.Item.Cells(5).Controls(0)

e.Item.Attributes.Add("onclick",
Page.GetPostBackClientHyperlink(objButton, ""))

End If

Catch ex As Exception

End Try
End Sub

.......................................................................

Private Sub DataGrid1_DeleteCommand(ByVal source As Object, ByVal e As


System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
DataGrid1.DeleteCommand

Try

Dim ds As New DataSet

Me.OleDbDataAdapter2.Fill(ds)

Dim dr() As DataRow = ds.Tables(0).Select("phno='" +


e.Item.Cells(2).Text + "'")

dr(0).Delete()

Me.OleDbDataAdapter2.Update(ds)

Me.Label1.Text = "Data Successfully Deleted !"

Me.DataSet11.Clear()

Me.OleDbSelectCommand1.CommandText = "select * from SIM_Regn"

Me.OleDbDataAdapter1.Fill(Me.DataSet11)

Me.DataGrid1.DataBind()

Catch ex As Exception

End Try

End Sub

.......................................................................

Private Sub DataGrid1_EditCommand(ByVal source As Object, ByVal e As


System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
DataGrid1.EditCommand

Try

Dim ds As New DataSet

Me.OleDbDataAdapter2.Fill(ds)

Dim dr() As DataRow = ds.Tables(0).Select("phno='" +


e.Item.Cells(2).Text + "'")

gridedit.ph = e.Item.Cells(2).Text

Response.Redirect("GridEdit.aspx")
Catch ex As Exception

End Try

End Sub

.......................................................................

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click

Response.Redirect("Home.aspx")

End Sub

.......................................................................

Private Sub DataGrid1_SelectedIndexChanged(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles DataGrid1.SelectedIndexChanged

End Sub

End Class

.......................................................................

Module gridedit

Public ph As String

End Module

.......................................................................
-: END OF CODE :-

Conclusion:

The “SIM Card Registration system” has some


drawbacks mainly due to shortage of time and
equipments to cover large portions of the project and the
part of the system not developed is also discussed in
details in this document. The project has user managing
system there is a limitations and also in the home page
there is a search key, which has also some limitations.
We have to search different customers of different
service providers by their unique phone no.
There is lots of scope of further enhancement in the
search part. This is a very small project. The report will
enable future modifiers of the software to get a clear
view of the developed software of the “SIM Card
Registration system”.

Bibliography:
1)VB.NET-Study Kit by Ardent Collaborations.

2)PROFESSIONAL and BIGINNING VB.net 2003 by


WROX
Publications.

3) www.wikipedia.com

Vous aimerez peut-être aussi