ASP.Net Multiple PostBack Issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tom Anderson

    ASP.Net Multiple PostBack Issue

    I am currently having an issue with an ASP.Net 1.1 Web page that does the
    following remotely but not locally.

    Click on a control
    Check for postback, if postback, handle the event, otherwise populate page
    with options.

    What is happening is that remotely the page is doing a double postback, then
    doing a post without data at all resulting in the event being fired twice,
    then redirecting to the incorrect option in a dropdown (going to default).

    Locally, this problem does not exist, remotely it is causing some major
    issues, as when you add a record, it is double adding it. This is for a
    financial estimation add-on for great planes that was working fine 3 weeks
    ago, and now for some reason remotely this issue is happening more and more
    frequently with more then just this control.

    I have researched a bit, and seen that SP1 for .Net 1.1 has been causing
    some issues, the question I have is, has anyone else seen this type of
    behavior, and should I try a rollback to pre-SP1 for .Net 1.1 ?

    Thanks in advance,
    Tom Anderson
    Sr. Software Developer
    Custom Business Solutions Inc.
  • Phillip Williams

    #2
    RE: ASP.Net Multiple PostBack Issue

    Saw it, replicated it in this demo and demonstrated an answer


    --
    HTH,
    Phillip Williams




    "Tom Anderson" wrote:
    [color=blue]
    > I am currently having an issue with an ASP.Net 1.1 Web page that does the
    > following remotely but not locally.
    >
    > Click on a control
    > Check for postback, if postback, handle the event, otherwise populate page
    > with options.
    >
    > What is happening is that remotely the page is doing a double postback, then
    > doing a post without data at all resulting in the event being fired twice,
    > then redirecting to the incorrect option in a dropdown (going to default).
    >
    > Locally, this problem does not exist, remotely it is causing some major
    > issues, as when you add a record, it is double adding it. This is for a
    > financial estimation add-on for great planes that was working fine 3 weeks
    > ago, and now for some reason remotely this issue is happening more and more
    > frequently with more then just this control.
    >
    > I have researched a bit, and seen that SP1 for .Net 1.1 has been causing
    > some issues, the question I have is, has anyone else seen this type of
    > behavior, and should I try a rollback to pre-SP1 for .Net 1.1 ?
    >
    > Thanks in advance,
    > Tom Anderson
    > Sr. Software Developer
    > Custom Business Solutions Inc.[/color]

    Comment

    • Tom Anderson

      #3
      RE: ASP.Net Multiple PostBack Issue

      Thank you for that link, but i am already using AutoEventWireUp ="false".

      The problem isn't internal multiple calls on functions, the problem is
      multiple postbacks from the client.

      "Phillip Williams" wrote:
      [color=blue]
      > Saw it, replicated it in this demo and demonstrated an answer
      > http://www.webswapp.com/CodeSamples/...rue_Error.aspx
      >
      > --
      > HTH,
      > Phillip Williams
      > http://www.societopia.net
      > http://www.webswapp.com
      >
      >
      > "Tom Anderson" wrote:
      >[color=green]
      > > I am currently having an issue with an ASP.Net 1.1 Web page that does the
      > > following remotely but not locally.
      > >
      > > Click on a control
      > > Check for postback, if postback, handle the event, otherwise populate page
      > > with options.
      > >
      > > What is happening is that remotely the page is doing a double postback, then
      > > doing a post without data at all resulting in the event being fired twice,
      > > then redirecting to the incorrect option in a dropdown (going to default).
      > >
      > > Locally, this problem does not exist, remotely it is causing some major
      > > issues, as when you add a record, it is double adding it. This is for a
      > > financial estimation add-on for great planes that was working fine 3 weeks
      > > ago, and now for some reason remotely this issue is happening more and more
      > > frequently with more then just this control.
      > >
      > > I have researched a bit, and seen that SP1 for .Net 1.1 has been causing
      > > some issues, the question I have is, has anyone else seen this type of
      > > behavior, and should I try a rollback to pre-SP1 for .Net 1.1 ?
      > >
      > > Thanks in advance,
      > > Tom Anderson
      > > Sr. Software Developer
      > > Custom Business Solutions Inc.[/color][/color]

      Comment

      • Bruce Barker

        #4
        Re: ASP.Net Multiple PostBack Issue

        check your weblogs to see if the client is actually posting twice. if so,
        then probably a problem with a autopostback control (one that uses
        javascript to post). anyway, if the client is doing a double post, then use
        a network sniffer (preferably one with protocol support) to see the packets
        and the cause should be obvious.

        -- bruce (sqlwork.com)

        "Tom Anderson" <TomAnderson@di scussions.micro soft.com> wrote in message
        news:8CC31195-6467-42E3-9000-F21C3597EC13@mi crosoft.com...[color=blue]
        > Thank you for that link, but i am already using AutoEventWireUp ="false".
        >
        > The problem isn't internal multiple calls on functions, the problem is
        > multiple postbacks from the client.
        >
        > "Phillip Williams" wrote:
        >[color=green]
        >> Saw it, replicated it in this demo and demonstrated an answer
        >> http://www.webswapp.com/CodeSamples/...rue_Error.aspx
        >>
        >> --
        >> HTH,
        >> Phillip Williams
        >> http://www.societopia.net
        >> http://www.webswapp.com
        >>
        >>
        >> "Tom Anderson" wrote:
        >>[color=darkred]
        >> > I am currently having an issue with an ASP.Net 1.1 Web page that does
        >> > the
        >> > following remotely but not locally.
        >> >
        >> > Click on a control
        >> > Check for postback, if postback, handle the event, otherwise populate
        >> > page
        >> > with options.
        >> >
        >> > What is happening is that remotely the page is doing a double postback,
        >> > then
        >> > doing a post without data at all resulting in the event being fired
        >> > twice,
        >> > then redirecting to the incorrect option in a dropdown (going to
        >> > default).
        >> >
        >> > Locally, this problem does not exist, remotely it is causing some major
        >> > issues, as when you add a record, it is double adding it. This is for
        >> > a
        >> > financial estimation add-on for great planes that was working fine 3
        >> > weeks
        >> > ago, and now for some reason remotely this issue is happening more and
        >> > more
        >> > frequently with more then just this control.
        >> >
        >> > I have researched a bit, and seen that SP1 for .Net 1.1 has been
        >> > causing
        >> > some issues, the question I have is, has anyone else seen this type of
        >> > behavior, and should I try a rollback to pre-SP1 for .Net 1.1 ?
        >> >
        >> > Thanks in advance,
        >> > Tom Anderson
        >> > Sr. Software Developer
        >> > Custom Business Solutions Inc.[/color][/color][/color]


        Comment

        • Tom Anderson

          #5
          Re: ASP.Net Multiple PostBack Issue

          It almost seems like the page is too big for the renderer to render...

          Granted this page will have anywhere from 15-500 controls dynamically added
          to it.

          I tried what you suggested, and it will try to get the data, then at the
          exact same spot it will disconnect, and reconnect to request it again, like
          the server is disconnecting the user.

          Any suggestions?

          W3 log shows normal activity, as well as packet sniff, just it disconnects
          midcource, and starts over on an eternal loop.



          "Bruce Barker" wrote:
          [color=blue]
          > check your weblogs to see if the client is actually posting twice. if so,
          > then probably a problem with a autopostback control (one that uses
          > javascript to post). anyway, if the client is doing a double post, then use
          > a network sniffer (preferably one with protocol support) to see the packets
          > and the cause should be obvious.
          >
          > -- bruce (sqlwork.com)
          >
          > "Tom Anderson" <TomAnderson@di scussions.micro soft.com> wrote in message
          > news:8CC31195-6467-42E3-9000-F21C3597EC13@mi crosoft.com...[color=green]
          > > Thank you for that link, but i am already using AutoEventWireUp ="false".
          > >
          > > The problem isn't internal multiple calls on functions, the problem is
          > > multiple postbacks from the client.
          > >
          > > "Phillip Williams" wrote:
          > >[color=darkred]
          > >> Saw it, replicated it in this demo and demonstrated an answer
          > >> http://www.webswapp.com/CodeSamples/...rue_Error.aspx
          > >>
          > >> --
          > >> HTH,
          > >> Phillip Williams
          > >> http://www.societopia.net
          > >> http://www.webswapp.com
          > >>
          > >>
          > >> "Tom Anderson" wrote:
          > >>
          > >> > I am currently having an issue with an ASP.Net 1.1 Web page that does
          > >> > the
          > >> > following remotely but not locally.
          > >> >
          > >> > Click on a control
          > >> > Check for postback, if postback, handle the event, otherwise populate
          > >> > page
          > >> > with options.
          > >> >
          > >> > What is happening is that remotely the page is doing a double postback,
          > >> > then
          > >> > doing a post without data at all resulting in the event being fired
          > >> > twice,
          > >> > then redirecting to the incorrect option in a dropdown (going to
          > >> > default).
          > >> >
          > >> > Locally, this problem does not exist, remotely it is causing some major
          > >> > issues, as when you add a record, it is double adding it. This is for
          > >> > a
          > >> > financial estimation add-on for great planes that was working fine 3
          > >> > weeks
          > >> > ago, and now for some reason remotely this issue is happening more and
          > >> > more
          > >> > frequently with more then just this control.
          > >> >
          > >> > I have researched a bit, and seen that SP1 for .Net 1.1 has been
          > >> > causing
          > >> > some issues, the question I have is, has anyone else seen this type of
          > >> > behavior, and should I try a rollback to pre-SP1 for .Net 1.1 ?
          > >> >
          > >> > Thanks in advance,
          > >> > Tom Anderson
          > >> > Sr. Software Developer
          > >> > Custom Business Solutions Inc.[/color][/color]
          >
          >
          >[/color]

          Comment

          • Tom Anderson

            #6
            Re: ASP.Net Multiple PostBack Issue

            Well, even after optimizing the page, and taking out 4/5ths of the data on
            the page, it still does it, just not as often...

            WTH is up with this issue?

            "Tom Anderson" wrote:
            [color=blue]
            > It almost seems like the page is too big for the renderer to render...
            >
            > Granted this page will have anywhere from 15-500 controls dynamically added
            > to it.
            >
            > I tried what you suggested, and it will try to get the data, then at the
            > exact same spot it will disconnect, and reconnect to request it again, like
            > the server is disconnecting the user.
            >
            > Any suggestions?
            >
            > W3 log shows normal activity, as well as packet sniff, just it disconnects
            > midcource, and starts over on an eternal loop.
            >
            >
            >
            > "Bruce Barker" wrote:
            >[color=green]
            > > check your weblogs to see if the client is actually posting twice. if so,
            > > then probably a problem with a autopostback control (one that uses
            > > javascript to post). anyway, if the client is doing a double post, then use
            > > a network sniffer (preferably one with protocol support) to see the packets
            > > and the cause should be obvious.
            > >
            > > -- bruce (sqlwork.com)
            > >
            > > "Tom Anderson" <TomAnderson@di scussions.micro soft.com> wrote in message
            > > news:8CC31195-6467-42E3-9000-F21C3597EC13@mi crosoft.com...[color=darkred]
            > > > Thank you for that link, but i am already using AutoEventWireUp ="false".
            > > >
            > > > The problem isn't internal multiple calls on functions, the problem is
            > > > multiple postbacks from the client.
            > > >
            > > > "Phillip Williams" wrote:
            > > >
            > > >> Saw it, replicated it in this demo and demonstrated an answer
            > > >> http://www.webswapp.com/CodeSamples/...rue_Error.aspx
            > > >>
            > > >> --
            > > >> HTH,
            > > >> Phillip Williams
            > > >> http://www.societopia.net
            > > >> http://www.webswapp.com
            > > >>
            > > >>
            > > >> "Tom Anderson" wrote:
            > > >>
            > > >> > I am currently having an issue with an ASP.Net 1.1 Web page that does
            > > >> > the
            > > >> > following remotely but not locally.
            > > >> >
            > > >> > Click on a control
            > > >> > Check for postback, if postback, handle the event, otherwise populate
            > > >> > page
            > > >> > with options.
            > > >> >
            > > >> > What is happening is that remotely the page is doing a double postback,
            > > >> > then
            > > >> > doing a post without data at all resulting in the event being fired
            > > >> > twice,
            > > >> > then redirecting to the incorrect option in a dropdown (going to
            > > >> > default).
            > > >> >
            > > >> > Locally, this problem does not exist, remotely it is causing some major
            > > >> > issues, as when you add a record, it is double adding it. This is for
            > > >> > a
            > > >> > financial estimation add-on for great planes that was working fine 3
            > > >> > weeks
            > > >> > ago, and now for some reason remotely this issue is happening more and
            > > >> > more
            > > >> > frequently with more then just this control.
            > > >> >
            > > >> > I have researched a bit, and seen that SP1 for .Net 1.1 has been
            > > >> > causing
            > > >> > some issues, the question I have is, has anyone else seen this type of
            > > >> > behavior, and should I try a rollback to pre-SP1 for .Net 1.1 ?
            > > >> >
            > > >> > Thanks in advance,
            > > >> > Tom Anderson
            > > >> > Sr. Software Developer
            > > >> > Custom Business Solutions Inc.[/color]
            > >
            > >
            > >[/color][/color]

            Comment

            Working...