C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Articles » ASP.NET/Web Applications »

Delete confirmation in ASP.NET gridview control


Posted Date: 08 May 2008    Resource Type: Articles    Category: ASP.NET/Web Applications
Author: KamalMember Level: Gold    
Rating: 1 out of 5Points: 10



Sometimes when you delete record from asp.net controls like GridView it delete record without give any warning,sometimes it can be dangerous for application.

To overcome this every time use warning dialog box when you click delete button to confirm you are sure to delete this record.

<asp:LinkButton ID="btnDelete" runat="server" CausesValidation="False" Text="Delete"CommandName="Delete" OnClientClick="return confirm('Are you sure you want to delete this record?');">
</asp:LinkButton>

Here,When you click delete button it fire javascript.



Responses

Author: saravanan    14 May 2008Member Level: Silver   Points : 2
no


Author: saravanan    14 May 2008Member Level: Silver   Points : 2
no


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: What is the use of AutoWireup in asp.net
Previous Resource: Google Search Macro
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET/Web Applications


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use