In experimenting around I find that:
<input type="text" name="mytext" > will work if I use javascript
document.aspnetForm.mytext.value = "Hi there";
However when the textbox is an asp: like:
<asp:TextBox ID="TextBox1" runat="server">My text 2</asp:TextBox> will
NOT WORK
with javascript
: window.document.aspnetForm.TextBox1.Text = "Hi
again!";
It gives me an error message that states:
"window.document.aspnetForm.TextBox1 is null or not an object"
Steve Kershaw wrote:
I checked out the code you referenced and it all looks like server side
code to me. None of it is javascript. I need to run a javascript
"function" that collects the .text from the asp: textbox. But the
javascript dosen't recognize the asp:textbox as an HTML object.
Hmm....
Thanks
Steve