Bug? Strange between Wizard control and client javascript code

G

Guest

I have two textboxes (tbox1, tbox2) in a step of Wizard control. I use
javascript code to clear tbox2 when onblur occurring on tbox1:

tbox1.Attributes["onblur"] = "javascript:var tbox2 =
document.getElementById('<%=tbox2.ClientID%>'); tbox2.value='';";

1) I tried to put some non-empty string data in tbox2 and press next button.

2) Then I go back to previous step and leave focus of tbox1 and the screen
showed tbox2 is cleared by the javascript code.

3) I click next button again However, the code in Wizard1_NextButtonClick
still get the value of tbox2's previous non-empty string value.

However, I did create a simple test page and the step (3) got the expected
empty string.

Anything setting I missed? Or the wizard control's bug?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,121
Latest member
LowellMcGu
Top