I want to add several events to the attributes of a text box web control so that it renders like this:
How is this done?
I have tried it using different lines, but one overwrites the other instead of adding to it.
I have found that this doesn't work:
Code:
<INPUT TYPE=text onchange="CheckDate(this)" onkeydown="FormatDate(this, window.event.keyCode,'down')"
onkeyup="FormatDate(this, window.event.keyCode,'up')">
How is this done?
I have tried it using different lines, but one overwrites the other instead of adding to it.
I have found that this doesn't work:
Code:
myText.Attributes.Add("onchange","CheckDate(this)")
myText.Attributes.Add("onkeydown","FormatDate(this, window.event.keyCode,'down')")
myText.Attributes.Add("onkeyup","FormatDate(this, window.event.keyCode,'up')")