Solved

ASP.NET AJAX Reorder List Callback

Posted on 2008-10-31
1
865 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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 Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now