Hi,
I have an javascript function:
function handleSelectClick()
{
selectObj = document.forms[0].functionselect; // <select> control in
which I have many names of people
textObj = document.forms[0].functioninput; //<input> control in which I
write the desired name(there is a search function which helps to find the
names)
resultObj = document.forms[0].result; //other control(asp:TextBox), in
which I would like to pass the desired name after onClick event of the
<select>
resultObj.value=selectObj.options[selectObj.selectedIndex].text;
resultObj.text = selectObj.options[selectObj.selectedIndex].text;
}
This function is in my html code and is put onClick event of the select
control. When I select a name it goes to the result control(asp:TextBox).
This works fine. When I try to do the folloing I havn't any success:
I put an asp:Button ans asp:Label on the Form and On_click event of the
asp:Button I write:
Label1.Text = TextBox1.Text; and it doesn't work. How can I pass the value
from the TextBox1 to the Label1.TextBox1 shows the desired name.
Please, could you hel me here!
Thank you!
Viktor