locked
Show Alert Message You Have Enter Wrong Data RRS feed

  • Question

  • User-807418713 posted

    Hello

    If This Bleow Error comes then i want to show one alert message

    "You Have Enter Wrong Data Please Check For The Selected"

    Thank You

    Tuesday, August 20, 2019 4:11 AM

Answers

  • User-719153870 posted

    Hi Gopi.MCA,

    You can do this with try..catch.. and response.write("").

    For example, use below code to call a browser alert:

                try
                {
                    //Event here
                }
                catch
                {
                    Response.Write("<script>alert('You Have Enter Wrong Data Please Check For The Selected')</script>");//Alert here
                }

    Here's the result:

    Best Regard,

    Yang Shen

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, August 20, 2019 5:07 AM

All replies