Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I'm new to ASP.NET, so this I'm sure is a simple question. I'm trying to keep the user posted as to what the code is doing as my code runs. Something like
'Some code here

       'Show user what is going on
       Span2.InnerHtml = "Still working...please hold"

       'Some more code that takes a while

       'Show user what is going on
       Span2.InnerHtml = "Finally finshed, thanks for waiting"

This code I have now doesn't work right. You don't see the the first one. All you ever see is the "Finally finshed, thanks for waiting". It's like it doesn't update or refresh the text displayed to the user till the sub (button click event) is completely done running.

  • *Experts*
Posted

This sort of thing, on the web, will have to be done via javascript or some other client side scripting. Using the codebehind of ASP.NET means that the page is still kept in the buffer until the page is done. There are ways to flush it, but it sounds like you want something else.

 

What's the effect you're going after? Just a simple "Please wait..." that moves or something much nicer, that actually shows like an accurate progress bar?

 

-ner

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...