You are on page 1of 69

Hospital Management System

Submitted for partial fulfillment for the award of


Bachelor of Technology
In
Information Technology
submitted by

Yogesh Kumar (ROLL NO-1903600139015)

Under the Supervision of

Ms. Prachi Yadav


Designation
Assistant Professor

GOEL INSTITUTE OF TECHNOLOGY & MANAGEMENT, LUCKNOW


Affiliated
A. P. J. ABDUL KALAM TECHNICAL UNIVERSITY, LUCKNOW, INDIA

B.Tech. (IT)

May 2022
CERTIFICATE

This is to certify that the project entitled “Hospital Management System” is a


bonafide work carried out by Yogesh Kumar (ROLL NO-1903600139015)
in partial fulfillment of the requirement for the award of Bachelor of Technology
from Goel Institute of Technology and Management, Lucknow. This project
embodies result of the original work carried out by students themselves and the
contents of the project do not form the basis for the award of any degree to the
candidate or anybody else

Under the Supervision of Head Of Department


Ms. Prachi Yadav(CSE) Mr. Ajay Kumar
Assistant Professor Information Technology

DECLARATION
We hereby declare that this submission is our own work and that, to the best of our
knowledge and belief. It contains no material previously published or written by
another person nor material which to a substantial extent has been accepted for the
award of any other degree or diploma of the university or other institute of higher
learning, except where due acknowledgement has been made in the text.

Signature:
Yogesh Kumar (ROLL NO-1903600139015)

ACKNOWLEDGEMENT

All praise is due to almighty of God which is the ultimate source of all knowledge
a part of
which the results was the tires and peace be upon all the true messenger (prophets)
sent by
him time to time all people though but the world for the guidance and success of
the
mankind, We are very much indebted to our guide Ms. Prachi Yadav (Assistant
Professor) dept.
Information Technology. Whose sincere cements, constant feedback,
constructively
suggestion and expert advice during various stages of this work helped me
immensely in
completing my dissertation work smoothly. I am also very much thankful, who
helped me
a lot in various stages of my work. I am sincerely thankful to (Head of Goel
Institute of
Technology & Management Lucknow, UP). Last but not the least we are thankful
to the
faculty members and staff of the Computer Science Department. Who have
consistently
supported us by pointing out the various shortcomings that felt plagued at various
point of
time and helped us directly or indirectly while completing the project.

Place : Lucknow Yogesh Kumar


Final Year Student
Information Technology

Session (2021-2022)

Date :May-2022

Goel Institute of Technology & Management Lucknow, UP

This is certified that ‘Yogesh Kumar ’ of B Tech (Information


Technology from Goel Institute of Technology &
Management
Lucknow, UP

Respectively have completed the project entitled ‘Hospital


Management System’ in partial fulfillment of the requirement to the
award of B Tech in Information Technology of Goel Institute of
Technology & Management, Lucknow, UP academic year 2021 –
2022 . It is a bonafide record of the candidate’s own work carried out by
him under my supervision and guidance. This work has not been
submitted earlier in any university or institute for the award of any
degree to the best of my knowledge.

I wish them all success for future endeavors.

Date:……………. Ms. Prachi Yadav (Assistant Professor)

Goel Institute of Technology & Management

Lucknow, UP

Presentation Outline
● Introduction
● Project Description
● System Requirements
● Technology Used
● Conclusion

INDEX
1. Introduction
1.1 Overview Of Organization
1.2 Existing System Description
1.3 Proposed System
1.4 Tools Used
2. System Analysis
2.1 SDLC Phases
2.1.1 Feasibility Study
2.1.2 Report Approval
2.1.3 System Analysis
2.1.4 System Design
2.1.5 Coding
2.1.6 Testing
2.1.7 Implementation
2.1.8 Maintenance
2.2 Process Description
2.3 Project Model Used
2.4 ER-Diagram
2.5 Data Flow Diagram
3. Software Requirement
Specification 3.1 Hardware
Requirement
3.2 Software Requirement
3.3 Support Maintenance
4. System Design
Approach…….

5
4.1 Top-Down Designing
4.2 Bottom-Up Designing
4.3 Following Approach
5. Low Level Design
5.1 Description of
classes and Methods
6. Data
Modeling
6.1 Lists of Tables
6.2 Structure of Tables
7. Testing
8. Input-
Output
Forms 8.1
Modularizati
on Details
8.2 User Screenshots
8.3 Admin Screenshots
9. Future Scope
10. Conclusion

Introduction
Hospital Management System is used to manage the functionality and events
in healthcare. It offers modules for new and existing doctors, maintaining
patients records appointments etc.

Super Admin can access all things inside the Hospital Management only
super admin can add any Hospital and inside any hospital there should be
added doctors, nurses and staff.

Doctors can add Nurses or other staff in the Hospital.


Existing System Description:
The existing system of INDIATIMES NEWS is to
manage the relationship with User members by storing
the user data in registers.

The existing system has the following drawbacks.

• Time Consuming
• Manual Errors
• Complexity
• Low Security
• Data Redundancy
• Portability
• No more helpful to improve business

Proposed System:
The proposed system of INDIATIMES NEWS can also be
known as the Nongovernmental Organization website, because
we will use the technology for managing the relationship with
users, like web technology. We proposed complete website
solution for the application
to create a “User Relationship Management” website. The
iterative, time bound approach adopted by us to address the
client requirements that are as follows:
SYSTEM ANALYSIS
Phases:
System Development Life Cycle (SDLC) mainly consists of
the following 7 phases which can be detailed:-
Preliminary Investigation:-
This is the first phase of the system development life cycle. In
this phase we tend to find out the needs of the client-what
exactly does the client want? Before the development of
any system the important point is to know the needs,
objectives and scope of the system
Feasibility Study:-
Feasibility study is the second step of the system development
life cycle. Things are always easy at the beginning in any
software process. In fact nothing is infeasible with
unlimited time and resources. But it is not the fact. So,
practically we have to do it with limited resources in a
restricted time margin. So for the system to be feasible,
following points we have to consider.
The feasibility study is conducted to check whether the
candidate system is feasible. The system which is selected
to be the best against the criteria is thereafter designed and
developed.
The feasibility study takes into consideration the risks
involved in the project development beforehand. Therefore
in this phase we have to do a feasibility study which tests
the website according to its work ability, impact on the
organization, ability to meet user needs and effective use of
resources. We do the feasibility study for the website to
analyze the risks, costs and benefits relating to economics,
technology and user organization. There are several types
of feasibility depending on the aspect cover. Import of
these includes.
10
Technical Feasibility:
This is an important outcome of the preliminary
investigation. It comprise of following questions:-
• Can the work of the project be one with current
equipment, existing software and available man
power resources?
• If technology is required, what are the
possibilities that it can be developed?
Economic Feasibility:
It deals with questions related to the economy. It
comprise of the following questions:-
• Are there sufficient benefits in creating the
system to make the cost acceptable?
• Are the costs of not creating the system so
great that the • project must be undertaken?
Legal Feasibility:
It deals with the question related to the legal issues. It
comprise of the following questions:- Contract
Signing.
• Software License agreement.
• Issues related to cyber laws.
• Legal issues relating to the man power contract.

Operational Feasibility:
The operational feasibility consists of the following
activity:- Will the system be useful if it is
developed & implemented? • Will there be
resistance from employees?
Social & Behavioral Feasibility:

It deals with the various issues related to the human


behavior like:- Whether the user is able to adapt to
a new change or not?
Whether the ambiance we are providing suits the user or
not? Request Approval:-
Request approval is the third phase of the system
development life cycle. Request approval is the phase in
which all the requirements which would be provided in the
system are stated. The request approval is a sort of
agreement between the client and the company which is
building this software. Both the parties should mutually
agree on the stated requirements.
System Analysis:-
System analysis is the phase following the phase of the
request approval. In this phase we tend to analyze the
overall system which we have to build. System analysis is
the crucial part in SDLC. System Design:-
System design means the designing of the system. The
System can be done in either of following two ways:-
● Logical System Design
● Physical System Design

Coding:-
Coding is the phase in which a developer codes using any
programming language. Coding constitutes only20% of the
whole project and which is easier to write. The coding
work is also done in the teams; development of the system
is usually done under the modular programming style,
which can be either top-down approach or bottom-up
approach.

Testing:-
Testing is the phase in which the system that has been
developed is tested. Testing comprises the 60%ft the
overall development of the system. Testing of the system
is important because testing techniques that can be used
for the testing of the system.
Implementation:-
Implementation process involved the installation of the
software on the user's side. Implementation process actually
depends on the type of a system & various. Opting for a
suitable conversion approach is step implementation. The
conversion processes are as follows:-
● Parallel Conversion
● Direct Conversion Approach
● Pilot Conversion Approach
● Phase In conversion Approach
Maintenance:-
Merely developing the system is not important but also
maintenance is important. The company that has built the
system provides for some time free of cost maintenance to
the client and after that period it is usually
Various stage in the System Development

Process Description:
Gantt charts are mainly used for activities. The resources
allocated to activities include staff hardware, and software.
Gantt charts (named after its developer Henry Gantt) are
useful for resource planning. A Gantt chart is a special type
of bar chart where each bar represents an activity. The bars
are drawn along a timeline. The length of each bar is
proportional to the duration of the time planned for the
corresponding activity.
Gantt chart is a project scheduling technique. Progress can
be represented easily in a Gantt chart, by coloring each
milestone when completed. The project will start in the
month of January and end after 4 months at the beginning
of April.

Project Model Used:Iterative


Enhancement Model
This model has the same phases as the waterfall model, but
with fewer restrictions. Generally the phases occur in the
same order as in the waterfall model, but they may be
conducted in several cycles. Usable products are released at
the end of each cycle, with each release providing
additional functionality. Customers and developers specify
as many requirements as possible and prepare a SRS
document. Developers and customers then prioritize these
requirements. Developers implement the specified
requirements in one more cycle of design, implementation
and test based on the defined priories.
The procedure itself consists of the initialization step, the
iteration step, and the Project Control List. The
initialization step creates a base version of the system. The
goal for this initial implementation is to create a product to
which the user can react. It should offer a sampling of the
key aspects of the problem and provide a solution that is
simple enough to understand and implement easily. To
guide the iterations process, a project control list is created
that contains a record of all tasks that need to be
performed. It includes such items as new features to be
implemented and areas of redesign of the existing solution.
The control list is constantly being revised as a result of the
analysis phase.
The iteration involves the redesign and implementation of
iteration is to be simple, straightforward, and modular,
supporting redesign at that stage or as a task added to the
project control list. The level of design detail is not dictated
by the iterative approach. In a light-weight iterative project
the code may represent the major source of documentation
of the system; however, in a critical iterative project a
Software Design Document may be used. The analysis of
an iteration is based upon user feedback, and the program
analysis facilities available. It involves analysis of the
structure,

modularity, usability, reliability. Efficiency, & achievement


of goals. The project control list is modified in light of the
analysis result Phases:
Incremental development slices the system functionality
into increments (portions).In each increment, a slice of
functionality is delivered through cross –discipline work,
from the requirements to the deployment. The unified
process groups increments/iterations into Phases: inception,
elaboration, constructions, and transition.
• Inception identifies project scope, requirements
(functional and non-functional) and risks at a
high level but in enough detail that work can be
estimated.
• Elaboration delivers a working architecture that
mitigates the top risks and fulfills the non-
functional requirements.
• Construction incrementally fills-in the
architecture with production-ready code
produced from analysis, design,
implementation, and testing of the functional
requirements.
• Transition delivers the system into the production
operating environment.

Project Description
1. Super Admin Login

2. Hospital SignUp/Login

3. Doctor SignUp/Login

4. Add or Delete Doctor

5. Doctor Dashboard

6. Add Patients and Delete Patients

7. Add Nurses or staff

System Requirements
Minimum Software/Hardware Required:-
Processor- Intel Core i3
RAM-2 GB
HDD-2 GB(For installing)
Operating System Windows 10
Microsoft Visual Studio 2019
SQL Server Management 2018
Technology Used

● Asp.Net Core
● Entity FrameWork
● HTML
● Bootstrap
● CSS
● SQL Server

● Asp.Net Core
ASP.NET Core is the open-source and cross-platform
version of ASP.NET, a popular web development
framework for building web apps on the .NET platform.

● Entity Framework
Entity Framework is an open-source ORM framework for .NET
applications supported by Microsoft. It enables developers to work
with data using objects of domain specific classes without focusing
on the underlying database tables and columns where this data is
stored. With the Entity Framework, developers can work at a
higher level of abstraction when they deal with data, and can create
and maintain data-oriented applications with less code compared
with traditional applications.

● HTML
Hypertext Markup Language, a standardized system for tagging
text files to achieve font, color, graphic, and hyperlink effects on
World Wide Web pages.

● Bootstrap
Responsive design makes it possible for a web page or app to
detect the visitor’s screen size and orientation and
automatically adapt the display accordingly; the mobile first
approach assumes that smartphones, tablets and task-specific
Mobile apps are employees' primary tools for getting work
done and addresses the requirements of those technologies in
design.

● CSS
Separation of formatting and content also makes it possible to
present the same markup page in different styles for different
rendering methods, such as on-screen, in print, by voice (via
speech-based browser or screen reader), and on Braille-based
tactile devices. CSS also has rules for alternate formatting if the
content is accessed on a mobile device.

● SQL Server
Microsoft SQL Server is a relational database management
system developed by Microsoft. As a database server, it is a
software product with the primary function of storing and
retrieving data as requested by other software applications—
which may run either on the same computer or on another
computer across a network (including the Internet).
SUPPORT AND MAINTENANCE:-
One year free support for rectifying system bugs including
front end back end will be provided. During the warranty
period Software Engineers will be responsible for
removing bugs and improving them. After one year support
can extend @ 20% of the total product deployment cost.
SYSTEM DESIGN APPROACH:-
Top-Down designing:
The top-down designing approach started with major
components of the system. It is a stepwise refinement
which starts from an abstract, in each step the design is
refined two or more create levels until we reach a level
where no - more refinements is possible or not needed.
DATA MODELING
LIST OF TABLES:
1. Tbl_Registration
2. Tbl_Login
3. Tbl_Enquiry
4. Tbl_Suggestion
5. Tbl_News
6. Tbl_News_Category
7. Tbl_Advertise
8. Tbl_Video
9. Tbl_Notification
A) Tbl_Registration
S.No. Column Name Data type Size Remark
1 Name Varchar 50

2 Gender Varchar 10

3 DOB Varchar 30

4 Mobile Varchar 30

5 Address Varchar Max

6 City Varchar 50

7 Email Varchar 50 PK(Auto Inc.)


8 Image Varchar 100

9 Pwd Varchar 50

10 Reg_Date Varchar 30

B) Tbl_Login
S.No. Column Name Data Type Data Size Remarks

1 User_Id Varchar 100 PK(Auto


Inc.)
2 Pwd varchar 50

3 Utype varchar 30

C) Tbl_Enquiry
S.No. Column Name Data Type Data Size Remarks
1 EQ_Id int PK(Auto Inc.)

2 Name varchar 100

3 Mobileno varchar 12

4 Email varchar 100

5 Message varchar MAX

6 EQ_Date varchar 30

D) Tbl_Suggestion
S.No. Column Name Data type Size Remark
1 F_Id int PK(Auto inc.)

2 Name Varchar 100

3 Mobileno Varchar 12

4 Topic Varchar 100

5 Message Varchar Max

6 F_Date Varchar 30

Column Name F) Tbl_News_Categor y


Data Type Data Size Remarks
S.No. Column Name Data Type Data Size Remarks
1 N_CId int PK(Auto Inc.)

2 News_Cat varchar 100

3 News_CatDt varchar 30

G) Tbl_Advertise
S.No. Column Name Data Type Data Size Remarks
1 A_Id int PK(Auto Inc.)

2 Pic_Name varchar 100

3 A_Link varchar 5

4 A_Date varchar 30

26
H) Tbl_Video
S.No. Column Name Data Type Data Size Remarks

1 V_Id int PK(Auto


Inc.)
2 Video_Name varchar 100

3 Video_Des varchar MAX

4 V_Date varchar 30

I) Tbl_Notification
S.No. Column Name Data Type Data Size Remarks
1 N_Id int PK(Auto Inc.)

2 Notification varchar MAX

3 N_Date varchar 30

J) Tbl_Pdf
S.No. Column Name Data Type Data Size Remarks
1 Pdf_Id int PK(Auto Inc.)

2 Pdf_Name varchar 50

3 Pdf_Des varchar MAX

4 Pdf_File varchar MAX

5 Pdf_DT varchar 30

27
Low Level Design
Description: Low Level Design creation is one of the
most important activities in the development of any
software product. The low level design document gives
the design of the actual software application. Low level
design documents are based on High Level Design
documents and will make the application very easy to
develop by the developer. An effective design document
results in very low efforts in developing a software
product.
Each project’s low level design document should provide a
complete and detailed specification of the design for the
software that will be developed in the project, including
the classes, member and non ─member functions, and
associations between classes that are involved. The low
level design document should contain a listing of the
declarations of all the classes, non─ member ─functions,
and classes member functions that will be defined during
the subsequent implementation stage, along with the
associations between those classes and any other details of
those classes (such as member variables) that are family
determined by the low level design stage. The low level
design document should also describe the classes, function
signatures, associations, and any other appropriate details,
which will be involved in testing and evaluations of the
project according to the evaluation plan defined in the
project’s requirements document.

TESTING
Testing is the integral part of any System Development
Life Cycle insufficient and applications tend to crash and
result in loss of economic and manpower investment
besides user’s dissatisfaction and downfall of reputation.

“Software Testing can be looked upon as one among many


processes an organization performs, and that provides the
last opportunity to correct any flaws in the developed
system. Software Testing includes selecting test data that
have more probability of giving errors.” The first step in
System testing is to develop the plan for all aspects of the
system. Complements, Correctness, Reliability and
Maintainability.
Software is to be tested for the best quality assurance, an
assurance that the system meets the specification and
requirement for its intended use and performance.
System Testing is the most useful practical process of
executing the program with the implicit intention of
finding errors that makes the program fail.
Type of Testing:
Black Box (Functional) Testing:
Testing against specification of system or components.
Study it by examining its inputs and related outputs. Key
is to devise inputs that have a higher likelihood of causing
outputs that reveal the presence of defects. Use experience
and knowledge of the domain to identify such test cases.
Failing this, a systematic approach may be necessary.
Equivalence partitioning is where the input to a program
falls into a number of classes e.g. positive numbers vs.
negative numbers. Programs normally behave the same
way for each member of a class. Partitions exist for both
input and output. Partitions may be discrete or overlap.
Invalid data (i.e. outside the normal partitions) is one or
more partitions that should be tested. Internal System
design is not considered in this type of testing. Tests are
based on requirements and functionality.
This type of test case design method focuses on the
functional requirements of the software, ignoring the
control structure of the

program. Black box testing attempts to find errors in the


following categories:
• Incorrect are missing functions.
• Interface errors.
• Errors in data structures or external
database access. • Performance errors.
• Initialization and termination errors.

White Box (Structural) Testing:


Testing based on knowledge of structure of components
(e.g. by looking at source code).
Advantage is that structure of code can be used to find out
how many test cases need to be performed. Knowledge of
the algorithm (examination of the code) can be used to
identify the equivalence partitions. Path testing is where
the tester aims to exercise every independent execution
path through the components. All conditional statements
tested for both true and false cases. If a unit has no control
statements, there will be up to 2n possible paths through it.
This demonstrates that it is much easier to test small
program units that large ones. Flow graphs are a pictorial
representation of the paths of control through a program
(ignoring assignments, procedure calls and I/O
statements). Use flow graphs to design test cases that
execute each path. Static tools may be used to make this
easier in programs that have a complex branching
structure. Tools supported. Dynamic program analyzers
instruments a program with additional code. Typically this
will count how many times each statement is executed. At
the end print out a report showing which statements have
and have not been executed. Problems with flow graph
derived testing:
• Data complexity could not be taken into account.

• We cannot test all paths in combination.


• It is really only possible at unit and module testing
stages because beyond that complexity is too high.
This testing is based on knowledge of the internet logic of
an application’s code. Also known as Glass Box Testing.
Internet software and code working should be known for
this type of testing. Tests are based on coverage of code
statements, branches, paths, conditions.
Unit Testing:
Unit testing concentrates on each unit of the software as
implemented in the code. This is done to check syntax and
logical errors in the program. At this stage, the test focuses
on each module individually, assuring that it functions
properly as until. In our case, we used extensive white─
box testing at the unit testing stage.
A developer and his team typically do unit testing in
parallel with coding; it includes testing each function and
procedure. Incremental Integration Testing:
Bottom up approach for testing i.e. continuous testing of
an application as new functionality is added; Application
functionality and modules should be independent enough
to test separately done by programmers or by testers.
Integration Testing:
Testing of integration modules to verify combined
functionality after integration. Modules are typically code
modules, individual applications, client and server and
distributed systems.
Functional Testing:
This type of testing ignores the internal parts and focuses
on whether the output is as per requirement or not. Black
box type testing geared to functionality requirements of an
application.

System Testing:
Entire system is tested as per the requirements. Black box
type test that is based on overall requirement
specifications covers all combined parts of a system.
End-to-End Testing:
Similar to system testing, it involves testing of a complete
application environment in a situation that mimics real-
world use, such as interacting with a database, using
network communications, or interacting with hardware,
applications, or system if appropriate.
Regression Testing:
Testing the application as a whole for the modification in
any modules or functionality. Difficult to cover all the
systems in regression testing so typically automation tools
are used for these testing types. Acceptance Testing:
Normally this type of testing is done to verify if the system
meets the customer specific requirements. Users or
customers do this testing to determine whether to accept
an application. Performance Testing: Team often used
interchangeably with “load” testing, To check whether
system meets performance requirements, User different
performance and load tools to do this.
Alpha testing:
In house virtual user environments can be created for this
type of testing. Testing is done at the end of development.
Still minor design changes may be made as a result of such
testing.
Beta Testing:
Testing typically done by end-users or others. This is final
testing before releasing the application for commercial
purpose.

Description of Classes and Methods:-


Datamanager class and Method:
using Hospital.Models.SubAdmin;
using Microsoft.EntityFrameworkCore;
using System;
using Hospital.Data;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Hospital.Models.AccountViewModels;
using Hospital.Models;
using Hospital.Models.CommonModels;

namespace Hospital.Models
{
public class HMSContext : IdentityDbContext<ApplicationUser>
{
public HMSContext(DbContextOptions<HMSContext> options) : base(options)
{

protected override void OnModelCreating(ModelBuilder builder)


{
base.OnModelCreating(builder);
}

public DbSet<PricingPacks> PricingPacks { get; set; }


public DbSet<ManageFAQ> ManageFAQ { get; set; }
public DbSet<AppFeatures> AppFeatures { get; set; }
public DbSet<Patients> Patients { get; set; }
public DbSet<Doctor> Doctor { get; set; }
public DbSet<Appointments> Appointments { get; set; }
public DbSet<Allotment> Allotments { get; set; }
public DbSet<Schedule> Schedules { get; set; }
public DbSet<Department> Departments { get; set; }
public DbSet<Nurse> Nurses { get; set; }
public DbSet<ApplicationUser> ApplicationUser { get; set; }
public DbSet<Hospital.Models.Contactus> Contactus { get; set; }
public DbSet<CountryMaster> CountryMasters { get; set; }
public DbSet<StateMaster> StateMasters { get; set; }
public DbSet<CityMaster> CityMasters { get; set; }
public DbSet<Payment> Payment { get; set; }
public DbSet<StaffModel> Staff { get; set; }
public DbSet<ChatModel> ChatModels { get; set; }
public DbSet<PatientPrescription> PatientPrescriptions { get; set; }
public DbSet<PrescribedMedicin> PrescribedMedicin { get; set; }
public DbSet<PrescribedDiagnosis> PrescribedDiagnosis { get; set; }
public DbSet<DiseaseMaster> DiseaseMasters { get; set; }
public DbSet<PurchasePlans> PurchasePlans { get; set; }
public DbSet<ChatMessages> ChatMessages { get; set; }
public DbSet<PatientDocuments> PatientDocuments { get; set; }
public DbSet<PatientCaseStudy> PatientCaseStudy { get; set; }
}
}

Email Sender.cs
using Microsoft.AspNetCore.Identity.UI.Services;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Mail;
using System.Text;
using System.Threading.Tasks;

namespace Services
{
public class EmailSender : IEmailSender
{
private readonly IConfiguration _configuration;
public EmailSender(IConfiguration configuration)
{
_configuration = configuration;
}

public async Task SendEmailAsync(string email, string subject, string message)


{
await Execute(subject, message, email);
}

public async Task Execute(string subject, string message, string email)


{
var senderEmail = new MailAddress(_configuration.GetSection("AppSettings")
["EmailUsername"], _configuration.GetSection("AppSettings")["EmailSenderDisplayName"]);
var receiverEmail = new MailAddress(email, "Index Support");
var password = _configuration.GetSection("AppSettings")["EmailPassword"];
var sub = subject;
var body = message;
var smtp = new SmtpClient
{
Host = _configuration.GetSection("AppSettings")["EmailSMTP"],
Port = Convert.ToInt32(_configuration.GetSection("AppSettings")["EmailPort"]),
EnableSsl =Convert.ToBoolean(Convert.ToInt32(_configuration.GetSection("AppSettings")
["EmailEnableSSL"])),
DeliveryMethod = SmtpDeliveryMethod.Network,
UseDefaultCredentials = false,
Credentials = new NetworkCredential(senderEmail.Address, password)
};
using (var mess = new MailMessage(senderEmail, receiverEmail)
{
Subject = subject,
Body = body,
IsBodyHtml = true
})
{
await smtp.SendMailAsync(mess);
}
}
}

Login/SignUp Or Index
Page
Super Admin Dashboard
Add Doctor
Doctor Information

Nurses Details

Appointments
Hospital Dashboard

Doctor Dashboard
Forgot Password

Departments
Hospital Admin Dashboard

Super Admin Dashboard


Online Url : http://38.17.52.106:1919/

Home/Index
@using System.Collections.Generic

@using System.Linq

@using Microsoft.AspNetCore.Http

@using Microsoft.AspNetCore.Identity

@using Hospital.Models

@model Hospital.Models.AccountViewModels.LoginViewModel

@inject SignInManager<ApplicationUser> SignInManager


@{

ViewData["Title"] = "Home Page";

<style>

.about-img {

width: 100%;

.icon_img {

height: 50.94px;

.servis {

width: 285px;

text-align: center;

box-shadow: 0px 0px 5px 5px;

background-color: aqua;

float: left;

margin: 20px;

.head {

height: 50px;

background-color: beige;

font-size: 35px;

}
.desc {

height: auto;

font-size: 20px;

.price {

background-color: azure;

/*plans tiles*/

.block.block-bordered {

border: 1px solid #e6ebf4;

box-shadow: 0px 0px 5px 1px;

.block-header {

font-weight: bold;

flex-direction: row;

justify-content: space-between;

align-items: center;

padding: .75rem 1.25rem;

transition: opacity .25s ease-out;

.bg-body-light {

background-color: #f9fafc !important;


padding-bottom: 20px;

.block-content {

transition: opacity .25s ease-out;

width: 100%;

margin: 0 auto;

padding: 1.25rem 1.25rem 1px;

overflow-x: visible;

.bg-body-light {

background-color: #f9fafc;

padding-bottom: 20px;

.btn-hero-secondary.disabled, .btn-hero-secondary:disabled {

color: #fff;

background-color: #111;

.btn.disabled, .btn:disabled {

opacity: .65;

.btn {

display: inline-block;
font-weight: 400;

text-align: center;

white-space: nowrap;

vertical-align: middle;

-webkit-user-select: none;

-moz-user-select: none;

-ms-user-select: none;

user-select: none;

border: 1px solid transparent;

padding: .375rem .75rem;

font-size: 1rem;

line-height: 1.5;

border-radius: .25rem;

transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s


ease-in-out;

.text-center {

text-align: center !important;

.col-md-6 {

width: 50%

.col-md-4 {
width: 33.33%;

float: left;

.col-md-6 {

width: 50%;

float: left;

.block-header h3 {

text-align: center !important;

.btn_plan_box {

background-color: #086972 !important;

color: white;

.btn_plan_box a {

color: white;

.btn_plan_box .btn-price {

display: inline-block !important;

padding: 10px 30px !important;

font-weight: 300 !important;

text-decoration: none !important;


border-radius: 100px !important;

-webkit-transition: background-color 0.4s, border 0.4s, color 0.4s !important;

.content_block {

padding: 20px !important;

.about-content p {

text-align: center;

.location_content {

padding: 30px;

.city_block {

width: 100%;

padding: 20px;

.mobile_row {

display: none;

@@media(max-width:768px) {

.col-xs-12, .col-sm-12, .col-md-6, .col-lg-6, .col-xl-6 {


float: none !important;

.col-xs-12, .col-sm-12, .col-md-4, .col-lg-4, .col-xl-4 {

width: 100px !important;

float: none !important;

.service-box {

width: 100% !important;

.desktop_row {

display: none !important;

.mobile_row {

display: block;

.service_row {

padding: 40px 0px 0px 0px;

</style>

<body id="registerAlert" style="overflow:hidden;">

<script>
document.getElementById("registerAlert").onload = function () { myFunction() };

function myFunction() {

toastr.success('Registered successfully. please login..!');

</script>

<header id="Home">

@Html.Partial("_HeaderPartial")

<div class="hero-text-box">

<h1 data-aos="fade-up" data-aos-offset="300"

data-aos-easing="ease-in-sine">

Hospital Management<br> System.

</h1>

<br>

<a class="btn btn-ghost js-scroll-to-start" data-aos="fade-up" href="#">Show Me More</a>

</div>

</header>

<!--about us block-->

@*<section class="section-steps" style="padding-bottom: 70px;">

<div class="row">

<h2>About Us — Our Vision</h2>

</div>

<div class="row">

<div class="col span-1-of-2 step-box aos-init aos-animate" data-aos="fade-right">


<center>

<img src="~/assets/img/PC-Chart.jpg" alt="Omnifood app on iphone" class="about-img js-wp-2 animated


fadeInUp">

</center>

</div>

<div class="col span-1-of-2 step-box aos-init" data-aos="fade-left">

<div class="works-step">

<div>1</div>

<p>Hopital Management System (HMS) is open to all patients every day and provides fundamental
medical care and cutting-edge medicine.</p>

</div>

<div class="works-step">

<div>2</div>

<p>We use our academic knowledge to treat a wide range of health issues, taking a personal touch and
utilizing highly specialized and up-to-date research.</p>

</div>

<div class="works-step">

<div>3</div>

<p>

We will innovate and define the future of health care for generations

and will be the consumer's first choice for health care.

</p>

</div>

</div>

</div>

</section>*@

<!--about us block-->

<!--six blocks with services-->


<section class="section-cities service_row" id="services">

<div class="row">

<h2>Our Services</h2>

</div>

<div class="row js-wp-3">

<div class="service-box col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 center-block" data-aos="fade-left">

<center><img src="~/assets/img/ambulance.png" class="img-responsive icon_img" /></center>

<div class="content_block">

<h3 class="text-center heading-1">Ambulance</h3>

<div class="about-content">

<p> Ambulance Services provides 24 hours ambulance service Lucknow to critically injured individuals.
Our ambulances provide emergency and medical transportation support.Ambulance Services support patients across
World. </p>

</div>

</div>

</div>

<div class="service-box col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 center-block" data-aos="fade-up">

<center><img src="~/assets/img/ortho.png" class="img-responsive icon_img" /></center>

<div class="content_block">

<h3 class="text-center heading-1">Orthopedics</h3>

<div class="about-content">

<p>Our Hospitals offers key & best orthopedic surgeries and procedures in India. We perform bone and
joint replacement surgeries which include the most current Arthroscopic and Reconstructive techniques. </p>

</div>

</div>

</div>

<div class="service-box col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 center-block" data-aos="fade-right">

<center><img src="~/assets/img/cancer.png" class="img-responsive icon_img" /></center>


<div class="content_block">

<h3 class="text-center heading-1">Cancer Centre</h3>

<div class="about-content">

<p>Our Hospitals provides comprehensive cancer care with best treatment facilities in India. Our expert
team of oncologists examines every case jointly and decides on the best line of cancer treatment for the patient.</p>

</div>

</div>

</div>

</div>

<div class="row js-wp-3">

<div class="service-box col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 center-block" data-aos="fade-left">

<center><img src="~/assets/img/brain.png" class="img-responsive icon_img" /></center>

<div class="content_block">

<h3 class="text-center heading-1">Neurosciences</h3>

<div class="about-content">

<p>The department of neurosurgery at our hospitals in India is well equipped to treat all the neurological
diseases including stroke, headache, epilepsy, coma, neuropathies, multiple sclerosis, myopathies, Parkinson’s disease,
Myasthenia Gravis and many more.</p>

</div>

</div>

</div>

<div class="service-box col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 center-block" data-aos="fade-up">

<center><img src="~/assets/img/gast.png" class="img-responsive icon_img" /></center>

<div class="content_block">

<h3 class="text-center heading-1">Gastroenterology</h3>

<div class="about-content">

<p>Gastroenterology essentially addresses diseases of the esophagus, stomach, small intestine, colon and
rectum, pancreas, gallbladder, bile ducts and liver. The Gastrointestinal surgeons manage major treatments related to
gastrointestinal surgical problems of the intestines.</p>
</div>

</div>

</div>

<div class="service-box col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 center-block" data-aos="fade-right">

<center><img src="~/assets/img/kidney.png" class="img-responsive icon_img" /></center>

<div class="content_block">

<h3 class="text-center heading-1">Transplant</h3>

<div class="about-content">

<p>The Pc Chart Institutes of Transplant program is one of the world’s largest and most comprehensive
solid multi-organ transplantation in India.An eminent pool of internationally renowned Transplant Surgeons,
Nephrologists, Gastroenterologists ,Surgeons.</p>

</div>

</div>

</div>

</div>

</section>

<!--six block with services-->

<section class="section-cities service_row" id="cities">

<div class="row">

<h2>We're currently in these cities</h2>

<div class="location-box col-md-6" data-aos="fade-left">

<div class="img-block">

<img src="~/assets/img/place-1.jpg" class="img-responsive city_block" />


</div>

</div>

<div class="location-box col-md-6" data-aos="fade-right">

<div class="content-block">

<p class="location_content">

<h3 class="heading-1">LAHORE</h3>

Our Orthopedicians trained at the top centres worldwide, bring with them the latest and best techniques
and work in our facilities that have the latest cutting edge technology in terms of equipments, operating rooms, recovery
areas and advanced Physical therapy facilities.

We have dedicated & well equipped Orthopedic surgery complexes with laminar flow & various modern
equipment like image intensifier, operating microscope, computer navigation system, top of the line arthroscopy system
etc.

</p>

</div>

</div>

</div>

<div class="row desktop_row">

<div class="location-box col-md-6" data-aos="fade-left">

<div class="content-block">

<p class="location_content">

<h3 class="heading-1">GUJRANWALA</h3>

Our Orthopedicians trained at the top centres worldwide, bring with them the latest and best techniques
and work in our facilities that have the latest cutting edge technology in terms of equipments, operating rooms, recovery
areas and advanced Physical therapy facilities.

We have dedicated & well equipped Orthopedic surgery complexes with laminar flow & various modern
equipment like image intensifier, operating microscope, computer navigation system, top of the line arthroscopy system
etc.

</p>

</div>
</div>

<div class="location-box col-md-6" data-aos="fade-right">

<div class="img-block">

<img src="~/assets/img/place-2.jpg" class="img-responsive city_block" />

</div>

</div>

</div>

<div class="row mobile_row">

<div class="location-box col-md-6" data-aos="fade-left">

<div class="img-block">

<img src="~/assets/img/place-2.jpg" class="img-responsive city_block" />

</div>

</div>

<div class="location-box col-md-6" data-aos="fade-right">

<div class="content-block">

<p class="location_content">

<h3 class="heading-1">GUJRANWALA</h3>

Our Orthopedicians trained at the top centres worldwide, bring with them the latest and best techniques
and work in our facilities that have the latest cutting edge technology in terms of equipments, operating rooms, recovery
areas and advanced Physical therapy facilities.

We have dedicated & well equipped Orthopedic surgery complexes with laminar flow & various modern
equipment like image intensifier, operating microscope, computer navigation system, top of the line arthroscopy system
etc.

</p>

</div>

</div>

</div>
<div class="row">

<div class="location-box col-md-6" data-aos="fade-left">

<div class="img-block">

<img src="~/assets/img/place-3.jpg" class="img-responsive city_block" />

</div>

</div>

<div class="location-box col-md-6" data-aos="fade-right">

<div class="content-block">

<p class="location_content">

<h3 class="heading-1">FAISLABAD</h3>

Our Orthopedicians trained at the top centres worldwide, bring with them the latest and best techniques
and work in our facilities that have the latest cutting edge technology in terms of equipments, operating rooms, recovery
areas and advanced Physical therapy facilities.

We have dedicated & well equipped Orthopedic surgery complexes with laminar flow & various modern
equipment like image intensifier, operating microscope, computer navigation system, top of the line arthroscopy system
etc.

</p>

</div>

</div>

</div>

</section>

<section class="section-testimonials" id="reviews">

<div class="row">

<h2>Our patients can't live without us</h2>

</div>

<div class="row">

<div class="col span-1-of-3 blockquote_section" data-aos="fade-right">


<blockquote>HMS is just awesome! I just launched a startup which leaves me with no time for Medicine, so
Omnifood is a life-saver. Now that I got used to it</blockquote>

<cite><img src="~/Layout/resources/img/customer-1.jpg" alt="first-customer">Alberto Duncan</cite>

</div>

<div class="col span-1-of-3 blockquote_section" data-aos="fade-up">

<blockquote>HMS is just awesome! I just launched a startup which leaves me with no time for Medicine, so
Omnifood is a life-saver. Now that I got used to it</blockquote>

<cite><img src="~/Layout/resources/img/customer-2.jpg" alt="first-customer">Joana Silva</cite>

</div>

<div class="col span-1-of-3 blockquote_section" data-aos="fade-left">

<blockquote>HMS is just awesome! I just launched a startup which leaves me with no time for Medicine, so
Omnifood is a life-saver. Now that I got used to it</blockquote>

<cite><img src="~/Layout/resources/img/customer-3.jpg" alt="first-customer">Milton Chapman</cite>

</div>

</div>

</section>

<p id="modelvalue" style="display:none;">@ViewBag.wrongLoginOpenModel</p>

@section Scripts {

@await Html.PartialAsync("_ValidationScriptsPartial")

@Html.Partial("_FooterPartial")

@*<script>

$('.signin-btn').click(function () {

$('.nav-menu').slideup('slow');
});

</script>*@

</body>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

<script>

$(document).ready(function () {

var data = document.getElementById("modelvalue").innerHTML;

if (data == "0") {

$("#id01").show();

});

</script>

ContactUs
@using Hospital.Models

@model Hospital.Models.Contactus

@{

ViewData["Title"] = "Register";

Layout = "~/Views/Shared/_Layout.cshtml";

<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">


<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>

<script>

AOS.init();

</script>

<style>

.error_msg {

font-size: smaller;

section {

padding-top: 150px !important;

/*plans tiles*/

.btn.disabled, .btn:disabled {

opacity: .65;

.btn {

display: inline-block;

font-weight: 400;

text-align: center;
white-space: nowrap;

vertical-align: middle;

-webkit-user-select: none;

-moz-user-select: none;

-ms-user-select: none;

user-select: none;

border: 1px solid transparent;

padding: .375rem .75rem;

font-size: 1rem;

line-height: 1.5;

border-radius: .25rem;

transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s


ease-in-out;

.text-center {

text-align: center !important;

.col-md-6, .col-lg-6, .col-xl-6 {

width: 50%;

float: left;
padding: 5px

.col-md-12, .col-lg-12, .col-xl-12 {

padding: 5px

.contactlist {

list-style: none;

line-height: 60px;

margin-top: 20px;

.aboutcontact {

font-size: small;

color: whitesmoke;

font-family: system-ui;

@@media(min-width:768px){

.col-md-5 {

width: 50%;
float: left;

.contat_details {

background-color: #086972;

padding: 86px;

position: relative;

left: -70px;

margin: 24px;

.contact_us_form {

padding: 65px;

.main_block {

background-color: #d8d6d6;

.main_block label {

color: black;
}

@@media(max-width:768px){

.col-md-5{

width:100%!important;

float:none!important;

.main_block {

margin: 0px !important;

border: 1px solid white;

.main_row {

padding: 10px!important;

</style>

@Html.Raw(TempData["msg"])

<header id="Home">
@Html.Partial("_HeaderPartial")

<section class="section-testimonials" id="Signin" style="padding-bottom: 70px;">

<div class="row">

<h2>Contact-Us</h2>

</div>

<div class="row main_block">

<div class="main_row" style="margin-bottom: 70px;">

<div class="col-xs-12 col-sm-12 col-md-5 col-lg-5 col-xl-5">

<div class="contat_details">

<h3>Contact Information</h3>

<p class="aboutcontact">Fill up the form and our Team will get back to you within 24 hours.</p>

<ul class="contactlist">

<li><i class="fa fa-phone" aria-hidden="true"></i>&nbsp;&nbsp; +0123 4567 8910</li>

<li><i class="fa fa-envelope" aria-hidden="true"></i>&nbsp;&nbsp; hello@nextolive.com</li>

<li><i class="fa fa-map-marker" aria-hidden="true">&nbsp;&nbsp; 102 street 2714 Don</i></li>

</ul>

</div>

</div>
<div class="col-xs-12 col-sm-12 col-md-5 col-lg-5 col-xl-5">

<div class="contact_us_form">

<form asp-route-returnUrl="@ViewData["ReturnUrl"]" method="post">

@*<div asp-validation-summary="All" class="text-danger validate_text"></div>*@

<div class="row">

<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">

<div class="form-group" data-aos="fade-right">

<i class="fa fa-user-secret" style="color:black" aria-hidden="true"></i> <label asp-


for="Name" class="control-label" style="font-weight: inherit; "></label> <span asp-validation-for="Name" class="text-
danger validate_text error_msg"></span>

<input asp-for="Name" class="form-control" />

</div>

</div>

<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">

<div class="form-group" data-aos="fade-left">

<i class="fa fa-envelope" style="color:black" aria-hidden="true"></i> <label asp-


for="Email" class="control-label" style=" font-weight: inherit;"></label> <span asp-validation-for="Email" class="text-
danger validate_text error_msg"></span>

<input asp-for="Email" class="form-control" />

</div>

</div>

</div>
<div class="row">

<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">

<div class="form-group">

<i class="fa fa-commenting" style="color:black" aria-hidden="true"></i> <label asp-


for="Message" class="control-label" style=" font-weight: inherit;"></label> <span asp-validation-for="Message"
class="text-danger validate_text error_msg"></span>

<textarea asp-for="Message" class="form-control" rows="5"></textarea>

</div>

</div>

</div>

<div class="row">

<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">

<div class="form-group">

<button type="submit" class="btn btn-success">Send</button>

</div>

</div>

</div>

<!---test-->

</form>
</div>

</div>

</div>

</div>

</section>

@Html.Partial("_FooterPartial")

</header>

@section Scripts {

@await Html.PartialAsync("_ValidationScriptsPartial")

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
Register
@model Hospital.Models.AccountViewModels.RegisterViewModel
@{
ViewData["Title"] = "Register";
Layout = "~/Views/Shared/_Layout.cshtml";
}

<style>
.error_msg {
font-size: smaller;
}
@@media(max-width:768px){
.modal-dialog {
width: 100%!important;
}
}
.modal-dialog {
width: 100%!important;
}
.servis {
width: 285px;
text-align: center;
box-shadow: 0px 0px 5px 5px;
background-color: aqua;
float: left;
margin: 20px;
}

.head {
height: 50px;
background-color: beige;
font-size: 35px;
}

.desc {
height: auto;
font-size: 20px;
}

.price {
background-color: azure;
}
/*plans tiles*/
.block.block-bordered {
border: 1px solid #e6ebf4;
box-shadow: none;
}

.block-header {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: .75rem 1.25rem;
transition: opacity .25s ease-out;
}
.bg-body-light {
background-color: #f9fafc !important;
padding-bottom: 20px;
}

.block-content {
transition: opacity .25s ease-out;
width: 100%;
margin: 0 auto;
padding: 1.25rem 1.25rem 1px;
overflow-x: visible;
}

.bg-body-light {
background-color: #f9fafc !important;
padding-bottom: 20px;
}

.btn-hero-secondary.disabled, .btn-hero-secondary:disabled {
color: #fff;
background-color: #111;
}

.btn.disabled, .btn:disabled {
opacity: .65;
}

.btn {
display: inline-block;
font-weight: 400;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border: 1px solid transparent;
padding: .375rem .75rem;
font-size: 1rem;
line-height: 1.5;
border-radius: .25rem;
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s
ease-in-out;
}

.text-center {
text-align: center !important;
}

.col-md-6, .col-lg-6, .col-xl-6 {


width: 50%;
float: left;
padding: 5px
}

.col-md-12, .col-lg-12, .col-xl-12 {


padding: 5px
}
</style>
@Html.Raw(TempData["msg"])

<header id="Home">

@Html.Partial("_HeaderPartial")

<section class="section-testimonials" id="Signin">


<div class="row">
<h2>Sign Up</h2>
</div>
<div class="row">
<div class="main_row" style="margin-bottom: 70px;">
<form asp-route-returnUrl="@ViewData["ReturnUrl"]" method="post">
@*<div asp-validation-summary="All" class="text-danger validate_text"></div>*@
<hr />
<div class="col-md-6" style="padding-top: 10px;">
<img src="~/assets/img/signup_img.jpg" style="width:100%;border:5px solid white;" />
</div>
<div class="col-md-6" style="padding-top: 15px;">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
<div class="form-group" data-aos="fade-right">
<label asp-for="FirstName" class="control-label" style=" font-weight: inherit;"></label> <span
asp-validation-for="FirstName" class="text-danger validate_text error_msg"></span>
<input asp-for="FirstName" class="form-control" />
</div>

</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
<div class="form-group" data-aos="fade-left">
<label asp-for="LastName" class="control-label" style=" font-weight: inherit;"></label> <span
asp-validation-for="LastName" class="text-danger validate_text error_msg"></span>
<input asp-for="LastName" class="form-control" />
</div>

</div>
</div>

<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
<div class="form-group" data-aos="fade-down" data-aos-easing="linear" data-aos-duration="1000">
<label asp-for="Email" class="control-label" style=" font-weight: inherit;"></label> <span asp-
validation-for="Email" class="text-danger validate_text error_msg"></span>
<input asp-for="Email" class="form-control" />
</div>

</div>
</div>

<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
<div class="form-group" data-aos="fade-right">
<label asp-for="Password" class="control-label" style=" font-weight: inherit; "></label> <span
asp-validation-for="Password" class="text-danger validate_text error_msg"></span>
<input asp-for="Password" class="form-control" />
</div>

</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
<div class="form-group" data-aos="fade-left">
<label asp-for="ConfirmPassword" class="control-label" style=" font-weight: inherit;"></label>
<input asp-for="ConfirmPassword" class="form-control" />
</div>
<span asp-validation-for="ConfirmPassword" class="text-danger validate_text"></span>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
<div class="form-group">
<button type="submit" class="btn btn-success">Register</button>
</div>
</div>
</div>

</div>

<!---test-->
</form>

</div>

</div>
<hr /> <br />
</section>

<p id="modelvalue" style="display:none;">@ViewBag.openMedel</p>

@Html.Partial("_FooterPartial")

</header>

@section Scripts {
@await Html.PartialAsync("_ValidationScriptsPartial")
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>

$(document).ready(function () {

var data = document.getElementById("modelvalue").innerHTML;


if (data == "1") {
$("#id01").show();
}
});

</script>

You might also like