Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
New Project
The first thing you do when you want to create a new application is to create a new project. This can be
done from the Start Page:
The most common applications that can be developed are:
a) Windows Form Applications
b) Console Applications
c) WCF Applications
d) ASP.NET Applications
e) SilverLight Applications
Solution Explorer
Toolbox
Properties window
Practical Lab
Design the following Student Registration form using based on the following ToolBoxes
Standard Calculator
Sta
Use TextBoox
Buttons
Width = 55
Height = 44
Font = Bold
5) Click one of numbers(1-9) s CommandButton, then insert the following code in the its event
procedure.
If status Then
TextBox1.Text &= Button1.Text
Else
TextBox1.Text = Button1.Text
status = True
End If
If status Then
If TextBox1.Text.Length >= 1 Then
TextBox1.Text = TextBox1.Text & Button0.Text
End If
End If
8) Click Dot CommandButton, then insert the following code in the its event procedure.
If status Then
If Not hasDecimal Then
If TextBox1.Text.Length >= 1 Then
If Not TextBox1.Text = "0" Then
TextBox1.Text = TextBox1.Text & Button15.Text
hasDecimal = True
End If
Else
TextBox1.Text = "0."
End If
End If
'TextBox1.Text = "0."
End If
current = CDbl(TextBox1.Text)
If current = 0 Then
MessageBox.Show("Division by Zero is Undefined.")
End If
Select Case calcFunc
Case "add"
previous = previous + current
Case "sub"
previous = previous - current
Case "mult"
previous = previous * current
Case "div"
previous = previous / current
End Select
TextBox1.Text = previous
status = False
d) Click = commandButton, then enter the following codes.
Calculation()
e) After You finish all the above codings, save and run the program
f) If there is error report during building and/or running, ask for help your instructor.
g) Leaving class before finish the lab is not allowed.
h) Completely Completed work has 5% mark values for the all group.
Design University Management System closely looks the following screen shot.
Step 1:
Labels
TextBox
es
Button
Double Click Login button, then insert codes below into login button handler sub procedure.
B) Home Page
Go to Project Add Windows Form rename as home then design as
below screen shot.
MenuStrip
In File Add Whatever you want like Department, courses, Save, Exit etc.
C) Registration Page
Desing like this
Double click save button, insert these codes.Note that declare the variables.
Rift Valley University
RAD
Lab-6 CRUD Operations
Do the following procedures
Database Creation
1) Create Ms Access Database called sis.accdb
2) Create users(ID int, username String, password str, role int) table
3) Create StudentInfo(ID int, fullname String, gender str, birthdate str,
phone str, department str, year int, program str, photo str) table
4) Create departments(ID int, name String) table
5) Insert some default values for each tables
Interface Design
Design login, home and addStudent Pages as given. (Use lab-2 Interface
if you have saved it.)
Login form
Home form
Coding
a) Double click Login button of Login page, then insert this code.
Understand that the role of this code
Assignment
Complete with same procedures for:-
1) Save button
2) Delete Button
3) Search Button
Note: When Save button is clicked, inserted data on the add student
form must be save on the database.
When Delete button is clicked, data which is saved on database with
same id of the form must be deleted. If not exist, System must inform
there is no data.
For Search Button, if id numer is inserted in (Enter ID) place, then after
Search Label is clicked, data [If exist] must be displayed on the form
from database, else inform no data exists.
Sumit Date Next Lab session. (You must submit hardcopy and
Demostrate in the lab). One Group = 4/5 members only
Rift Valley University
Computer Science Department
RAD lab-7
Installing and Configuring IIS with ASP.NET Modules
The first step in building an ASP.NET website on IIS 8 is to install IIS along with the ASP.NET
modules. Then add your ASP.NET application files to IIS. When you are done, make sure that IIS
and the ASP.NET modules are installed, and your ASP.NET application has been added to your
website.
Important
To install IIS on either Windows 7 or Windows 8, you must sign on as a member of the
Administrators group. If you prefer, you could use the Web Platform Installer (Web PI) to install
IIS and third-party applications that run on IIS. Because the Web PI installs the latest versions of
available Web Platform offerings, with just a few simple clicks you can download and install any
new tools or updates. If you support web applications written using ASP.NET 2 to 3.5, install .NET
3.5 before installing IIS and ASP.NET modules.
3. Select and open .Net framework you want [I prefered v4.0.30319], then
look for asp_regiis.exe file.