this is the javascript code:
<script language="javascript">
var count = "2000";
function limiter(){
var tex = document.Form1.comment.value;
var len = tex.length;
if(len > count){
tex = tex.substring(0,count);
document.Form1.comment.value =tex;
return false;
}
document.Form1.limit.value = count-len;
}
</script>
this is the layout of the html code:
<textarea id="taproblem" name="comment" wrap="hard" rows="6" cols="100" onkeyup="limiter()" class="label2"></textarea><br>
<script language="javascript"> document.write("<input type=text name=limit size=4 readonly value="+count+">");
</script>
The
VB code is that raises the error happens on the page submit event and is as follows:
Private Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Dim iCD = taproblem.Value
Do you need more information?
Thank You for your assistance!