473,395 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Strange textbox behaviour: re-creatable

Hi,

Make up a very simple project as follows:

1 aspx form
3 web user controls (referred to as A, B, and C)

"A" web user control:
Put 1 textbox and 1 button on this web user control. (You must do
this exactly!)

"B" web user control:
Put 1 textbox and 1 button on this web user control as well.

"C" web user control:
Put "A" and "B" web user controls on to this web user control.
Then put a multi tab strip and a multi tab page control on this
control. Now, wire up the multi tab strip and multi tab page controls
correctly so that 2 multi tab strips tabs "hold/point to" the "A" and
"B" web user controls.

Now run the test app.

Click on the second multi tab strip, so that you see the "B" web user
control, then type something inside the textbox. Now press the return
key. The problem is that no post back occurs. (But carry on reading
for the interesting twist.) If you have your speakers turned on, you
might hear a "ping error" sound.

Please notice that if you click the first tab, and type in text in to
the textbox that is on the "A" web user control, a postback does
occur.

Also notice that if you set the autopostback property of the textbox
on "B" web user control to true, you still get the same result.

Also, if you create a TextBox1_TextChanged server side event handler,
you still get the same result.

Here's the really intesting part of this experiment: edit the web user
control "A", and either remove the 1 button (leaving the 1 textbox),
or remove the 1 textbox (leaving the button). Now re-run the test
app, and repeat the main test above. When you press the return key on
the textbox inside web user control "B", the postback works! (You can
also remove both textbox and button on web user control "A" to ensure
that the postback works on web user control "B".)

I'm having other more serious problems that are very much related to
this issue above. In my main project (away from this test example),
when I press the return key, I do get a postback, but the navigation
unexpectedly leaves the aspx form that contains my webuser controls
and takes me back to the home page!!! (This is causing me some
problems!)

TIA for any thoughts,
-dnw
Nov 18 '05 #1
0 1215

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

Similar topics

11
by: F. Da Costa | last post by:
Hi, This is a strange issue I'v been staring at for half a day now. It concerns catching keys via the onkeydown handler. In IE5+ it works fine but in Moz 1.6 (& Firebird 0.7+) it behaves most...
0
by: tomasio | last post by:
dear group, i made a template with css at http://tomasio.laudatio.com/jobs/Claudia/Cb_template.html. the according stylesheet is to be found at...
0
by: john | last post by:
Rich Text Box in Access form Hello: For example i have to tables in access: PERSON and ADDRESS in a one to many relation. And now i want to have a main PERSON form with a subform ADDRESS on it....
1
by: Peter Proost | last post by:
Hi group I've got a usercontrol containing a textbox and alongside the textbox there's a combobox. I draw this control on top of a grid. So when the user clicks certain columns in the grid the...
1
by: clickon | last post by:
For testing purposes i have got a 2 step WizardControl. Eqach step contains a text box, TextBox1 and TextBox2 respectively. If i put the following code in the respective activate event handlers...
7
by: ChrisM | last post by:
I posted this last week, so apologies for re-posting but I'm still looking for a sensible answer, and I'm hoping somone new might be able to cast some light... Basically, I have a fairly...
2
by: Hans Kesting | last post by:
Hi, Navigating with "tab" and "shift-tab" between textbox and radiobutton has sometimes some strange results. Some example fields: - several textboxes (say: tb1, tb2) - some radiobuttons...
2
by: zacks | last post by:
I am developing an app in VS2005 (actually in VB.NET but this question, I believe, would apply to any .NET language) that is used to design the contents of an XML file. One of potential items that...
0
by: wimpos | last post by:
Hi devs I'm develloping for Windows Mobile 6 (HTC TYTN II) in C# .NET 2.0 Information: I defined a windows keyboard hook, so my application listens to all key hits. When one specific key is...
8
by: Dox33 | last post by:
I ran into a very strange behaviour of raw_input(). I hope somebody can tell me how to fix this. (Or is this a problem in the python source?) I will explain the problem by using 3 examples....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...

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.