Username And password is incorrect
message box for username and password incorrect in asp.net web application
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mukesh Kumar TiwariRank #1,773 · 844 reputationPosted May 21, 2014, 8:38 PM EDT
Abhay ShankerRank #375 · 6.7K reputationPosted May 21, 2014, 8:49 PM EDT
Yadlapalli SrikanthRank #7,940 · 231 reputationPosted May 21, 2014, 8:51 PM EDT
2.Add post back event to button
Postback event
protected void btnrefresh_Click(object sender, EventArgs e)
{
//do the validation here
string CloseWindow; CloseWindow = "alert('Hello World')";
ScriptManager.RegisterStartupScript(this, this.GetType(), "CloseWindow", CloseWindow, true);
}
Akhil MittalRank #133 · 16.9K reputationPosted May 22, 2014, 12:56 AM EDT
Add the following class in your solution/project,
Just use Alert.Show("Your message"); where ever you want to show the message.