Ask a Question related to ASP.NET General, Design and Development.
-
Charles A. Lackman #1
Please Help With Java Script and ASPX
How do I retrieve a value from an ASP.NET Textbox in Java Script.
The following code returns Null, What am I doing wrong?
var AName = document.GetElementById("txtName.Value")
Changing "Value" to "Text" also returns Null, Also, if I remove "Value"
[object] is returned.
txtName is a ASPX textbox that the visitor places their name into.
Thanks
Chuck
Charles A. Lackman Guest
-
CF Grid / Java Script / Action Script
Hi, Does anyone know of a good reference for the attributes CFgrid exposes in a flash form? eg. I would like to select the first row on load. ... -
HELP: No POST data found from a ASPX Script HTTPWebRequest into a PHP Page
We are working with a vendor who is trying to post some some XML data to us. They are using an ASPX script to post to a PHP page of ours. The... -
Mac and Java Script?
Hello. I have an asp page with java script that calls a clicked event on some radio buttons. It works as expected except for Mac users. They are... -
Do you need to use Java script in ASP .Net?
Hi, Experts, With the great functionalities in ASP .net, do we still need to use JavaScript? Thanks Jerry -
why doesn't this script creation, from .aspx.vb work, for this event handler???
where szStartDate, szEndDate, szStatus, szMsgType, szClient, szFilter are all strings declared and containing data as this code executes... '... -
Marina #2
Re: Please Help With Java Script and ASPX
Try document.getElementById("txtName").value
Javascript is case sensitive. Also, txtName.Value isn't a name of an object.
txtName is the object - and you want to get the value of it.
"Charles A. Lackman" <Charles@cet.com> wrote in message
news:urXk5PMQDHA.3020@TK2MSFTNGP10.phx.gbl...> How do I retrieve a value from an ASP.NET Textbox in Java Script.
>
> The following code returns Null, What am I doing wrong?
>
> var AName = document.GetElementById("txtName.Value")
>
> Changing "Value" to "Text" also returns Null, Also, if I remove "Value"
> [object] is returned.
>
> txtName is a ASPX textbox that the visitor places their name into.
>
> Thanks
> Chuck
>
>
>
Marina Guest



Reply With Quote

