2
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by bikash123
0

<script language="javascript">
function doScript()
{
myControl1.UserText = frm.txt.value;
}
</script>


In above code you will have to make some changes like :

instead of myControl1.UserText
use document.frm.getElementById("Here the Id will be some concated string with myControl1$.**")

** You can view the viewsource of html page to see the id of that textbox.


Another thing is that

In stead of frm.txt.value

use document.frm.getElementById("txt").value

0

<script language="javascript">
function doScript()
{
myControl1.UserText = frm.txt.value;
}
</script>


In above code you will have to make some changes like :

instead of myControl1.UserText
use document.frm.getElementById("Here the Id will be some concated string with myControl1$.**")

** You can view the viewsource of html page to see the id of that textbox.


Another thing is that

In stead of frm.txt.value

use document.frm.getElementById("txt").value

i was doing this but when i write document.frm........in place of getElementById i m getting getElementsByTagName but when i write
document.....i get getElementById but after doing this R&D also the application is not working.
I m not getting
Here the Id will be some concated string with myControl1$.**")

0

just do document.getElementById("").value;

first comment out the javascript and see the viewsource and find the rendered Id of the Usercontrols's TextBox and put it .

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.