Cannot get text value from editor in gridview

  •  04-22-2009, 5:16 PM

    Cannot get text value from editor in gridview

    Hello,
     
    I have the editor embedded in a gridview and it works great.
     
    I just want to preview the live content before I submit it to the database.
     
    The editor doesn't use the javascript in the preview mode. Below is some code that I want to use to show the content of the editor in a label box that is not embedded in the gridview.
     

    Protected Sub btnupdatepreview_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnupdatepreview.Click

     

    Dim txt1 As CuteEditor.Editor = GridView1.FindControl("txtmenu")

    lblpreview.Text = txt1.Text

    End Sub

     
    Is this the correct way of doing it ?
     
     
     
     
View Complete Thread