Solved

ASP.NET AJAX Reorder List Callback

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

630 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