‘This is an HTML TextArea Control Set To Run As A Server Control…
<TEXTAREA OnKeydown="AllowTabCharacter()" style="Z-INDEX: 102; LEFT: 29px; WIDTH: 602px; POSITION: absolute; TOP: 46px; HEIGHT: 353px" rows="22" cols="72" id="TEXTAREA1" name="TEXTAREA1" runat="server">
<script language="JavaScript">
function AllowTabCharacter() {
if (event != null) {
if (event.srcElement) {
if (event.srcElement.value) {
if (event.keyCode == 9) { // tab character
if (document.selection != null) {
document.selection.createRange().text = '\t';
event.returnValue = false;
}
else {
event.srcElement.value += '\t';
return false;
}
}
}
}
}
}
</script>