Connecting Tech Pros Worldwide Help | Site Map

codebehind form submit?

Scott
Guest
 
Posts: n/a
#1: Nov 17 '05
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?
Saravana
Guest
 
Posts: n/a
#2: Nov 17 '05

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]


Kevin Spencer
Guest
 
Posts: n/a
#3: Nov 17 '05

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]


Scott
Guest
 
Posts: n/a
#4: Nov 17 '05

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]
Kevin Spencer
Guest
 
Posts: n/a
#5: Nov 17 '05

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]


Abel
Guest
 
Posts: n/a
#6: Nov 17 '05

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