0% found this document useful (0 votes)
10 views10 pages

Ass 1

Uploaded by

K. S Saiyed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views10 pages

Ass 1

Uploaded by

K. S Saiyed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Assignment 1-1

Name : Saiyed Ahmad Kamruddin.


Roll No :27
Sem: 5th
Class: T.Y - (B.C.A)
Definition :- Create a web application to change the back-
Ground color of a penal control after selection in
dropdown list & listbox.

Protected Sub ListBox1_SelectedIndexChanged(ByVal sender As


Object, ByVal e As System.EventArgs) Handles
ListBox1.SelectedIndexChanged
If ListBox1.SelectedItem.ToString() = "Red" Then
Panel1.BackColor = Drawing.Color.Red
ElseIf ListBox1.SelectedItem.ToString() = "Green" Then
Panel1.BackColor = Drawing.Color.Green
Else
Panel1.BackColor = Drawing.Color.blue
End If
End Sub

Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As


Object, ByVal e As System.EventArgs) Handles
DropDownList1.SelectedIndexChanged
If DropDownList1.SelectedItem.ToString() = "Red" Then
Panel1.BackColor = Drawing.Color.Red
ElseIf DropDownList1.SelectedItem.ToString() = "Green"
Then
Panel1.BackColor = Drawing.Color.Green
Else
Panel1.BackColor = Drawing.Color.Pink
End If

End Sub
End Class
Output :-
Assignment 1-2
Name : Saiyed Ahmad Kamruddin .
Roll No :27
Sem: 5th
Class: T.Y - (B.C.A)
Definition :- Create web application consist two list box add
or remove item from both list box .

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


System.EventArgs) Handles Button1.Click
ListBox2.Items.Add(ListBox1.SelectedItem.ToString())
ListBox1.Items.Remove(ListBox1.SelectedItem.ToString())

End Sub

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


System.EventArgs) Handles Button2.Click
ListBox1.Items.Add(ListBox2.SelectedItem.ToString())
ListBox2.Items.Remove(ListBox2.SelectedItem.ToString())

End Sub

Output :-
Assignment 1-3
Name : Saiyed Ahmad Kamruddin.
Roll No :27
Sem: 5th
Class: T.Y - (B.C.A)
Definition :- Create web application use of hyperlink , link
button to move another page & also display image in this
other page using image control .

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


System.EventArgs) Handles LinkButton1.Click
Response.Redirect("default2.aspx")

End Sub

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


System.EventArgs) Handles Button1.Click
Response.Redirect("default2.aspx")

End Sub

Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e


As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
Response.Redirect("default2.aspx")

End Sub

Output :-
Assignment 1-4
Name : Saiyed Ahmad Kamruddin.
Roll No :27
Sem: 5th
Class: T.Y - (B.C.A)
Definition :- Create web application thak make user all
velidation control.

Assignment 1-5
Name : Saiyed Ahmad Kamruddin.
Roll No :27
Sem: 5th
Class: T.Y - (B.C.A)
Definition :- Create web application to developed collage
website consist of following page’s
1.Introduction
2.Course Detail
3.Contact Detail.

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


System.EventArgs) Handles Button1.Click
Response.Redirect("default2.aspx")

End Sub

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


System.EventArgs) Handles Button2.Click
Response.Redirect("default3.aspx")

End Sub

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


System.EventArgs) Handles Button3.Click
Response.Redirect("default4.aspx")

End Sub

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


System.EventArgs) Handles Button4.Click
Response.Redirect("default2.aspx")

End Sub

Output :-

You might also like