TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ahmed elbarbary
NA
1.6k
281.4k
How to return user already exist on angular 7 ?
Jan 20 2020 7:16 AM
problem
How to return user already exist on angular 7 ?
I work on web api working on asp.net core 2
I check users exist on database
if user i create exist on database then message will show to me
user already exist
public
static
bool CheckUserName(string username)
{
bool status =
false
;
// string constr = ConfigurationManager.ConnectionStrings[
"conString"
].ConnectionString;
using (SqlConnection conn = new SqlConnection(SQLDAL.ConnectionString))
{
using (SqlCommand cmd = new SqlCommand(
"CheckUserAvailability"
, conn))
{
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue(
"@UserName"
, username.Trim());
conn.
Open
();
status =
Convert
.ToBoolean(cmd.ExecuteScalar());
conn.
Close
();
}
}
return
status;
}
so How to create service on angular 7
and how to call it on Onsubmit event
Reply
Answers (
5
)
How to return json object from link url angular 7?
How to display count green color if value > 0 and red if < ?