title: ASP.NET Datagrid HTML Output (Display)
body: <p>Currently I am binding a dataset with a datagrid.</p>
  
  <pre><code>ds = query.ExecuteReadQuery("select PollQuestionText as 'Survey Question',    
  PollAnswer1Text as 'Selection 1', PollAnswer2Text as 'Selection 2', PollAnswer3Text  
  as 'Selection 3', PollEnabled 'Status'  from tbl_pollquestions")
  
  For Each row As Data.DataRow In ds.Tables(0).Rows
          If row.ItemArray(4).ToString = "0" Then
              row.ItemArray."&lt;a href=""""&gt; &lt;img src=""img/box_icon_edit_pencil1.gif"" border=""0""&gt; &lt;/a&gt;"
  
          ElseIf row.ItemArray(4).ToString = "1" Then
              row.Item(4) = "&lt;a href=""""&gt; &lt;img src=""img/box_icon_edit_pencil2.gif"" border=""0""&gt; &lt;/a&gt;"
          End If
  
      Next
  
  GridView1.DataSource = ds
  
  GridView1.DataBind()
  </code></pre>
  
  <p>Since I am inserting html code, why this is not being converted to html?</p>
  
  <p>The output result is all text. (Suppose an icon is being displayed with no redirect url)</p>
  
  <p>I dont know why.</p>
  
  <p>Thanks</p>