Does it work if you do as it says and remove the brackets?
<a href="#"
onclick="setTextBoxValue
'<%#Container.DataItem("SerialNumber")%>','<%#Cont ainer.DataItem("EquipmentCategory")%>'">
<%#Container.DataItem("SerialNumber")%> </a>
See
http://msdn.microsoft.com/library/de...499137b3f7.asp
"To call a Sub procedure from another procedure, type the name of the
procedure along with values for any required arguments, each separated by a
comma. The Call statement is not required, but if you do use it, you must
enclose any arguments in parentheses.
The following example shows two calls to the MyProc procedure. One uses the
Call statement in the code; the other doesn't. Both do exactly the same
thing. "
Call MyProc(firstarg, secondarg)
MyProc firstarg, secondarg
<zh*****@gmail.com> wrote in message
news:11*********************@i39g2000cwa.googlegro ups.com...
<script type="text/vbscript">
sub setTextBoxValue(a1,a2)
thedelete.deleteTextBox.value = a1
end sub
</script>
<td>
<a href="#"
onclick="setTextBoxValue('<%#Container.DataItem("S erialNumber")%>','<%#Container.DataItem("Equipment Category")%>')">
<%#Container.DataItem("SerialNumber")%> </a>
</td>
when i click on <%#Container.DataItem("EquipmentCategory")%>')
then it will call sub setTextBoxValue(a1,a2) function
but it return "Can't use parentheses when calling a Sub"
may i know what is the problem??
i can create a function that more than 1 variable??
or my database connection or variable got problem??
help...