how to display message box [Resolved]

Posted by Bhasker under Regular Expressions on 8/27/2010 | Points: 10 | Views : 4696 | Status : [Member] | Replies : 4
dear all
I having different button on the form like Insert,Delete,Update.
After click on Insert , it would show in message box like "Record successfully added."
pl send me the idea soon.
I m using this code but not working..
MessageBox.Show("Your operation was successfully completed.", DotNetSources.Web.UI.Buttons.Popup.Icon.Info);




Responses

Posted by: Vuyiswamb on: 8/27/2010 [Member] [MVP] [Administrator] NotApplicable | Points: 50

Up
0
Down

Resolved


Response.write("<script>alert('Record successfully added.');</script>");



Thank you for posting at Dotnetfunda
[Administrator]

Bhasker, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bhasker on: 8/28/2010 [Member] Starter | Points: 25

Up
0
Down
sir above code is giving follwing error during compliation..

CS1061: 'System.Web.HttpResponse' does not contain a definition for 'write' and no extension method 'write' accepting a first argument of type 'System.Web.HttpResponse' could be found (are you missing a using directive or an assembly reference?)


Bhasker, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bhasker on: 8/28/2010 [Member] Starter | Points: 25

Up
0
Down
k.. thanks sir.. its working now....

Bhasker, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bhasker on: 8/28/2010 [Member] Starter | Points: 25

Up
0
Down
sir while clicking on button message is displaying on new page. sir i want to display on same page.

Bhasker, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response