|
-
Jan 26th, 2004, 10:29 PM
#1
Thread Starter
Addicted Member
update an object without refreshing the page?
can you update an object (like a textbox) without refreshing the whole page?
-
Jan 27th, 2004, 04:05 PM
#2
Frenzied Member
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.
-
Jan 27th, 2004, 07:02 PM
#3
Thread Starter
Addicted Member
-
Apr 2nd, 2007, 03:01 PM
#4
Addicted Member
Re: update an object without refreshing the page?
can you give an example of a manual post back?
-
Apr 5th, 2007, 12:04 AM
#5
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|