Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ASP.NET AJAX Reorder List Callback

Posted on 2008-10-31
1
Medium Priority
?
922 Views
Last Modified: 2012-05-05
I have a page that uses an ASP.NET reorder list to organize the priority of projects.  The page allows a user to move the projects around, and then click submit after all moves have been made (request from the end user).  So, when each item is moved, it writes its current location and new location into a temporary table, then after submit is click, all the corresponding changes are made through stored procedures in SQL.  The problem that I am having is that I am wanting to unload all the changes in the temporary table on the Page Unload event.  For some reason in this control, the Page Unload event is fired when an item is moved in the reorder list.  I have tried adding IsPostBack = False or IsCallBack = False then truncate the records in the page unload event, but that doesn't appear to work either.  See Snippet.

Thanks in advance for the help!
Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload
 
        If IsCallback = False Then
            truncDB()
        End If
 
    End Sub

Open in new window

0
Comment
Question by:jayh99
1 Comment
 
LVL 1

Accepted Solution

by:
jayh99 earned 0 total points
ID: 22850673
Nevermind, I figured out a work around.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Screencast - Getting to Know the Pipeline

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question