AfterUpdate event (in fronpage)

  • Thread starter Thread starter Wayne-I-M
  • Start date Start date
W

Wayne-I-M

Hi

I have a box on an asp form that users can input some text. After they have
inserted the text I would like another box filled with the same text.

The same as in access

Private Sub TextBox1_AfterUpdate()
Me.TextBox2 = Me.TextBox1
End Sub

Of course they can then alter the text in the 2nd box if they wish to but
most people won't.

Thanks for any help
 
Use Javascript in the onchange event is one solution:

<form name="testform" method="post">
<textarea cols="20" name="TextArea1" rows="2"
onchange="document.forms['testform'].TextArea2.value =
document.forms['testform'].TextArea1.value"></textarea><br />
<br />
<textarea cols="20" name="TextArea2" rows="2"></textarea>
</form>

--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
 
Thank you


--
Wayne
Manchester, England.



Ronx said:
Use Javascript in the onchange event is one solution:

<form name="testform" method="post">
<textarea cols="20" name="TextArea1" rows="2"
onchange="document.forms['testform'].TextArea2.value =
document.forms['testform'].TextArea1.value"></textarea><br />
<br />
<textarea cols="20" name="TextArea2" rows="2"></textarea>
</form>

--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.



Wayne-I-M said:
Hi

I have a box on an asp form that users can input some text. After they
have
inserted the text I would like another box filled with the same text.

The same as in access

Private Sub TextBox1_AfterUpdate()
Me.TextBox2 = Me.TextBox1
End Sub

Of course they can then alter the text in the 2nd box if they wish to but
most people won't.

Thanks for any help
.
 
Back
Top