Results 1 to 6 of 6

Thread: *RESOLVED* Confirming a DELETE with DataList

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Question *RESOLVED* Confirming a DELETE with DataList

    One thing I am clueless how to do with the DataList is on the DeleteCommand how to CONFIRM the deletion before actually deleting the records from the database?

    Code:
    'In my HTML
    <asp:LinkButton id="delete" Runat="server" CommandName="Delete" Text="Delete"></asp:LinkButton>&nbsp;
    Last edited by jesus4u; Jun 9th, 2003 at 11:52 AM.

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Use a JavaScript messagebox and get the result.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    Well I found a site where this guy is doing EXACTLY what I wanted. See it for yourself. Pretty in depth but it works on my webpages. If anyone can explain his code I would appreciate it!

    Thanks

    http://www.metabuilders.com/tools/ConfirmedButtons.aspx

  4. #4
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Thanks for that link. There is some great stuff there.

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    No prob! Just sharing the wealth !

  6. #6
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Best I can say about his code, is that I guess he may be using DHTML behaviours. Maybe
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

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