Dot Net Framework
A)
Design a VB.net form to pick a date from DateTimePicker Control and display
day,
month
and year in separate text boxes.
Answer :
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Label1.Text = "Year : "
& DateTimePicker1.Value.Year
Label2.Text = "Month : "
& DateTimePicker1.Value.Month
Label3.Text = "Day : "
& DateTimePicker1.Value.Day
End Sub
End Class
Output :
B)
Create a web application to insert 3 records inside the SQL database table
having
following
fields ( DeptId, DeptName, EmpName, Salary). Update the salary for any one
employee
and increment it to 15% of the present salary. Perform delete operation on
one
row of the database table.
Answer :
Output :
No comments:
Post a Comment