populating the editor via listbox c#/javascript, how to refernce the textareas ID

  •  01-13-2011, 5:43 AM

    populating the editor via listbox c#/javascript, how to refernce the textareas ID

    hi all,
     
    what im trying to do is populate the editor with a value from a listbox on double click, ive added the attributes but i cant figure out how to reference the editors ID to populate it
     
    this is on the page_load event, obviously the editor1.text ="test"; works, but i cant get the editor to be populated
    the listitem var works fine on the alert its just the putting it in the editor im having trouble with 
     
    can anyone help me out?
    Thanks 
    1. Editor1.Text = "test";  
    2.   
    3. var ListItem = "document.forms[0]['" + FieldsList.ClientID + "'].value";  
    4. //FieldsList.Attributes.Add("ondblclick", "BLOCKED SCRIPTalert(" + ListItem + ");");  
    5. FieldsList.Attributes.Add("ondblclick""document.forms[0]['Editor1'].Value +=" + ListItem);  
     
View Complete Thread