|
-
Apr 29th, 2005, 07:46 AM
#1
Thread Starter
Frenzied Member
JavaScript and ASP.NET Server Control
Hello everybody,
I have a TextBox server control and I need to set the text using JavaScript. I am using following code but this doesnt work for me.
Code:
document.getElementById("daysTextBox").value = "Some Text";
-
Apr 29th, 2005, 07:57 AM
#2
Re: JavaScript and ASP.NET Server Control
This line looks fine, I think you need to look elsewhere for the issue - is the javascript procedure this line is contained within, being called & executed properly? Does the final HTML list this control daysTextBox with an Id attribute in it's tag?
-
Apr 30th, 2005, 01:41 PM
#3
Re: JavaScript and ASP.NET Server Control
How are you running it? Adding an attribute to some existing element?
-
Apr 30th, 2005, 03:14 PM
#4
Thread Starter
Frenzied Member
Re: JavaScript and ASP.NET Server Control
This statement is written in a function and the function is executed on onChange of a DropDown.
-
May 1st, 2005, 01:26 AM
#5
Re: JavaScript and ASP.NET Server Control
I didn't understand that. Show all relevant code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|