By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,190 Members | 1,555 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,190 IT Pros & Developers. It's quick & easy.

JavaScript\PopulateTextbox

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.