https://docs.wati.io/reference/post_-serverurl-api-v1-updatecontactattributes-whatsappnumber
Monday, November 29, 2021
Saturday, November 27, 2021
An introduction to Jquery.
Jquery is a javascript library. Simple syntax of Jquery.
----------------------------**************----------------------------
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
</head>
<body>
<p>If you click on me, I will disappear.</p>
<p>Click me away!</p>
<p>Click me too!</p>
</body>
</html>
An introduction to node.js. - How to download NPM
When you download install Node JS it will install NPM
- Node.js is an open source server environment
- Node.js is free
- Node.js runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
- Node.js uses JavaScript on the server
How to download mongodb database. An intro to mongodb database
MongoDB is not a SQL database, it is a document database.
Download Mongodb compass (The GUI for MongoDB)
https://www.mongodb.com/try/download/compass
Also you have to download mongodb community.
https://www.mongodb.com/try/download/community
-------------------****************---------------------
Also you can use MongoDB Atlas for cloud database.
---------------------***************-----------------------
In mangodb, you can say, collections are your tables.
And documents are your data(records)
-----------------------
To find the data in filter(in mongodb compass), enter below code
| { Country: "Brazil" } |
Creating Login logic for asp.net C# and Stored procedure for finding Login and password
- Create procedure [dbo].[spLogin]
- (
- @Email nvarchar(50),
- @Password nvarchar(50)
- )
- as
- begin
- Select COUNT(*) from UserRegistration where Email=@Email and Password=@Password
- end
- ---------------------------------
- Clicking on Login button
- protected void btnLogin_Click(object sender, EventArgs e)
- {
- string CS = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString;
- using (SqlConnection con=new SqlConnection(CS))
- {
- SqlCommand cmd = new SqlCommand("spLogin", con);
- cmd.CommandType = CommandType.StoredProcedure;
- con.Open();
- cmd.Parameters.AddWithValue("@Email",txtEmail.Text.Trim());
- cmd.Parameters.AddWithValue("@Password", Decrypt(txtPassword.Text.Trim()));
- int Username = (Int32)cmd.ExecuteScalar();
- if (Username == 1)
- {
- Session["Username"] = txtEmail.Text;
- Response.Redirect("Welcome.aspx");
- Session.RemoveAll();
- }
- else
- {
- lblMessage.ForeColor = System.Drawing.Color.Red;
- lblMessage.Text = "Invalid username and password";
- }
- }
- }
- reference:- https://www.c-sharpcorner.com/blogs/how-to-login-with-encrypted-password-in-asp-net
- https://www.c-sharpcorner.com/blogs/how-to-create-user-registration-form-with-encrypted-password-using-asp-net#ReadAndPostComment