View Single Post
  #2 (permalink)  
Old March 10th, 2008, 06:11 AM
vishnu108mishra vishnu108mishra is offline
Authorized User
Join Date: Nov 2007
Location: Allahabad, UP, India.
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts

g is my code--
I have resolved my problem..

following is code..
in CS file i added this line ..
lstShowHistory.Attributes.Add("onchange", "ShowText();");

and by javascript I set the value of textbox, but it works only on by selecting item from mouse.
How can I select value from the listbox by arrow key of keyboard?? Have you any idea...
function ShowText()
    var txtMessage =

document.getElementById('lstShowHistory').options[document.getElementById('lstShowHistory').selected Index].text;//GetComboText(document.g

    document.getElementById('txtUrlLink').value = txtMessage;
    document.getElementById('helptypediv').style.visib ility='hidden';return false;