473,800 Members | 3,007 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

textbox states with ajax anyone?

Max
I tried the following with Web Dev 2008 with -and- without Ajax Extension
3.5 - using IE 7
I reduced my webform1 to a Scriptmanager and an Updatepanel with 2 textbox
and a button. I type something in textbox1, press the button and a function
runs and completes textbox2.
Then I hyperlink to webform2, come back, and not only textbox2 is blank (one
can thinks it was dynamically updated...) but also textbox1 is empty !

What mistake I'm doing? this behaviour is evidently not possible
Thanks Max


Jun 27 '08 #1
5 1301
When you navigate to webform2, webform1's gone. When you come back to it,
the server loads it again. You need to set the values in the Page_Load
event.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Max" <mmwrote in message
news:48******** *************** @reader4.news.t in.it...
>I tried the following with Web Dev 2008 with -and- without Ajax Extension
3.5 - using IE 7
I reduced my webform1 to a Scriptmanager and an Updatepanel with 2 textbox
and a button. I type something in textbox1, press the button and a
function runs and completes textbox2.
Then I hyperlink to webform2, come back, and not only textbox2 is blank
(one can thinks it was dynamically updated...) but also textbox1 is empty
!

What mistake I'm doing? this behaviour is evidently not possible
Thanks Max


Jun 27 '08 #2
Max
I mean coming back to webform1 with the browser back button. I expect to
find what I left, or at least what I typed.
"Eliyahu Goldin" <RE************ **************@ mMvVpPsS.orgha scritto nel
messaggio news:um******** ******@TK2MSFTN GP02.phx.gbl...
When you navigate to webform2, webform1's gone. When you come back to it,
the server loads it again. You need to set the values in the Page_Load
event.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Max" <mmwrote in message
news:48******** *************** @reader4.news.t in.it...
>>I tried the following with Web Dev 2008 with -and- without Ajax Extension
3.5 - using IE 7
I reduced my webform1 to a Scriptmanager and an Updatepanel with 2
textbox and a button. I type something in textbox1, press the button and
a function runs and completes textbox2.
Then I hyperlink to webform2, come back, and not only textbox2 is blank
(one can thinks it was dynamically updated...) but also textbox1 is empty
!

What mistake I'm doing? this behaviour is evidently not possible
Thanks Max



Jun 27 '08 #3
Try the same with some commercial sites. You will see that although some
search-oriented sites like Google and Answers.com do preserve your typing,
it is rather an exception. Most pages load in a regular way on hitting the
Back.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Max" <mmwrote in message
news:48******** *************** @reader1.news.t in.it...
>I mean coming back to webform1 with the browser back button. I expect to
find what I left, or at least what I typed.
"Eliyahu Goldin" <RE************ **************@ mMvVpPsS.orgha scritto
nel messaggio news:um******** ******@TK2MSFTN GP02.phx.gbl...
>When you navigate to webform2, webform1's gone. When you come back to it,
the server loads it again. You need to set the values in the Page_Load
event.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Max" <mmwrote in message
news:48******* *************** *@reader4.news. tin.it...
>>>I tried the following with Web Dev 2008 with -and- without Ajax Extension
3.5 - using IE 7
I reduced my webform1 to a Scriptmanager and an Updatepanel with 2
textbox and a button. I type something in textbox1, press the button and
a function runs and completes textbox2.
Then I hyperlink to webform2, come back, and not only textbox2 is blank
(one can thinks it was dynamically updated...) but also textbox1 is
empty !

What mistake I'm doing? this behaviour is evidently not possible
Thanks Max



Jun 27 '08 #4
when the browser navigates a to a page in the cache, it loads it from the
original cache image, any updates to the dom done by javascript are not
saved so will not appear by back navigation.

to get around this limitation most ajax libraries have some sort of history
support. for asp.net in in the futures extensions. you will need to write
javascript to support this (usually an ajax call to the server to get context
info on a nav back).

this is actually fairly a complex to do corectly, so you should read
serveral articles about browser history, bookmarks and ajax calls before
tackling.
-- bruce (sqlwork.com)
"Max" wrote:
I tried the following with Web Dev 2008 with -and- without Ajax Extension
3.5 - using IE 7
I reduced my webform1 to a Scriptmanager and an Updatepanel with 2 textbox
and a button. I type something in textbox1, press the button and a function
runs and completes textbox2.
Then I hyperlink to webform2, come back, and not only textbox2 is blank (one
can thinks it was dynamically updated...) but also textbox1 is empty !

What mistake I'm doing? this behaviour is evidently not possible
Thanks Max


Jun 27 '08 #5
Max
Bruce,
indeed the last Ajax extension implements history management, but it doesn't
apply to multi-page. That is, if you change webform, history points are lost
even if you come back, and this is a huge limitation in my opinion.
So "an ajax call to the server to get context info on a nav back" works
only on the same page at the current state of the art.
I'd like to intercept a "browser back button pressed" javascript event, but
I can't.
If I get webform1 by pressing back button, how can I detect that in
javascript? Or, what javascript event is thrown when getting webform1 in any
way, even with back button?
"bruce barker" <br*********@di scussions.micro soft.comha scritto nel
messaggio news:B9******** *************** ***********@mic rosoft.com...
when the browser navigates a to a page in the cache, it loads it from the
original cache image, any updates to the dom done by javascript are not
saved so will not appear by back navigation.

to get around this limitation most ajax libraries have some sort of
history
support. for asp.net in in the futures extensions. you will need to write
javascript to support this (usually an ajax call to the server to get
context
info on a nav back).

this is actually fairly a complex to do corectly, so you should read
serveral articles about browser history, bookmarks and ajax calls before
tackling.
-- bruce (sqlwork.com)
"Max" wrote:
>I tried the following with Web Dev 2008 with -and- without Ajax Extension
3.5 - using IE 7
I reduced my webform1 to a Scriptmanager and an Updatepanel with 2
textbox
and a button. I type something in textbox1, press the button and a
function
runs and completes textbox2.
Then I hyperlink to webform2, come back, and not only textbox2 is blank
(one
can thinks it was dynamically updated...) but also textbox1 is empty !

What mistake I'm doing? this behaviour is evidently not possible
Thanks Max



Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8365
by: Phil Stanton | last post by:
I am trying to create a text box in Word the same height as one on a report and then fill it with text. I can "read" the position of the text box from the report OK and create a text box in Word with the correct position, but it's size is identical to the size of the "ungrown" text box on the report. I need to create the text box in Word the same size as the grown text box on the report. So, in Design view the report has a text box...
0
2011
by: Waran | last post by:
I need to create a Auto suggests Textboox like in http://www.google.com/webhp?complete=1&hl=en I have completed this using AJAX.NET for Framework 1.1 . I have some design issues after the data is populated. For me the problem is I am getting more space after the item is selected. And the items are displayed in a combo when i am going for another search / selection without refreshing the page. I am expecting a same output as google's...
7
3773
by: Ivan Marsh | last post by:
Hey Folks, I'm having a heck of a time wrapping mind around AJAX. Anyone know of a simple, straight-forward example for pulling a simple query from mysql with PHP using AJAX? As I understand it I need a PHP script that pulls the query and dumps the data into XML format, that is called by triggering a javascript event that reads that file with XMLhttprequest.
1
2042
by: jeswin12 | last post by:
Im looking for a United States (US) state selector (hardcoded). ie., if you type in "mi" in the textbox, you should have a drop down (ajax) with missouri, missisipi displayed at the box below the textbox. The values of the state need not come from the database, it can be hardcoded. Thanks in advance.
5
3097
by: Mukesh | last post by:
Hi i want to use AJAX.net in my Existing Application I have already installed the ajax .net ..net 3.0 and using VS 2005 in the old application i have added a new web form then script manager and then update panel and some control in it to test it. When i run the programme ir does not work . imean ajax does not works
3
1773
by: Mukesh | last post by:
HI all I have created a user ctrl for user info. On which i have used some asp ctrls, .net Ajax (Atlas) Ctrls and validation as described below Name TxtBox1(RequiedFieldValidator, RagexValidetor) Email TxtBox2(RequiedFieldValidator, RagexValidetor) Mobile Txtbox3(RagexValidetor)
4
1127
by: davidson1 | last post by:
Hai friends, I am doing project in ASP.NET(vb) , I have Installed the software Microsoft ASP.NET 2.0 AJAX Extensions My Question is I have 2 Textbox Regno:- Textbox1 Name :- Textbox2
2
2696
by: mylog | last post by:
Hi all, I am having a small problem on getting the values of the dynamically generated textboxes in C# windows application. I have successfully read an xml file and put its key and value fields as Label and TextBox respectively. Now what I need is the user changes the values in one of the textBox and I need to get that value. The problem is I cannot get the values from the textbox i.e. I don't know how to get the particular textbox value. Can...
5
5614
by: techbytes | last post by:
I have a two textboxes.Depending onthe value of textbox1,textbox2 value changes.I didit in ajax. I want to know after getting the response,i donot know to write or overwrite the value into the textbox. can give any suggestions
0
9694
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10509
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10281
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10256
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10039
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6824
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5477
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5612
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3765
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.