Connecting Tech Pros Worldwide Help | Site Map

codebehind form submit?

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 17th, 2005, 04:58 PM
Scott
Guest
 
Posts: n/a
Default codebehind form submit?

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, 04:59 PM
Saravana
Guest
 
Posts: n/a
Default 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, 04:59 PM
Kevin Spencer
Guest
 
Posts: n/a
Default 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, 05:00 PM
Scott
Guest
 
Posts: n/a
Default 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, 05:00 PM
Kevin Spencer
Guest
 
Posts: n/a
Default 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, 05:01 PM
Abel
Guest
 
Posts: n/a
Default 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]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.