Post Backs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark S.

    #1

    Post Backs

    Hello,
    Question is there a way to force a PostBack of an aspx page. The
    codebehind is VB.
    I can force a refresh with
    Response.AddHea der("Refresh", "30")

    But what I would like is a postback so form keeps it data.

    Thanks

    Mark






  • S. Justin Gengo

    #2
    Re: Post Backs

    Mark, you'll have to use javascript.

    Sincerely,

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    www.aboutfortunate.com

    "Out of chaos comes order."
    Nietzche


    "Mark S." <TechAge@cableo ne.net> wrote in message
    news:umD2AQaYDH A.656@tk2msftng p13.phx.gbl...[color=blue]
    > Hello,
    > Question is there a way to force a PostBack of an aspx page. The
    > codebehind is VB.
    > I can force a refresh with
    > Response.AddHea der("Refresh", "30")
    >
    > But what I would like is a postback so form keeps it data.
    >
    > Thanks
    >
    > Mark
    >
    >
    >
    >
    >
    >[/color]


    Comment

    • Marina

      #3
      Re: Post Backs

      You would need to add some javascript to force a submit of the form.

      "Mark S." <TechAge@cableo ne.net> wrote in message
      news:umD2AQaYDH A.656@tk2msftng p13.phx.gbl...[color=blue]
      > Hello,
      > Question is there a way to force a PostBack of an aspx page. The
      > codebehind is VB.
      > I can force a refresh with
      > Response.AddHea der("Refresh", "30")
      >
      > But what I would like is a postback so form keeps it data.
      >
      > Thanks
      >
      > Mark
      >
      >
      >
      >
      >
      >[/color]


      Comment

      • Mark S.

        #4
        Re: Post Backs

        Yea, I thought as much. Was just hopeing there was a different way.
        Javascript is not my stong suit.

        Thanks

        "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
        news:umBVDUaYDH A.2032@TK2MSFTN GP10.phx.gbl...[color=blue]
        > Mark, you'll have to use javascript.
        >
        > Sincerely,
        >
        > --
        > S. Justin Gengo, MCP
        > Web Developer
        >
        > Free code library at:
        > www.aboutfortunate.com
        >
        > "Out of chaos comes order."
        > Nietzche
        >
        >
        > "Mark S." <TechAge@cableo ne.net> wrote in message
        > news:umD2AQaYDH A.656@tk2msftng p13.phx.gbl...[color=green]
        > > Hello,
        > > Question is there a way to force a PostBack of an aspx page. The
        > > codebehind is VB.
        > > I can force a refresh with
        > > Response.AddHea der("Refresh", "30")
        > >
        > > But what I would like is a postback so form keeps it data.
        > >
        > > Thanks
        > >
        > > Mark
        > >
        > >
        > >
        > >
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • George Ter-Saakov

          #5
          Re: Post Backs

          It's not hard at all.

          Just put following line into the code before <body> tag

          <script>
          window.setTimeo ut("__doPostBac k('','');", 1000);
          </script>

          Pay attention those are apostrophees insied of doPostBack.
          And 1000 is 1 second.

          George.

          "Mark S." <TechAge@cableo ne.net> wrote in message
          news:eIq3QYaYDH A.2620@TK2MSFTN GP09.phx.gbl...[color=blue]
          > Yea, I thought as much. Was just hopeing there was a different way.
          > Javascript is not my stong suit.
          >
          > Thanks
          >
          > "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
          > news:umBVDUaYDH A.2032@TK2MSFTN GP10.phx.gbl...[color=green]
          > > Mark, you'll have to use javascript.
          > >
          > > Sincerely,
          > >
          > > --
          > > S. Justin Gengo, MCP
          > > Web Developer
          > >
          > > Free code library at:
          > > www.aboutfortunate.com
          > >
          > > "Out of chaos comes order."
          > > Nietzche
          > >
          > >
          > > "Mark S." <TechAge@cableo ne.net> wrote in message
          > > news:umD2AQaYDH A.656@tk2msftng p13.phx.gbl...[color=darkred]
          > > > Hello,
          > > > Question is there a way to force a PostBack of an aspx page. The
          > > > codebehind is VB.
          > > > I can force a refresh with
          > > > Response.AddHea der("Refresh", "30")
          > > >
          > > > But what I would like is a postback so form keeps it data.
          > > >
          > > > Thanks
          > > >
          > > > Mark
          > > >
          > > >
          > > >
          > > >
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          Working...