Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Other

BCA SEM-4 web application practical program

Rating
-
Sold
-
Pages
55
Uploaded on
12-02-2025
Written in
2024/2025

BCA SEM-4 web application practical program For unit-1 proper code for program 1 to 10 with definition and output

Institution
Course

Content preview

23BCA106 Web Application Development using ASP.NET – C# DSC-M-BCA-245 P




1)Create a form which takes user name in
TextBox control. On the click event of the
button, name of the user and current date &
time will be displayed on the title bar of the
web page. (Using Literal control). Also show
the use of CSS property to change the text
color of a button control using internal and
external CSS.
Source-Code :
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="pro1_1.aspx.cs" Inherits="pro1_1" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

Patel Khushi Vijaybhai

,23BCA106 Web Application Development using ASP.NET – C# DSC-M-BCA-245 P


<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Button"
onclick="Button1_Click" />
<br />
<br />
<br />
<asp:Literal ID="Literal1" runat="server"></asp:Literal>
</div>
</form>
</body>
</html>


Code-Behind :
public partial class pro1_1 : System.Web.UI.Page
{

Patel Khushi Vijaybhai

,23BCA106 Web Application Development using ASP.NET – C# DSC-M-BCA-245 P


protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
Literal1.Text = DateTime.Now.ToString("T");
}
}
Output :




2) Design a web page to take eno, empid,
ename, username, password, confirm
Patel Khushi Vijaybhai

, 23BCA106 Web Application Development using ASP.NET – C# DSC-M-BCA-245 P


password, Date of birth, gender, city, email,
mobile number, Experience years. Do
validations as below:
• All fields are compulsory
• EmpID as "EMP0001" i.e. first 3 characters "EMP" with 4
digits
• Name should contain only alphabets.
• Minimum length of password should be 8
• Birth date should be between 1985 and 2000. •
Experience years between 2 to 10.
• Email should be in valid format.
• Mobile number should of exactly 10 digits.
• City compulsory "Ahmedabad"
• Give demo of validation summary


Source-Code :
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="pro2practise.aspx.cs" Inherits="pro2practise" %>




Patel Khushi Vijaybhai

Written for

Institution

Document information

Uploaded on
February 12, 2025
Number of pages
55
Written in
2024/2025
Type
OTHER
Person
Unknown

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
khushipatel5

Get to know the seller

Seller avatar
khushipatel5 M.c amin girls school
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions