kk.asp.net (1)
kk.asp.net (1)
on
Leave Management System
Complete at
Lazycops
Duration
15 May 2023 – 10 July 2023
Submitted By
Kumkum Fauzdar
V Semester
Enrollment No : ECB/2021/10/20
I hereby declare that the Industrial Training Report on Leave Management System completed at
Lazycops is an authentic record of my own work as requirement of Industrial Training as a part of the V
semester syllabus during the period from 15 May 2023 – 10 July 2023 submitted at the Department of
Artificial Intelligence and Data Science, Engineering College Bikaner for the award of the degree of
B.Tech. in Artificial Intelligence and Data Science by Bikaner Technical University, Bikaner.
Kumkum Fauzdar
21EEBAD020
Date: ____________________
TABLE OF CONTENTS
Certificate
Student Declaration
1. INTRODUCTION 1
2. ASP.NET 2-4
3. SCOPE OF ASP.NET 5
5. Conclusion 28
6. References 29
1. INTRODUCTION
It is a Professional Software Development Company, we are leading and next generation technology
Company with strong business interests in Windows Applications, Web Designing, Web Development,
SEO, Web Hosting, Domain Registration, Internet Marketing and top- notch Multimedia Solution. We
concentrate on Microsoft based solutions. Beside our own software products we also provide professional
custom solutions using our enormous experience in software development and computer graphics. Among
our products are both standalone desktop applications and components for Web based solutions.
It is a Professional Web and multimedia company, we are leading and next generation technology
Company with strong business interests in Windows Applications, Web Designing, Web Development,
SEO, Web Hosting, Domain Registration, Internet Marketing and top- notch Multimedia Solution. We
concentrate on Microsoft based solutions. Beside our own software products we also provide professional
custom solutions using our enormous experience in software development and computer graphics.
Among our products are both standalone desktop applications and components for Web based solutions.
We always keep fresh to our team which help them to put their excellence in project accomplishment. Our
IT Professionals are highly experienced-educated, young & talentachievers to make the project successful
and admirable. We value our clients & customers offering satisfaction, transparency & mutual
organizational benefits.
Our ASP.NET industrial training program is designed to equip aspiring developers, IT professionals, and
students with the knowledge and expertise needed to excel in the dynamic field of web application
development. Whether you're a novice looking to kickstart your career or an experienced professional
seeking to enhance your skill set, our training program caters to individuals at every level of proficiency.
At our comapny, we understand the importance of practical learning in today's competitive job market.
That's why our ASP.NET industrial training curriculum is carefully crafted to blend theoretical concepts
with hands-on projects and real-world scenarios. Participants will have the opportunity to work on live
projects, collaborate with industry experts, and gain invaluable insights into industry best practices.
1
2. ASP.NET
ASP.NET is a part of Microsoft .Net platform. ASP.NET applications are compiled codes, written using
the extensible and re usable components or objects present in .Net framework. These codes canuse the
entire hierarchy of classes in .Net framework.
ASP.NET is used to produce interactive, data-driven web applications over the internet.It consists
ofa large number of controls such as text boxes, buttons, and labels for assembling, configuring, and
manipulating code to create HTML pages.
,NET is a software framework that is designed and developed by Microsoft. The first version of the .Net
framework was 1.0 whichcame in the year 2002. In easy words, it is a virtual machine for compiling and
executing programs written in different languages likeC#, VB.Net, etc.
It is used to develop Form-based applications, Web-based applications, and Web services. There is a
variety of programminglanguages available on the .Net platform, VB.Net and C# being themost common
ones. It is used to build applications for Windows, phones, web, etc. It provides a lot of functionalities and
also supports industry standards.
.NET Framework supports more than 60 programming languages in which 11 programming languages
are designed and developed by Microsoft. The remaining Non-Microsoft Languages are supported by
.NET Framework but not designed and developed by Microsoft.
ASP.NET web forms extend the event-driven model of interaction to the web applications. The browser
submits a web form to the web server and the server returns a full mark-up page or HTML page in
response. All client-side user activities are forwarded to the server for stateful processing. The server
processes the output of the client actions and triggers the reactions. Now, HTTP is a stateless protocol.
2
ASP.NET framework helps in storing the information regarding the state of the application, which consists
of:
•Page state
•Session state
The page state is the state of the client, i.e., the content of various input fields in the web form. The session
state is the collective information obtained from various pages the user visited and worked with, i.e., the
overall session state.
The ASP.NET runtime carries the page state to and from the server across page requests while generating
ASP.NET runtime codes, and incorporates the state of the server-side components in hidden fields. This
way, the server becomes aware of the overall application state and operates in a two-tiered connected way.
The ASP.NET component model provides various building blocks of ASP.NET pages.Basically it is an
object model, which describes:
•Server-side counterparts of almost all HTML elements or tags, such as
<form> and <input>.
•Server controls, which help in developing complex user-interface. Forexample, the Calendar control
or the Gridview control.
ASP.NET is a technology, which works on the .Net framework that contains all web-related
functionalities. The .Net framework is made of an object-oriented hierarchy. An ASP.NET web application
is made of pages. When a user requests an ASP.NET page, the IIS delegates the processing of the
page to the ASP.NET runtime system.
The ASP.NET runtime transforms the .aspx page into an instance of a class, which inherits from the base
class page of the .Net framework. Therefore, each ASP.NET page is an object and all its components i.e.,
theserver-side controls are also objects.
Visual Studio is an integrated development environment for writing, compiling, and debugging the code.
It provides a complete set of development tools for building ASP.NET web applications, web services,
desktop applications, and mobile applications. Visual Studio supports 36 different programming
languages and allows the code editor and debugger to support (to varying degrees) nearly any
programming language, provided a language-specific service exists. Built-in languages include C, C++,
C++/CLI, VB.NET, C#, F#, JavaScript, TypeScript, XML, XSLT, HTML and CSS.
2.5 MySQL
MySQL is the world's most popular open-source database. With its proven performance, reliability and
ease-of-use, MySQL has become the leading database choice for web-based applications, used by high
profile web properties including Facebook, Twitter, YouTube, Yahoo! and many more.
3
3.SCOPE OF ASP.NET
There are plenty of good reasons to use ASP.NET when developing a website or an application. High
speed,low cost, and vast language support are among the most significant benefits. ASP.NET is built into
the familiar Windows server environment, requiring less setup and configuration than other web
development platforms that must be installed and configured separately. The popularity of ASP.NET
makes online resources and skilled developers easy to find. Websites and applications built with ASP.NET
can be faster and more efficient than a website build with PHP.
Furthermore, ASP.NET offers seamless integration with other Microsoft technologies, including Azure
cloud services, Visual Studio IDE, SQL Server database management system, and Active Directory for
identity management. This integration streamlines deployment, monitoring, and maintenance tasks,
making it easier to manage the entire application lifecycle.
Additionally, ASP.NET emphasizes performance optimization and scalability, with features like native
support for caching, asynchronous programming, and load balancing. These features enable developers to
build web applications that deliver responsive user experiences, handle high traffic volumes, and scale
seamlessly as business needs evolve.
In conclusion, ASP.NET stands out as a preferred choice for web development due to its rich feature set,
extensive ecosystem, security focus, integration capabilities, and performance scalability. Whether
building small business websites, enterprise applications, or cloud-based services, ASP.NET empowers
developers to deliver robust, secure, and high-performance web solutions efficiently.
3.2.1 Advantages
3.2.2 Disadvantages
1) Costly
2) Making changes in the app
3) Documentation is not exactly up to the mark
4) Porting ASP application from one server to another is expensive.
4
4. LEAVE MANAGEMENT SYSTEM
This project is aimed at developing a web-based Leave Management Tool, which is of importance to either
an organization or a college.
It can be accessed throughout the organization or a specified Department. This system can be used to
automate the workflow of leave applications and their approvals. The periodic crediting of leave is also
automated. There are features like cancellation of leave, automatic approval of leave, report generators
etc. inthis Tool.
There are registered people in the system. Some are approvers. An approver can also be a requestor. In an
organization, it could be Managers/Business Managers/Managing Director etc. In a college, it could be
Headof the Department/Dean/Principal etc.
A Person be able to
The number of days of leave (as per the leave policy) should be automatically credited to everybody.
They also make a record of leave along with the employee details.
4.2.1 Administrator:
In this module the Administrator has the privileges to add all the Employees and register them in
theorganization.
4.2.2 Authentication:
5
This module contains all the information about the authenticated user. User without his username and
passwordcan’t enter into the login if he is only the authenticated user then he can enter to his login.
4.2.3 Employee:
This module contains the information of the Employee and how much leave is balance in their account
andhow much leave adding in their account every year and also search is done based on the employee id.
4.2.4 Leave:
This module contains complete approval and search of leave like check the status of the leave, when they
havetaken, reason of leave based on the employee id and starting and ending day of leave.
4.2.5 Dashboard:
Provide a personalized dashboard for each user displaying their leave balances, upcoming leaves, leave
history, etc.
Provide a visual representation of approved leaves, making it easy to see who is available and when.
Keep track of various types of leave balances (e.g., annual leave, sick leave, compensatory time).
Automatically accrue leave based on company policies and employee tenure.
Send email notifications for leave requests, approvals, rejections, and any other relevant events.
Implement reminders for pending leave requests or upcoming leaves.
4.2.10 Report:
This module contains all the information about the leave taken by every employee or staff of the
university ororganization based on the date of approval. It gives cumulative report of the month or year.
6
4.3.1 ADMIN:
Fig. 4.1
4.3.2 EMPLOYEE:
Fig. 4.2
7
4.3.3 LEAVE:
Fig. 4.3
4.4.1 HOME:
Fig. 4.4
8
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server" style="background-image: url('ok.jpg'); font-family: Arial;
color:#FFFFFF; font-size: 23px; font-style: inherit; font-variant: normal; font-weight: bold;">
<div style="height: 700px; width: 1440px;">
<asp:LinkButton ID="LinkButton2" runat="server" style="z-index: 1; left: 1008px; top: 24px;
position: absolute; height: 43px; width: 136px; right: 674px;" ForeColor="Black"
PostBackUrl="~/About.aspx" Font- Bold="True" Font-Names="Algerian" Font-Size="XX-
Large">ABOUT</asp:LinkButton>
<asp:LinkButton ID="LinkButton3" runat="server" style="z-index: 1; left: 1183px; top: 24px;
position: absolute; height: 43px; width: 130px;" ForeColor="Black" PostBackUrl="~/Admin.aspx"
Font- Names="Algerian" Font-Size="XX-Large" Font-Bold="True">ADMIN</asp:LinkButton>
9
4.4.2 ABOUT:
Fig. 4.5
10
<form id="form1" runat="server" style="background-image: url('bg3.png'); background-position: -
32px - 48px; font-family: Arial; color: #FFFFFF; font-size: 23px; font-style: inherit; font-variant:
normal; font- weight: bold;">
<div style="height: 700px; width: 1440px">
<asp:LinkButton ID="BACK" runat="server" BackColor="White" Font-Names="Book Antiqua"
Font- Size="X-Large" ForeColor="Black" PostBackUrl="~/Home.aspx" style="z-index: 1; left: 828px;
top: 659px;position: absolute">BACK</asp:LinkButton>
<asp:Image ID="Image1" runat="server" ImageUrl="~/form_img.jpg" style="z-index: 1; left:
53px;top: 144px; position: absolute; height: 497px; width: 438px" />
<asp:Label ID="Label1" runat="server" style="z-index: 1; left: 647px; top: 35px; position:
absolute;height: 44px; width: 159px; font-family : Verdana, Geneva, Tahoma, sans-serif; font-size
:larger" Text="ABOUT"></asp:Label>
<div style="z-index: 1; left: 563px; top: 147px; position: absolute; height: 497px; width: 706px;
font-family : Arial, Helvetica, sans-serif; font-size: large">
<p style="font-size: x-large"> This project can be accessed throughout the organization. This
systemcan be used to automate the workflow of leave applications and their approvals. The periodic
crediting of leave is also automated. There are features cancellation of leave, approval of leave,
report generators etc.
</p>
<p style="font-size: x-large">The Administrator has the privileges to check the information of the
Employee and check the status of the leave when they have taken and what type of leave they have
taken andsearch is done based on the employee and report is generated.
</p>
</div>
</div>
</form>
</body>
</html>
11
4.5.1 ADMIN:
Fig. 4.6
CODING:
Imports
MySql.Data.MySqlClient
Imports System.Data
Partial Class Admin
Inherits System.Web.UI.Page
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles
btn1.Click Dim cnn As New MySql.Data.MySqlClient.MySqlConnection()
cnn.ConnectionString = "server=localhost;database=leave;Uid=root;Pwd=4321"
Dim cmd As New MySql.Data.MySqlClient.MySqlCommand()
Dim apt As New MySql.Data.MySqlClient.MySqlDataAdapter()
Dim mydata As New DataSet
cmd.Connection = cnn
apt.SelectCommand = cmd
12
cmd.CommandText = "Select * from login where Username ='" + Usrname.Text + "' And Passcode ='"
+ Psswrd.Text + "'"
apt.Fill(mydata)
If mydata.Tables(0).Rows.Count > 0 Then
MsgBox("Login Successfully", MsgBoxStyle.Information)
Response.Redirect("AdminHome.aspx")
Else
MsgBox("Invalid Username or Password") Exit
Sub
End IfEnd Sub
End Class
Fig. 4.7
13
CODING:
4.5.3 USER:
Fig. 4.8
14
CODING:
Imports
MySql.Data.MySqlClient
Imports System.Data
Partial Class Signup1
Inherits System.Web.UI.Page
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles btn1.Click
If txtbox1.Text = "" Then MsgBox("Please enter user name") : Exit Sub
If (txtbox2.Text <> txtbox3.Text) Then
MsgBox("Re-enter Password")
Else
MsgBox("Register Successfully") End If
Dim cnn As New MySql.Data.MySqlClient.MySqlConnection()
cnn.ConnectionString = "server=localhost;database=leave;Uid=root;Pwd=4321"
cnn.Open()
Dim cmd As New MySql.Data.MySqlClient.MySqlCommand()
Dim apt As New MySql.Data.MySqlClient.MySqlDataAdapter()
cmd.CommandText = "insert into login (username,passcode) values('" + txtbox1.Text + "','"
+txtbox2.Text + "')"
cmd.Connection = cnn
cmd.ExecuteNonQuery()
cnn.Close()
End Sub
Protected Sub lnkbtn_Click(sender As Object, e As EventArgs) Handles
lnkbtn.ClickResponse.Redirect("AdminHome.aspx")
End Sub
15
End Class
4.5.4 EMPLOYEE:
Fig. 4.9
CODING:
Imports MySql.Data.MySqlClient
Imports System.Data
Partial Class Employee
Inherits System.Web.UI.Page
16
Dim com As New MySql.Data.MySqlClient.MySqlCommand()
17
Val(mydata.Tables(0).Rows.Count) > 0 Then txtbox6.Text = 1
Else
txtbox6.Text = Val(mydata.Tables(0).Rows(0).ItemArray(0)) + 1
End If
Search.Visible = FalseExit
Sub
End Sub
18
MySql.Data.MySqlClient.MySqlCommand() Dim apt As New
MySql.Data.MySqlClient.MySqlDataAdapter()
Dim mydata As New DataSet
cmd.CommandText = "Select distinct emp_id from employee"
cmd.Connection = cnn
apt.SelectCommand = cmd
apt.Fill(mydata)
Dim i As Integer
For i = 0 To Val(mydata.Tables(0).Rows.Count) - 1
Search.Items.Add(mydata.Tables(0).Rows(i).ItemArray(0).ToString())
Next cnn.Close()
End Sub
Protected Sub Search_SelectedIndexChanged(sender As Object, e As EventArgs) Handles
Search.SelectedIndexChanged
Dim cnn As New MySql.Data.MySqlClient.MySqlConnection()
cnn.ConnectionString = "server=localhost;database=leave;Uid=root;Pwd=4321"
Dim cmd As New MySql.Data.MySqlClient.MySqlCommand()
Dim apt As New MySql.Data.MySqlClient.MySqlDataAdapter()
Dim mydata As New DataSet
cmd.CommandText = "Select emp_name,Dpt,cntct_no,t_leave,leave_taken from employee
whereemp_id ='" + Search.Text + "'"
19
txtbox2.Text = mydata.Tables(0).Rows(0).ItemArray(1).ToString
txtbox3.Text = mydata.Tables(0).Rows(0).ItemArray(2).ToString
txtbox4.Text = Val(mydata.Tables(0).Rows(0).ItemArray(3)) -
Val(mydata.Tables(0).Rows(0).ItemArray(4)
)End If
End Sub
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles
Me.Loadtxtbox5.Text = 12
End SubEnd
Class
4.5.5 LEAVE:
CODING:
Fig. 4.10
20
Imports
MySql.Data.MySqlClient
Imports System.Data
Partial Class Leave
Inherits System.Web.UI.Page
Protected Sub btn1_Click(sender As Object, e As EventArgs) Handles btn1.Click
If txtbox5.Text = "" Or txtbox1.Text = "" Or txtbox2.Text = "" Or txtbox3.Text = "" Or txtbox4.Text
="" Or txtbox6.Text = "" Or txtbox7.Text = "" Or ddl1.Text = "" Or txtbox8.Text = "" Then
MsgBox("Plese enter the Field", MsgBoxStyle.Information, "Error")
End If
txtbox4.Text = DateDiff("d", Convert.ToDateTime(txtbox5.Text),
Convert.ToDateTime(txtbox6.Text)) Dim cnn As New MySql.Data.MySqlClient.MySqlConnection()
cnn.ConnectionString = "server=localhost;database=leave;Uid=root;Pwd=4321"
cnn.Open()
Dim cmd As New MySql.Data.MySqlClient.MySqlCommand()
Dim apt As New MySql.Data.MySqlClient.MySqlDataAdapter()
cmd.Connection = cnn
apt.InsertCommand = cmd
cmd.CommandText = "insert into leavetrans values('" + txtbox1.Text + "', '" + txtbox2.Text + "', '" +
txtbox3.Text + "', '" + txtbox4.Text + "','" + txtbox5.Text + "','" + txtbox6.Text + "','" + txtbox7.Text
+ "','" +ddl1.Text + "','" + txtbox8.Text + "')"
cmd.ExecuteNonQuery()
If ddl1.Text = "Approved" Then
Dim cmd1 As New MySql.Data.MySqlClient.MySqlCommand() Dim
apt1 As New MySql.Data.MySqlClient.MySqlDataAdapter()
cmd1.Connection = cnn
apt1.UpdateCommand = cmd1
cmd1.CommandText = "Update employee set leave_taken =leave_taken + " & Val(txtbox4.Text) & "
where emp_id =" & txtbox1.Text & " "
21
cmd1.ExecuteNonQuery() End If
MsgBox("Data Stored Successfully", MsgBoxStyle.Information, "Success")
txtbox1.Text = ""
txtbox2.Text = ""
txtbox3.Text = ""
txtbox4.Text = ""
txtbox5.Text = ""
txtbox6.Text = ""
txtbox7.Text = ""
txtbox8.Text = ""
Search.Visible = False
cnn.Close()
Exit Sub
End Sub
Protected Sub btn2_Click(sender As Object, e As EventArgs) Handles btn2.Click
Search.Visible = True
Dim cnn As New MySql.Data.MySqlClient.MySqlConnection()
cnn.ConnectionString = "server=localhost;database=leave;Uid=root;Pwd=4321"
cnn.Open()
Dim cmd As New MySql.Data.MySqlClient.MySqlCommand()
Dim apt As New MySql.Data.MySqlClient.MySqlDataAdapter()
Dim mydata As New DataSet
cmd.CommandText = "Select distinct emp_id from employee"
cmd.Connection = cnn
apt.SelectCommand =
22
cmdapt.Fill(mydata)
Dim i As Integer
Search.Items.Clear()
For i = 0 To Val(mydata.Tables(0).Rows.Count) - 1
Search.Items.Add(mydata.Tables(0).Rows(i).ItemArray(0).ToString())
Next cnn.Close()
End Sub
Protected Sub Search_SelectedIndexChanged(sender As Object, e As EventArgs) Handles
Search.SelectedIndexChanged
Dim cnn As New MySql.Data.MySqlClient.MySqlConnection()
cnn.ConnectionString = "server=localhost;database=leave;Uid=root;Pwd=4321"
Dim cmd As New MySql.Data.MySqlClient.MySqlCommand()
Dim apt As New MySql.Data.MySqlClient.MySqlDataAdapter()
Dim mydata As New DataSet
cmd.CommandText = "Select * from employee where emp_id ='" + Search.Text +
"'"cmd.Connection = cnn
apt.SelectCommand = cmd
apt.Fill(mydata)
If mydata.Tables(0).Rows.Count > 0 Then
txtbox1.Text = mydata.Tables(0).Rows(0).ItemArray(0).ToString
txtbox2.Text = mydata.Tables(0).Rows(0).ItemArray(1).ToString
txtbox3.Text = mydata.Tables(0).Rows(0).ItemArray(2).ToString
End If
Dim cmd1 As New MySql.Data.MySqlClient.MySqlCommand() Dim
apt1 As
23
New MySql.Data.MySqlClient.MySqlDataAdapter()
Dim mydata1 As New DataSet
cmd1.CommandText = "Select * from leavetrans where emp_id ='" + Search.Text + "'"
cmd1.Connection = cnn
apt1.SelectCommand = cmd1
apt1.Fill(mydata1)
GridView1.DataSource = mydata1.Tables(0)
GridView1.DataBind()
End Sub
Protected Sub txtbox1_TextChanged(sender As Object, e As EventArgs) Handles
txtbox1.TextChangedDim cnn As New MySql.Data.MySqlClient.MySqlConnection()
cnn.ConnectionString = "server=localhost;database=leave;Uid=root;Pwd=4321"
Dim cmd As New MySql.Data.MySqlClient.MySqlCommand()
Dim apt As New MySql.Data.MySqlClient.MySqlDataAdapter()
Dim mydata As New DataSet
cmd.CommandText = "Select * from employee where emp_id ='" + txtbox1.Text +
"'"cmd.Connection = cnn
apt.SelectCommand = cmd
apt.Fill(mydata)
If mydata.Tables(0).Rows.Count > 0 Then
txtbox2.Text = mydata.Tables(0).Rows(0).ItemArray(1).ToString
txtbox3.Text = mydata.Tables(0).Rows(0).ItemArray(2).ToString
End If
Dim cmd1 As New MySql.Data.MySqlClient.MySqlCommand()
Dim apt1 As New MySql.Data.MySqlClient.MySqlDataAdapter()
Dim mydata1 As New DataSet
cmd1.CommandText = "Select * from leavetrans where emp_id ='" + txtbox1.Text + "'"
cmd1.Connection = cnn
apt1.SelectCommand = cmd1
apt1.Fill(mydata1)
GridView1.DataSource = mydata1.Tables(0)
24
GridView1.DataBind() End
Sub
Protected Sub txtbox6_TextChanged(sender As Object, e As EventArgs) Handles
txtbox6.TextChanged txtbox4.Text = DateDiff("d", Convert.ToDateTime(txtbox5.Text),
Convert.ToDateTime(txtbox6.Text))
End Sub
Protected Sub LinkButton1_Click(sender As Object, e As EventArgs) Handles
LinkButton1.ClickResponse.Redirect("AdminHome.aspx")
End SubEnd
Class
4.5.6 REPORT:
CODINNG:
Fig. 4.11
25
Imports
MySql.Data.MySqlClientImports
System.Data
Partial Class Report
Inherits System.Web.UI.Page
Protected Sub btn_show_Click(sender As Object, e As EventArgs) Handles
btn_show.ClickDim cnn As New MySql.Data.MySqlClient.MySqlConnection()
cnn.ConnectionString = "server=localhost;database=leave;Uid=root;Pwd=4321"
Dim cmd1 As New MySql.Data.MySqlClient.MySqlCommand()
Dim apt1 As New MySql.Data.MySqlClient.MySqlDataAdapter()
Dim mydata1 As New DataSet
cmd1.CommandText = "Select A.emp_ID,
A.emp_name,A.dpt,cntct_no,T_leave,Leave_taken,(t_leave -Leave_taken) B_leave from employee A,
leavetrans B where transdate >= '" + From.Text + "' And transdate
<= '" + txtboxto.Text + "' and A.emp_id=B.emp_id"
cmd1.Connection = cnn
apt1.SelectCommand = cmd1
apt1.Fill(mydata1)
GridView1.DataSource = mydata1.Tables(0)
GridView1.DataBind()
End Sub
Protected Sub Back_Click(sender As Object, e As EventArgs) Handles
Back.ClickResponse.Redirect("AdminHome.aspx")
End SubEnd
Class
26
CONCLUSION
ASP.NET provide you with a powerful way to create programmable Web pages in C#. Web Forms are
server-based, meaning that the code runs on the server, producing HTML output that’s sent to the
browser. When users click a button in a Web Forms page, it sends the page to the server for processing—
that is, it makes a round-trip. Because of the inherently stateless nature of the Web, you need to
understand how the page and its controls maintain their values between round-trips and how you must
do the same for values you want to preserve. Web server controls provide Web Forms pages with rich,
consistent objects that you can work with using a standard event-driven model.
To access data in Web Forms, you can use datasets as you do in Windows Forms, but it’s often more
efficient to execute database commands directly. To display data in lists, you use the Repeater, Data
List,and DataGrid controls. For the Repeater and Data List controls, you define templates in which you
arrange controls and static text to specify the layout of each data item. The DataGrid control is the
richest of the WebForms data list controls; it provides you with the ability to add editing, although you
must implement some of the logic yourself.
Web Forms and ASP.NET are complex areas in their own right, and the information in this chapter has
provided only an overview of what they’re for and how they work. For more in-depth information about
WebForms, refer to the MSDN Library.
ASP.NET provides a powerful framework for building web applications, offering flexibility in language
choice, extensive libraries and tools, and support for modern architectural patterns like MVC and
MVVM. This enables developers to create a modular and maintainable codebase, making it easier to
manage complexity and facilitate collaboration among team members.
Furthermore, ASP.NET prioritizes security and offers built-in features for protecting sensitive data and
mitigating common security threats. With features like authentication middleware, authorization
policies, and input validation, organizations can ensure the confidentiality, integrity, and availability of
their leave management system.
Additionally, ASP.NET's seamless integration with other Microsoft technologies, such as Azure cloud
services and Visual Studio IDE, simplifies deployment, monitoring, and maintenance tasks. This
integration enhances the scalability and reliability of the leave management system, enabling it to handle
increasing user loads and evolving business requirements.
Overall, by choosing ASP.NET for developing a leave management system, organizations can benefit
from a robust, secure, and scalable solution that streamlines leave-related processes, enhances employee
productivity, and promotes organizational efficiency.
27
REFERENCES
1. https://docs.microsoft.com/en-us/dotnet/
2. https://github.com/dotnet
3. https://stackoverflow.com/questions/tagged/.net
4. https://www.nuget.org/
5. https://dotnet.microsoft.com/en-us/apps/aspnet
28