Solved

ASP.NET AJAX Reorder List Callback

Posted on 2008-10-31
1
855 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
Comment Utility
Nevermind, I figured out a work around.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

11 Experts available now in Live!

Get 1:1 Help Now