How to display Alert messages in aspx gridview?
-
Thursday, June 28, 2012 9:43 AM
Hi,am fresher to dotnet development...plz suggest me any one getting clarity on my question..plz forgive me if any mistakes are there in myquestion...
we are using aspx gridview.In that we want to display alert message after inserting a new record/modifying a record/deleting a record....so how can i display alert messages using javascript.our code is in C#.net
anusha
- Edited by anuuu Thursday, June 28, 2012 9:46 AM
All Replies
-
Friday, June 29, 2012 2:57 AMModerator
Hi anusha ,
If you want to give an alert message when inserting /deleting /updating data ,
you can use Response.Write("<script>alert(‘alert message ');</script>"); inside the event of insert /delet /update .
However I recommend you to use TemplateField with LinkButton .
Have a look at this link ,hope it will be helpful:
http://geekswithblogs.net/dotNETvinz/archive/2009/02/22/display-confirmation-message-on-gridview-deleting.aspxBTW , for ASP.NET related questions, please refer to this forum: http://forums.asp.net/
Have a nice day !Lisa Zhu [MSFT]
MSDN Community Support | Feedback to us
- Marked As Answer by Lisa ZhuMicrosoft Contingent Staff, Moderator Wednesday, July 04, 2012 9:50 AM

