codebehind form submit?

  • Thread starter Thread starter Scott
  • Start date Start date
S

Scott

How can I tell a form to submit itself in the code-behind
in vs.net?

In other words, in javascript I can do blah.submit() - how
do I do this in vs.net code-behind?
 
Can you tell why do you want to submit your form from code behind


Saravana
Microsoft India Community Star.
MCAD,SE,SD,DBA.
 
Why would a form submit to itself on the server-side? A form can only be
submitted from the client TO the server. In fact, once you are operating on
the server side, what reason would you have for submitting the form
immediately again? It would just come right back to where it already is (the
server).

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.
 
The problem I am having is with the behavior of forms in
asp.net. I am trying to allow a customer submit a
computername, then perform some operations on the computer
and diplay a results page. The problem is, the results
page runs a series of components that take 20-30 seconds
to finish. I want to let the user know that something is
going on. So, I have a gif file that is supposed to
display on the screen on the submit form after they click
submit. However, because that gif file enable code line
is in the submit event along with the response.write, The
animated gif never shows up and the page just clocks until
it finishes the response.write reults page.

I want to make sure my user knows something is going on.
Is there a better way to do this in code behind?
 
I get it now, Scott. You can save yourself a lot of time by Googling
"ASP.Net Progress Bar". There are tons of solutions and tutorials on the
subject out there. You might start with www.asp.net.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.
 
You can use a frame set:

in one frame, display your animated Processing.GIF -- in the other frame,
kickoff the process and refresh - displaying status updates from the
components or database as needed in the other frame (might get complicated
to do this depending on what/how you're processing and the nature of your
status updates)....when the whole process is complete, redirect back out of
the frameset, or just update the frame with the Processing.GIF to
Completed.GIF....

Something like that...

Hope that helps.

Cheers.
 
Back
Top