C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Delete confirmation in ASP.NET gridview control


Posted Date: 08 May 2008    Resource Type: Articles    Category: Web Applications

Posted By: Kamal       Member Level: Gold
Rating:     Points: 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  
(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: Web Applications


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use