Solved

ASP.NET AJAX Reorder List Callback

Posted on 2008-10-31
1
885 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access Schema 6 45
Upgrade code from VS 2010 to VS 2015 7 31
asp.net figure out error 3 20
Consume a webservice via VB in Visual Studio 2015 3 14
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

735 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