No clu e how should I do this, please help

  • Thread starter Thread starter jam
  • Start date Start date
J

jam

Dear All,

I have a web page built by asp.net with C#,net in code behind, this page
actaully, calls an exe file and run output something to a file, it takes
about 6-7 mins, while it is running, the page is blank and in a loading
status. I want it to have "loading.", "loading.."....etc. I used
Repsonse.Write, but it shows after the exe file is done. which means nothing
to me.... so how shold I do this? I am a newbie in C#, so i hope someone
could give me a driection or some sample source so that I cuold understand
what i should do and how.

Thanks a lot
 
jam said:
I have a web page built by asp.net with C#,net in code behind, this page
actaully, calls an exe file and run output something to a file, it takes
about 6-7 mins, while it is running, the page is blank and in a loading
status. I want it to have "loading.", "loading.."....etc. I used
Repsonse.Write, but it shows after the exe file is done. which means nothing
to me.... so how shold I do this? I am a newbie in C#, so i hope someone
could give me a driection or some sample source so that I cuold understand
what i should do and how.

For one thing, I'd learn C# itself first until you're happy working in
it - this is a relatively complicated task, and one which you shouldn't
approach while you're unfamiliar with the language.

Once you're ready, you need to run your other program in a different
thread, and return a page very quickly to the user. That page should
automatically refresh itself periodically (say every 10 seconds) and
the refresh should check whether or not the other program has finished.
If it has, it can return the results. Otherwise, it can return the
refresh-me-in-10-seconds page again.
 
Jon Skeet said:
For one thing, I'd learn C# itself first until you're happy working in
it - this is a relatively complicated task, and one which you shouldn't
approach while you're unfamiliar with the language.

Once you're ready, you need to run your other program in a different
thread, and return a page very quickly to the user. That page should
automatically refresh itself periodically (say every 10 seconds) and
the refresh should check whether or not the other program has finished.
If it has, it can return the results. Otherwise, it can return the
refresh-me-in-10-seconds page again.

Plus there should be a javascript on the page doing the "." ".." "..."

:)
 
Back
Top