473,386 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

JavaScript\PopulateTextbox

JR
I have a 3rd party asp.net grid. It has some clientevents that allows
the user to attach js code to. I have js in one of the events, when
fired I want to populate an asp.net:textbox control. The script works
for the event, but I can' t get it to populate the asp.net:textbox.
This should be possible, shouldn' t it; Below is the script:

if (G0IsEditing())
{alert("Edit Mode");
TextBox1.text="test";
}
return;
TIA

Nov 18 '05 #1
1 941
Hi

document.forms[0].TextBox1.value = "blah";

--
Best Regards
Vidar Petursson
==============================
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
==============================
"JR" <JR*****@att.net> wrote in message
news:OU**************@tk2msftngp13.phx.gbl...
I have a 3rd party asp.net grid. It has some clientevents that allows the
user to attach js code to. I have js in one of the events, when fired I
want to populate an asp.net:textbox control. The script works for the
event, but I can' t get it to populate the asp.net:textbox. This should be
possible, shouldn' t it; Below is the script:

if (G0IsEditing())
{alert("Edit Mode");
TextBox1.text="test";
}
return;
TIA

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.