Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 52843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:58:13+00:00 2026-05-10T16:58:13+00:00

I have a table that is created in a DataList in ASP.Net. This table

  • 0

I have a table that is created in a DataList in ASP.Net. This table has three fields of text, then a field with an edit button, and a field with a delete button. When a person clicks the delete button, it posts back, deletes the items, and then binds the DataList again. The DataList is in an UpdatePanel so the item smoothly disappears after a half of a second or maybe a little more, but what I’d really like is for the row to slide out (up) as soon as they hit the delete button, and then have it delete the item on the post back.

I can make the row slide out with jQuery, but the postback gets in the way. How do you deal with that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:58:14+00:00Added an answer on May 10, 2026 at 4:58 pm

    You can use page methods in asp.net to send a request to the server without doing a postback. They are very simple to use and you can do whatever effect you like when the ajax call is completed (you get a function called on success).

    If you want to stick with the post back one solution is the following:

    <asp:Button id='myButton' OnClientClick='return fadeThenAllowSubmit()' ... /> 

    and in js something like:

    var allowSubmit = false; function fadeThenAllowSubmit() {     if (allowSubmit) return true     // do the jquery stuff that will be completed in, let's say, 1000ms     setTimeout(function() {         allowSubmit = true         $('input[id$=myButton]').click()         allowSubmit = false     }, 1000)     return false } 

    It’s a bit of a hack, the idea is to cancel the postback initially, do some stuff then set a timer where the postback will be enabled. The big problem with this approach is that the fade effect and the actual delete are independent (in case of an error you still get the fade effect).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ISAm table in mySql that was created similar to this: create
I have a table that's created like this: CREATE TABLE bin_test (id INTEGER PRIMARY
I have created a table that has a strongly type XML column in SQL2008
I have a table that was created using this mysql statement below. CREATE TABLE
I have a table, let's call it My_Table that has a Created datetime column
I have a table that is created and then deleted at the end of
I have a table that has a field of type uniqueidentifier which is going
I have created a multi column datastore on a table that allows me to
Ok, I have one JavaScript that creates rows in a table like this: function
I have a DTS package that drops a table then creates it and populates

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.