Sei sulla pagina 1di 20

1.

SYNOPSIS
2. INTRODUCTION
3. SYSTEM DESIGN
3.1 Hardware Requirements
3.2 Software Requirements
4. ABOUT THE SOFTWARE
4.1 ASP.NET











PERFORMANCE
ASP.NET compared to ASP Classic










Criticisms of ASP.NET

login Wizard
Development tools







4.2 Microsoft SQL Server

local area network (LAN)



• x






SQL SERVER’s BASIC COMPONENTS





Benefits of SQL







5. MODULE DESCRIPTION




Signin

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


Handles Button1.Click
Label3.Text = ""
If ((TextBox1.Text = "") Or (TextBox2.Text = "")) Then
GoTo bb

End If
Dim con As New SqlConnection("database=(local);initial
catalog=suresh;integrated security=true")
con.Open()
Dim cmd As New SqlCommand("select * from userlist", con)
Dim dr As SqlDataReader = cmd.ExecuteReader()
While (dr.Read())
If (TextBox1.Text = dr.Item(0)) Then
If (TextBox2.Text = dr.Item(1)) Then
Session("username") = TextBox1.Text
Response.Redirect("userscreen.aspx")
GoTo aa
Else
Label3.Text = "Incorrect Password"
End If
End If
End While
Label3.Text = "Incorrect user name"
bb:
Label3.Text = "Name/Password must not be empty"
aa:
End Sub

Signup

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


Handles Button1.Click
If ((TextBox1.Text = "") And (TextBox2.Text = "")) Then
Label4.Visible = True
GoTo end1
End If
Dim i As Integer
i=0
Dim con As New SqlConnection("database=(local);initial
catalog=suresh;integrated security=true")
con.Open()
Dim cmd As New SqlCommand("select * from userlist", con)
Dim dr As SqlDataReader = cmd.ExecuteReader()
Label6.Text = ""
While (dr.Read())
If (TextBox1.Text = dr.Item(0)) Then
Label6.Text = "User name already Exist"
GoTo terminate
Else
i=i+1
End If
End While
con.Close()
con.Open()
If (i <> 0) Then
Dim cmd1 As New SqlCommand("insert into userlist
(nam,pass,emailid,test,highmark,lowmark,averg) values('" & TextBox1.Text & "','" &
TextBox2.Text & "','" & TextBox4.Text & "','0','0','0','0')", con)
cmd1.ExecuteNonQuery()
End If
TextBox1.Text = ""
TextBox4.Text = ""
Session("username") = TextBox1.Text
Response.Redirect("userscreen.aspx")
end1:
terminate:
End Sub
Evalution

Try
If (RadioButtonList1.SelectedItem.Text = HiddenField1.Value) Then
Session("mark") = Session("mark") + 1
Else
Session("mark") = Session("mark") - 1
End If
If (RadioButtonList2.SelectedItem.Text = HiddenField2.Value) Then
Session("mark") = Session("mark") + 1
Else
Session("mark") = Session("mark") - 1
End If
If (RadioButtonList3.SelectedItem.Text = HiddenField3.Value) Then
Session("mark") = Session("mark") + 1
Else
Session("mark") = Session("mark") - 1
End If
If (RadioButtonList4.SelectedItem.Text = HiddenField4.Value) Then
Session("mark") = Session("mark") + 1
Else
Session("mark") = Session("mark") - 1
End If
If (RadioButtonList5.SelectedItem.Text = HiddenField5.Value) Then
Session("mark") = Session("mark") + 1
Else
Session("mark") = Session("mark") - 1
End If
Response.Redirect("Test3.aspx")
Catch
label1.text = "Please answer All Questions"
End Try
End Sub
Form Load
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Label10.Text = Session("username")
Label2.Text = Session("mark")
End Sub

Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As


System.EventArgs) Handles LinkButton1.Click
Response.Redirect("entry.aspx")
End Sub
6. SAMPLE SCREEN
5
23
7. CONCLUSION
8. BIBILIOGRAPHY

ASP.NET 2.0 BLACK BOOK,

, SQL SERVER 2000: THE COMPLETE REFERENCE,

, ASP.NET 2.0 WEBSITE PROGRAMMING: PROBLEM – DESIGN –


SOLUTION,

WEBSITES:



Potrebbero piacerti anche