Results 1 to 5 of 5

Thread: update an object without refreshing the page?

  1. #1

    Thread Starter
    Addicted Member ProgrammerJon's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    203

    update an object without refreshing the page?

    can you update an object (like a textbox) without refreshing the whole page?

  2. #2
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602
    If you mean a refresh as in a postback to the server, then you have to use client javascript to do it... remember that textboxes are server controls... they require a postback to change state...

    I am not 100 on this (clock is ticking late...) but for manipulating form objects on the client alone, javascript is the way to go...

    unless there is some cool asp.net feature Im forgetting...

    Remember that the controls have a viewstate... and that they doesn't "forget" their value even if you refresh the page.. in classic asp you needed crazy stuff like manual hidden variables...

    The classic example of demonstrating viewstate is a "wizard like" web abb.. you fill some values in a form, press the next button, you jump to a new page... and if you then press "back" you will see your prevoius form because the controls haven't lost their viewstate...

    I suggest www.asp.net for some great asp.net tutorials...

    kind regards
    Henrik
    Last edited by MrNorth; Jan 27th, 2004 at 04:08 PM.

  3. #3

    Thread Starter
    Addicted Member ProgrammerJon's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    203
    thanks

  4. #4
    Addicted Member KingSatan's Avatar
    Join Date
    Feb 2006
    Posts
    185

    Re: update an object without refreshing the page?

    can you give an example of a manual post back?

  5. #5
    Hyperactive Member Coool's Avatar
    Join Date
    Feb 2006
    Location
    System.Coool
    Posts
    333

    Re: update an object without refreshing the page?

    <a href=# onlclick="__doPostBack('<anyButtonThatMakePagePostBack>','')">Manual PostBack</a>
    I am using .NET 2010 with Windows 7

Posting Permissions

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



Click Here to Expand Forum to Full Width