Hi Arnab,
You can apply function while getting value from briefdesc. e.g.
<%=rsproduct("briefdesc")%> will be <%=StoreText(rsproduct("briefdesc"))%>
And function will be like:
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Function StoreText(theText)
StoreText = ""
on error resume next
StoreText = CStr(theText)
if (len(StoreText) > 0) Then
StoreText = Replace(StoreText, """", """, 1, -1, 1)
StoreText = Replace(StoreText, "'", "''", 1, -1, 1)
StoreText = Replace(StoreText,"<","<", 1, -1, 1)
StoreText = Replace(StoreText,">",">", 1, -1, 1)
StoreText = Replace(StoreText, vbCrLf, "<BR>", 1, -1, 1)
end if
End Function
--------------
Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
|