Re: how to get the conents of editor on server side

  •  04-26-2010, 12:50 AM

    Re: how to get the conents of editor on server side

    hwllo
     
    u have used the code in .aspx page
    where s i need the the value of the editor in .aspx.vb  page
     
    i have a mailing function which is called in the .aspx.vb page
     
    how can  i get the value in .aspx.vb page  so that i can use it in
    Protected Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click
     
    if u se it in coe behind ie i n aspx.vb page i get editor1 not defined
    i also tried with the below
     

    <script type="text/javascript">

     

    function getHTML()

    {

     

    var editor1 = document.getElementById('<%=Editor1.ClientID%>');

    document.getElementById("txtmatter").value = editor1.getHTML();

    alert(document.getElementById("txtmatter").value)

    }

    </script>

     
    and in the server side code behind used
    txtmatter.value
    but i get txtmatter is undefined
     
    i also tried the above methd but i get the balnk value
     
View Complete Thread