I have this line of code as I am trying to reset or clear the content of the editor in javascript.
I am new to javascript. The editor is inside an ajax updatepanel control that has the update set to 'conditional' and childrenastrigger set to 'false' if all this matters.
this is what I have and it always gives me an error:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
I am new to javascript. The editor is inside an ajax updatepanel control that has the update set to 'conditional' and childrenastrigger set to 'false' if all this matters.
this is what I have and it always gives me an error:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Me.IsPostBack Then
Button1.Attributes.Add("onclick", "$find(" + RadEditor1.ClientID + ").set_html('');return false;")
End If
End Sub