HTMLEditor control in ASP.NET 4.0?

ApurvA

New member
JAI MATADI ..

hello .. i m learning AJAX TOOLKIT in ASP.NET 4.0

rite now i m learning "HTMLEditor Control" in it ..

i want to use SQL DATABASE CONNECTION in it .. means if the user clicks on a BUTTON after writing in HTMLEditor , it will show in a GRIDVIEW ..

but i m getting problem .. i m able to insert the value in database and able to fetch also in gridview but with HTML CHARACTERS like .. if i have BOLDED the text it will coming like this in gridview ..

GridviewExample : <span style="font-weight: bold;">hello .. </span><br />


now here is my code ..
-------------------------------------------
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text += "you have Entered : " & Editor1.Content

Dim conn As New SqlConnection(connstr)
conn.Open()
Dim qry As String
qry = "insert into Table2 (comment) values('" & Editor1.Content & "')"
Dim cmd As New SqlCommand(qry, conn)
Dim i As Integer
i = cmd.ExecuteNonQuery
conn.Close()
ab()
Editor1.Content = ""









End Sub

-----------------------------------------

please tell me how can i remove those HTML ELEMENTS comming in my GRIDVIEW or should i use another tool instead of GRIDVIEW to avoid this .. which one if its that ..

please help me ..

thank you .

MITT ..
 
Back
Top