Results 1 to 2 of 2

Thread: displaying message box to user

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Location
    Mesa, Arizona
    Posts
    45

    displaying message box to user

    I want to notify the user before they delete something from the database. How can incorproate an meesage box is ASP.net to confirm if the want to proceed with the deletion.

  2. #2
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251
    Try this:

    btnDelete.Attributes.Add("onclick", "if(confirm('Are you sure to delete?')){}else{return false}")
    ~Ryan





    Have I helped you? Please Rate my posts.

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