Form behavior in ASP.net

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

  1. #1

    Default Form behavior in ASP.net

    I am using code behind in visual studio to build all of my
    new web forms. I am attempting to build a page that will
    allow a user to enter a computer name in a text field,
    then click a submit button. When the form is submitted, I
    am performing a series of checks on the computer that can
    take up to 20 seconds. I would like to display to the
    user an intermediate page that will show an animated gif
    and tell them to wait.

    I have three web forms all built in vs.net using code-
    behind:
    Page1 - Page that allows user to enter pcname
    Page2 - Page that displays animated gif
    Page3 - Page that gives user results.

    In my code behind in page1, on the submit button click
    event, I have a response.redirect to page2. Page2 has two
    lables and a .gif file on it. In page2's codebehind on
    the form_load event I have a response.redirect to page3 to
    display the results to the user.

    The expected behavior is that once you fill out the text
    box and click submit, you would be redirected to the page
    with the animated gif, then once again redirected to the
    results page. What happens is this:

    When a user enters the pcname and clicks submit, the
    browser clocks for a 10-20 seconds(processing page3) then
    displays page3. I never see page2.

    How can I get this intermediate page to display to the
    user while they are waiting for all of the processes on
    page3 to finish in vs.net?

    thanks
    Scott Guest

  2. Similar Questions and Discussions

    1. Validate form server behavior
      I have a problem with my Dreamweaver 8.0.2....I can't get validate form from the pop up menu in the server behavior window. Where do I get it??...
    2. Using the validate form behavior
      Hello All, I have a form that I recently add more fields, the problem I'm having is how do I include those fields in my validated form behavior?....
    3. Validate form Behavior errors
      Hi I have added the macromedia validate form behavior to this page and its giving a javascript error when you click submit. ...
    4. Validate form behavior
      Make sure that your form is selected when you do the "Validate Form" behavio and that your "Show behaviors for..." option is set to at least...
    5. Sub form behavior
      On Thu, 3 Jul 2003 12:26:22 -0700, "Robert Anzalone" <robertanzalone@hotmail.com> wrote: Two ways: - If you don't want to see previous...
  3. #2

    Default Form behavior in ASP.net

    Check out this article on Multi-Threading and ASP.NET.
    It describes how you can accomplish this "progress bar"
    style.

    [url]http://www.fawcette.com/vsm/2002_11/magazine/features/ches[/url]
    ter/

    >-----Original Message-----
    >I am using code behind in visual studio to build all of
    my
    >new web forms. I am attempting to build a page that
    will
    >allow a user to enter a computer name in a text field,
    >then click a submit button. When the form is submitted,
    I
    >am performing a series of checks on the computer that
    can
    >take up to 20 seconds. I would like to display to the
    >user an intermediate page that will show an animated gif
    >and tell them to wait.
    >
    >I have three web forms all built in vs.net using code-
    >behind:
    >Page1 - Page that allows user to enter pcname
    >Page2 - Page that displays animated gif
    >Page3 - Page that gives user results.
    >
    >In my code behind in page1, on the submit button click
    >event, I have a response.redirect to page2. Page2 has
    two
    >lables and a .gif file on it. In page2's codebehind on
    >the form_load event I have a response.redirect to page3
    to
    >display the results to the user.
    >
    >The expected behavior is that once you fill out the text
    >box and click submit, you would be redirected to the
    page
    >with the animated gif, then once again redirected to the
    >results page. What happens is this:
    >
    >When a user enters the pcname and clicks submit, the
    >browser clocks for a 10-20 seconds(processing page3)
    then
    >displays page3. I never see page2.
    >
    >How can I get this intermediate page to display to the
    >user while they are waiting for all of the processes on
    >page3 to finish in vs.net?
    >
    >thanks
    >.
    >
    Matt Hawley Guest

  4. #3

    Default Re: Form behavior in ASP.net

    if you do response.Redirect, then a redirect command is sent to the browser
    instead of the page contents,

    page 1 submits
    the reponse of the submit is a redirect to page 2
    the browsers requests page 2, but the response is a redirect page 3
    the browser request page 3 (which takes a while)
    the browser loads page 3

    if you want page 2 to display, it can not use a redirect, but must use
    javascript or a meta tag to do the submit. to display an image you must wait
    until the image has been display as a submit will stop loading. also
    animated gifs will not run during a post.

    the most common solution is to have page 2 poll (thru the refresh meta tag)
    for the long operation to complete, and only redirect once its done.



    "Scott" <spiscitelli@nc.rr.com> wrote in message
    news:07b201c33bd7$8120be40$a401280a@phx.gbl...
    > I am using code behind in visual studio to build all of my
    > new web forms. I am attempting to build a page that will
    > allow a user to enter a computer name in a text field,
    > then click a submit button. When the form is submitted, I
    > am performing a series of checks on the computer that can
    > take up to 20 seconds. I would like to display to the
    > user an intermediate page that will show an animated gif
    > and tell them to wait.
    >
    > I have three web forms all built in vs.net using code-
    > behind:
    > Page1 - Page that allows user to enter pcname
    > Page2 - Page that displays animated gif
    > Page3 - Page that gives user results.
    >
    > In my code behind in page1, on the submit button click
    > event, I have a response.redirect to page2. Page2 has two
    > lables and a .gif file on it. In page2's codebehind on
    > the form_load event I have a response.redirect to page3 to
    > display the results to the user.
    >
    > The expected behavior is that once you fill out the text
    > box and click submit, you would be redirected to the page
    > with the animated gif, then once again redirected to the
    > results page. What happens is this:
    >
    > When a user enters the pcname and clicks submit, the
    > browser clocks for a 10-20 seconds(processing page3) then
    > displays page3. I never see page2.
    >
    > How can I get this intermediate page to display to the
    > user while they are waiting for all of the processes on
    > page3 to finish in vs.net?
    >
    > thanks

    bruce barker 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