How do you refresh web forms?

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

    #1

    How do you refresh web forms?

    I'm kind of used to the windows forms make a change then type down the good
    ol' this.refresh().
    But in web forms i dont seem to have that choice no refresh, update or
    anything that sounds vaguely like it. Surely i dont need a brand new webform
    to display a slight change in the layout or appearance of the form.
    What exactly is the command i'm looking for?
    Thanks for any help given

    Jax


  • Stefan

    #2
    Re: How do you refresh web forms?

    Hi Jax
    you can only refresh a page by posting it back and reload it again.
    "Jax" <i_am_anti_(spa mless)everythin g@hotmail.com> wrote in message
    news:bjheve$9ob $1@titan.btinte rnet.com...[color=blue]
    > I'm kind of used to the windows forms make a change then type down the[/color]
    good[color=blue]
    > ol' this.refresh().
    > But in web forms i dont seem to have that choice no refresh, update or
    > anything that sounds vaguely like it. Surely i dont need a brand new[/color]
    webform[color=blue]
    > to display a slight change in the layout or appearance of the form.
    > What exactly is the command i'm looking for?
    > Thanks for any help given
    >
    > Jax
    >
    >[/color]


    Comment

    • Jasper Kent

      #3
      Re: How do you refresh web forms?

      In a form with a simple button called m_Button, you can add the
      following event handler:

      private void m_Button_Click( object sender, EventArgs e)
      {
      m_Button.Locati on = new Point
      (m_Button.Locat ion.X,m_Button. Location.Y + 5);
      }

      This moves the button down 5 pixels every time you press it. There's no
      need for an explicit refresh. The button just does it.

      Regards,

      Jasper Kent

      *** Sent via Developersdex http://www.developersdex.com ***
      Don't just participate in USENET...get rewarded for it!

      Comment

      • William Ryan

        #4
        Re: How do you refresh web forms?

        Jasper:

        I'm not following you. The button fires a postback by default when you
        press it which effectively refreshes the page doesn't it?
        "Jasper Kent" <jasper_kent@ho tmail.com> wrote in message
        news:OpDUOredDH A.3240@TK2MSFTN GP11.phx.gbl...[color=blue]
        > In a form with a simple button called m_Button, you can add the
        > following event handler:
        >
        > private void m_Button_Click( object sender, EventArgs e)
        > {
        > m_Button.Locati on = new Point
        > (m_Button.Locat ion.X,m_Button. Location.Y + 5);
        > }
        >
        > This moves the button down 5 pixels every time you press it. There's no
        > need for an explicit refresh. The button just does it.
        >
        > Regards,
        >
        > Jasper Kent
        >
        > *** Sent via Developersdex http://www.developersdex.com ***
        > Don't just participate in USENET...get rewarded for it![/color]


        Comment

        • Jax

          #5
          Re: How do you refresh web forms?

          Is there a way of manually triggering the postback command?
          If so will the page load event be called again, if so where am i supposed to
          initialiaze my variables? I am lost without my constructor.
          Thanks for any help

          jax


          Comment

          • Jax

            #6
            Re: How do you refresh web forms?

            I just got all the answers i need.
            Thanks to everyone that chipped in with advice.
            Well on my way to making some decent progress now.
            Many thanks

            jax

            "Jax" <i_am_anti_(spa mless)everythin g@hotmail.com> wrote in message
            news:bjhqgl$rhh $1@titan.btinte rnet.com...[color=blue]
            > Is there a way of manually triggering the postback command?
            > If so will the page load event be called again, if so where am i supposed[/color]
            to[color=blue]
            > initialiaze my variables? I am lost without my constructor.
            > Thanks for any help
            >
            > jax
            >
            >[/color]


            Comment

            • Miljen Stankovic

              #7
              Re: How do you refresh web forms?

              Could you post your solution, 'cause I'm also having troubles with page
              refreshing?

              "Jax" <i_am_anti_(spa mless)everythin g@hotmail.com> wrote in message
              news:bjik3c$bq9 $1@titan.btinte rnet.com...[color=blue]
              > I just got all the answers i need.
              > Thanks to everyone that chipped in with advice.
              > Well on my way to making some decent progress now.
              > Many thanks
              >
              > jax
              >
              > "Jax" <i_am_anti_(spa mless)everythin g@hotmail.com> wrote in message
              > news:bjhqgl$rhh $1@titan.btinte rnet.com...[color=green]
              > > Is there a way of manually triggering the postback command?
              > > If so will the page load event be called again, if so where am i[/color][/color]
              supposed[color=blue]
              > to[color=green]
              > > initialiaze my variables? I am lost without my constructor.
              > > Thanks for any help
              > >
              > > jax
              > >
              > >[/color]
              >
              >[/color]


              Comment

              Working...