Lab Manual
Lab Manual
Aim: To create a home page for XYZ corporation using web controls
1) In the solution explorer window right click the project name(exercise1) and select
Add->Add new item->web form.
2) Give name to the web form “XYZhomepage” press ok button.
3) Enter the web form design coding in the source side. Or design the web form as given in
the design side. Add the following controls
Label1,Label2,…Label9. RadioButtonList1,Calender,imagebutton and Button1.
Design Code:
</p>
<br />
</form>
</body>
</html>
Source Code:
End Sub
Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e
As EventArgs) Handles Calender1.SelectionChanged
Dim strdate As String
strdate = FormatDateTime(Calender1.SelectedDate, DateFormat.ShortDate)
Select Case strdate
Case "13-09-2021"
lblevents.Text = strdate + "new product demonstration"
Case Else
lblevents.Text = strdate + "no event on this date"
End Select
End Sub
Output:
In this article, we will see how to create a user control for ASP.NET. A user control is a custom,
reusable control in ASP.NET, saved in a file with an extension.ascx. you can reuse the Design
as well as code in the application With the help of the user control. They cannot run on their own
and they need to stand on another platform like an aspx page. Web user controls are derived
from System.Web.UI.User Control namespace.
Source Code
Output:
Exercise 3: create a simple multiple choice questionnaire.
Procedure:
4) In the solution explorer window right click the project name(exercise1) and select
Add->Add new item->web form.
5) Give name to the web form “Questionnaire” press ok button.
Design Code:
</asp:Panel>
</div>
</form>
</body>
</html>
Source code:
Output:
Exercise 4: Develop a project give input and Retrieve output from database
Aim: To develop a project to input data through a web form to a database and retrieve the data.
Use the calendar control to input date.
Procedure:
Step 1:
Exercise 6: Check whether a given word or phrase is a palindrome using web service
Procedure:
6) In the solution explorer window right click the project name(exercise6) and select
Add->Add new item->web form.
7) Give name to the web form “Palindrome” press ok button.
</div>
</form>
</body>
</html>
Source Code
End Sub
Output:
Exercise 7: Create a Online photo gallery using Data list and Data grid control
Procedure: