locked
message box for web form RRS feed

  • Question

  • I am trying to create a new C# web application. I need the message box and confirmation message box for my application. I knew there is no such control for web forms. I created a script string and registered it by using ScriptManager.RegisterStartupScript(Button1, Button1.GetType(), "key", javascriptStr, false). Unfortunately the message box won't pop up when i click the button first, it will pop up when i click it on the second time.

    I really don't know what is wrong.

    Thank you in advance,

    • Moved by Caillen Wednesday, October 15, 2014 6:42 AM
    Tuesday, October 14, 2014 1:24 PM

Answers

  • Hello yangyangxiaohui,

    If you post your question in ASP.NET forums, you'll get more valuable answers.

    Please open up a new thread there, thanks for your understanding.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by Just Karl Thursday, October 30, 2014 10:31 PM
    • Marked as answer by Just Karl Thursday, October 30, 2014 10:46 PM
    Wednesday, October 15, 2014 6:42 AM