Groups | Blog | Home
all groups > asp.net > may 2004 >

asp.net : form name problem



Jason DeFontes
5/10/2004 12:32:49 PM
You can use: document.forms[0].field.value = 0

-Jason

[quoted text, click to view]
Ben Dewey
5/10/2004 3:45:25 PM
Studio.NET's Javascript debugger is very good. Place a breakpoint in your
javascript code and you can use that command window or watch variables to
see any form objects you are interested in.

Hope this helps.


[quoted text, click to view]

Harry
5/10/2004 11:39:30 PM
Dear All,

i am using asp.net, i have assign a form name to a form, e.g.

<form name='myForm' runat='server'>
<input type='text' name='field' value=''>
</form>

i have a javascript function, i am going to

<script>
document.myForm.field.value = 0
</script>

while i run i, the form name has been changed.

so, document.myForm.field.value has bug............

How to solve this problem, besides using document.all.field.value

thank you

Regards,
scli

AddThis Social Bookmark Button