Connecting Tech Pros Worldwide Help | Site Map

codebehind form submit?

  #1  
Old November 17th, 2005, 05:58 PM
Scott
Guest
 
Posts: n/a
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?
  #2  
Old November 17th, 2005, 05:59 PM
Saravana
Guest
 
Posts: n/a

re: codebehind form submit?


Can you tell why do you want to submit your form from code behind


Saravana
Microsoft India Community Star.
MCAD,SE,SD,DBA.


"Scott" <spiscitelli@nc.rr.com> wrote in message
news:0a6001c33bd9$279b5860$a501280a@phx.gbl...[color=blue]
> 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?[/color]


  #3  
Old November 17th, 2005, 05:59 PM
Kevin Spencer
Guest
 
Posts: n/a

re: codebehind form submit?


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.

"Scott" <spiscitelli@nc.rr.com> wrote in message
news:0a6001c33bd9$279b5860$a501280a@phx.gbl...[color=blue]
> 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?[/color]


  #4  
Old November 17th, 2005, 06:00 PM
Scott
Guest
 
Posts: n/a

re: codebehind form submit?


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?
[color=blue]
>-----Original Message-----
>Why would a form submit to itself on the server-side? A[/color]
form can only be[color=blue]
>submitted from the client TO the server. In fact, once[/color]
you are operating on[color=blue]
>the server side, what reason would you have for[/color]
submitting the form[color=blue]
>immediately again? It would just come right back to where[/color]
it already is (the[color=blue]
>server).
>
>HTH,
>
>Kevin Spencer
>Microsoft FrontPage MVP
>Internet Developer
>http://www.takempis.com
>Big things are made up of
>lots of Little things.
>
>"Scott" <spiscitelli@nc.rr.com> wrote in message
>news:0a6001c33bd9$279b5860$a501280a@phx.gbl...[color=green]
>> How can I tell a form to submit itself in the code-[/color][/color]
behind[color=blue][color=green]
>> in vs.net?
>>
>> In other words, in javascript I can do blah.submit() -[/color][/color]
how[color=blue][color=green]
>> do I do this in vs.net code-behind?[/color]
>
>
>.
>[/color]
  #5  
Old November 17th, 2005, 06:00 PM
Kevin Spencer
Guest
 
Posts: n/a

re: codebehind form submit?


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.

"Scott" <spiscitelli@nc.rr.com> wrote in message
news:001201c33c0a$727781c0$a601280a@phx.gbl...[color=blue]
> 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?
>[color=green]
> >-----Original Message-----
> >Why would a form submit to itself on the server-side? A[/color]
> form can only be[color=green]
> >submitted from the client TO the server. In fact, once[/color]
> you are operating on[color=green]
> >the server side, what reason would you have for[/color]
> submitting the form[color=green]
> >immediately again? It would just come right back to where[/color]
> it already is (the[color=green]
> >server).
> >
> >HTH,
> >
> >Kevin Spencer
> >Microsoft FrontPage MVP
> >Internet Developer
> >http://www.takempis.com
> >Big things are made up of
> >lots of Little things.
> >
> >"Scott" <spiscitelli@nc.rr.com> wrote in message
> >news:0a6001c33bd9$279b5860$a501280a@phx.gbl...[color=darkred]
> >> How can I tell a form to submit itself in the code-[/color][/color]
> behind[color=green][color=darkred]
> >> in vs.net?
> >>
> >> In other words, in javascript I can do blah.submit() -[/color][/color]
> how[color=green][color=darkred]
> >> do I do this in vs.net code-behind?[/color]
> >
> >
> >.
> >[/color][/color]


  #6  
Old November 17th, 2005, 06:01 PM
Abel
Guest
 
Posts: n/a

re: codebehind form submit?


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.

"Scott" <spiscitelli@nc.rr.com> wrote in message
news:001201c33c0a$727781c0$a601280a@phx.gbl...[color=blue]
> 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?
>[color=green]
> >-----Original Message-----
> >Why would a form submit to itself on the server-side? A[/color]
> form can only be[color=green]
> >submitted from the client TO the server. In fact, once[/color]
> you are operating on[color=green]
> >the server side, what reason would you have for[/color]
> submitting the form[color=green]
> >immediately again? It would just come right back to where[/color]
> it already is (the[color=green]
> >server).
> >
> >HTH,
> >
> >Kevin Spencer
> >Microsoft FrontPage MVP
> >Internet Developer
> >http://www.takempis.com
> >Big things are made up of
> >lots of Little things.
> >
> >"Scott" <spiscitelli@nc.rr.com> wrote in message
> >news:0a6001c33bd9$279b5860$a501280a@phx.gbl...[color=darkred]
> >> How can I tell a form to submit itself in the code-[/color][/color]
> behind[color=green][color=darkred]
> >> in vs.net?
> >>
> >> In other words, in javascript I can do blah.submit() -[/color][/color]
> how[color=green][color=darkred]
> >> do I do this in vs.net code-behind?[/color]
> >
> >
> >.
> >[/color][/color]


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
CodeBehind But Not Postback - Page_Load fires twice Erik Jensen answers 4 November 19th, 2005 04:34 PM
Asp.net form submit action question TheOne answers 12 November 19th, 2005 05:36 AM
Client Side validation and Post to method in CodeBehind Class Gary Vidal answers 5 November 18th, 2005 05:00 AM
asp.net mail form Andre answers 2 November 17th, 2005 11:07 PM