codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  ASPX page not showing  wbeetge at 08:30 on Thursday, June 03, 2004
 

I need some help with this problem.

I have a .aspx page that does an import and housekeeping when the linkbutton is clicked. This can take up to a minute to complete if successful.

For days I have struggled to find the way in which I will let the user know what the status of the import is.
Eventually I have managed to load a result page into either an iFrame, or another frame in a frameset.
I expected that when that page loads, while the calling page's process is still running, it would load on a different thread and display the status at that time.

But, it does not matter what I do, I cannot get the result page to display until the process has completed in the calling page. When the process is completed, it states that the process has failed or was successful as I want it to work.
Yet, when I need to tell the user that the process is busy, it is simply not displayed until the process is done.

Here is a piece of code from my .aspx page.
My problem lies on the line with comment "'<----- Does not show"
---------------------------------------------------------------
Private Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
Dim url As String
Dim FName As String
Dim Env As String
Dim FYear As Integer

FName = txtFile1.PostedFile.FileName
Env = cmbEnv.SelectedItem.Value
FYear = cmbStartDate.SelectedItem.Text

If FName = "" Or Right$(FName, 4) <> ".csv" Then
url = "/forum/wfResult_iMessage_Please_select_a_vald_file_ampiImage_Error.html"
frame.Attributes.Item("src") = url '<----- Shows happily because process ends
GoTo Finish
End If

url = "/forum/wfResult_iMessage_Busy_processing_ampiImage_Busy.html"
frame.Attributes.Item("src") = url '<----- Does not show

'Delete temp upload table if it exists
Try
SQLStr = "drop table " & Env & "F550001_Budgets"
ExecSql.ExecAction(SQLStr, CallData.ReturnId.Void)
Catch
End Try
...
... + import process... + Table cleanup code until done
-------------------------------------------------------------
Please tell me if there is a way to force the result page to show asyncronously with the process ?, or if there is a way to halt the process and allow the load of the result page to show or a way like VB's DoEvents to first update the interface.

Thanks

Graham









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  ASPX page not showing
•  Calling ASP from Stored procedure
•  DISTINCT Function with Date string
•  Overflow: Scroll - Back to Top
•  Sessions
•  page in a cell
•  Re: open excel file in html page
•  urgent help with pop up menu layers that wont dissapear
•  Re: Swopping images using ASP


Recent Articles
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)
Function to Return Alpha Characters Only
The OSI Reference Model - A Clear and Concise Illustration !
Understanding Pointers to Functions in C
Application & Session Events in the Global.asax File
Socket Programming in Perl


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2004