G
Guest
I have a href link in a Datalist
<a href="addtocart.aspx" onmouseover="void
validateNumericField(document.Form1.txtphone);" onkeyup="jump();" >
I'm trying to validate a TextBox with Id ="txtphone" as above
The TextBox is also in a Datalist.
I have declared the textbox in the OnItemDataBound of the DataList like so:-
Dim txt As TextBox = CType(e.Item.FindControl("txtphone"), TextBox)
But my Javascript isn't firing it seems its not seeing the right ID's
Any Ideas what 'm doing wrong?
But ites not working?
<a href="addtocart.aspx" onmouseover="void
validateNumericField(document.Form1.txtphone);" onkeyup="jump();" >
I'm trying to validate a TextBox with Id ="txtphone" as above
The TextBox is also in a Datalist.
I have declared the textbox in the OnItemDataBound of the DataList like so:-
Dim txt As TextBox = CType(e.Item.FindControl("txtphone"), TextBox)
But my Javascript isn't firing it seems its not seeing the right ID's
Any Ideas what 'm doing wrong?
But ites not working?