code_junkie

Render < instead of < in ASP.NET

Nov 12th, 2011
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. "SELECT tblEmpID.empid AS [Empl ID], tblEmpID.posno AS [Pos #], [name] & ""<br />"" & [jcn] & ""("" & [jcc] & "")"" AS [Name/Job], [orgno] & "" - "" & [depname] AS Department, tblEmpID.[status] AS Status " & _
  2. "FROM tblEmpID " & _
  3. "ORDER BY [orgno] & "" - "" & [depname], tblEmpID.name "
  4.  
  5. Name
  6. Job Description
  7.  
  8. < and >
  9.  
  10. If e.Row.RowType = DataControlRowType.DataRow Then
  11. Dim cells As TableCellCollection = e.Row.Cells
  12.  
  13. For Each cell As TableCell In cells
  14. cell.Text = Server.HtmlDecode(cell.Text)
  15. Next
  16. End If
Add Comment
Please, Sign In to add comment