| .NET DotNet Forum Index » JScript .NET Forum » Output Encoding question.... |
|
Page 1 of 1 |
|
| Author |
Message |
| Srini... |
Posted: Fri Oct 30, 2009 9:36 am |
|
|
|
Guest
|
In one of my .net applications, i am reading the data (example user
firstname) from the Database and assigning that to a javascript array to
display it in a ListView in readonly mode.
var firstNames = new Array();
if(<%=FirstNames.Count %>>0)
{
<%for(int i=0; i<FirstNames.Count;i++)
{%>
firstNames[<%=i%>] = "<%=FirstNames[i]%>";
<%}%>;
}
Question:
As I am taking the Data directly from Database which is trusted source and
displaying it in UI in ready mode using javascript, do i need to encrypt the
firstname here? |
|
|
| Back to top |
|
|
|
|