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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Akhil MittalPosted May 22, 2014, 4:56 AM
Add the following class in your solution/project,
Just use Alert.Show("Your message"); where ever you want to show the message.
Yadlapalli SrikanthPosted May 22, 2014, 12:51 AM
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);
}
Abhay ShankerPosted May 22, 2014, 12:49 AM
Mukesh Kumar TiwariPosted May 22, 2014, 12:38 AM