CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2012
    Posts
    5

    pop up message in asp.net using C#

    Hi guys, I have add button and when you press it will insert data into database from textbox.
    So i want that after inserting data it should give pop up message that "Your data is inserted successfully".

    how can I do that?
    Thanks

  2. #2
    Join Date
    Jan 2007
    Posts
    491

    Re: pop up message in asp.net using C#

    It can be accomplished by using javascript's alert:
    Code:
    //Somewhere in your code...
    Response.Write("<script langauge=\"javascript\">alert(\"Your data was inserted successfully\");</script>");

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured