codebehind form submit?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    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?
    Scott Guest

  2. Similar Questions and Discussions

    1. Submit PDF Form
      I've created my first PDF Form in Acrobat 7.0 Professional, with a "submit-form" button. Now, I want the filled-out form to be sent as an attachment...
    2. Form submit
      Mira, If you move from one page to another then the objects which were on the first page wouldn't be accessible from the second. Is this what...
    3. Adding "form runat server" from codebehind..
      Hi.. I'm creating a "Web Custom Control" and need to generate a form. I can't put the form tag's to the aspx-fil. I have to generate them from...
    4. Form Field/ Form Submit Problems (probably an easy answer...)
      Hey Everyone.. I have a form that has approximately 7 text fields and 1 checkbox. Generally when this form is submitted(to itself BTW) it works...
    5. ASP Form Doesn't Always Submit
      Hello everyone, I am pretty much newbie to ASP so please bear with me as I explain my problem. I currently have a main form which displays data...
  3. #2

    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...
    > 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

  4. #3

    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
    [url]http://www.takempis.com[/url]
    Big things are made up of
    lots of Little things.

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

    Kevin Spencer Guest

  5. #4

    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?
    >-----Original Message-----
    >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
    >[url]http://www.takempis.com[/url]
    >Big things are made up of
    >lots of Little things.
    >
    >"Scott" <spiscitelli@nc.rr.com> wrote in message
    >news:0a6001c33bd9$279b5860$a501280a@phx.gbl...
    >> 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?
    >
    >
    >.
    >
    Scott Guest

  6. #5

    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 [url]www.asp.net[/url].

    HTH,

    Kevin Spencer
    Microsoft FrontPage MVP
    Internet Developer
    [url]http://www.takempis.com[/url]
    Big things are made up of
    lots of Little things.

    "Scott" <spiscitelli@nc.rr.com> wrote in message
    news:001201c33c0a$727781c0$a601280a@phx.gbl...
    > 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?
    >
    > >-----Original Message-----
    > >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
    > >[url]http://www.takempis.com[/url]
    > >Big things are made up of
    > >lots of Little things.
    > >
    > >"Scott" <spiscitelli@nc.rr.com> wrote in message
    > >news:0a6001c33bd9$279b5860$a501280a@phx.gbl...
    > >> 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?
    > >
    > >
    > >.
    > >

    Kevin Spencer Guest

  7. #6

    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...
    > 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?
    >
    > >-----Original Message-----
    > >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
    > >[url]http://www.takempis.com[/url]
    > >Big things are made up of
    > >lots of Little things.
    > >
    > >"Scott" <spiscitelli@nc.rr.com> wrote in message
    > >news:0a6001c33bd9$279b5860$a501280a@phx.gbl...
    > >> 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?
    > >
    > >
    > >.
    > >

    Abel Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139