G
Guoqi Zheng
Probably very simple question since I am new in Dot Net....
I have a DisplayHtml function in moudle1.vb which is:
Function DisplayHtml(ByRef fstrText As String)
' replace line break with <br> in html
fstrText = Replace(fstrText, Chr(10), "<br>")
'fstrText = Replace(fstrText, Chr(13), "<br>")
Return fstrText
End Function
I have the following on apsx page...
<%# DisplayHtml(DataBinder.Eval(Container.DataItem, "Content"))%>
Of course you know what I want to do... I want to change link break to Html
code < br>.
However, I met an error of "Compiler Error Message: BC30451: Name
'DisplayHtml' is not declared."
Where can I look for the error? What did I do wrong???
--
Kind regards
Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com
I have a DisplayHtml function in moudle1.vb which is:
Function DisplayHtml(ByRef fstrText As String)
' replace line break with <br> in html
fstrText = Replace(fstrText, Chr(10), "<br>")
'fstrText = Replace(fstrText, Chr(13), "<br>")
Return fstrText
End Function
I have the following on apsx page...
<%# DisplayHtml(DataBinder.Eval(Container.DataItem, "Content"))%>
Of course you know what I want to do... I want to change link break to Html
code < br>.
However, I met an error of "Compiler Error Message: BC30451: Name
'DisplayHtml' is not declared."
Where can I look for the error? What did I do wrong???
--
Kind regards
Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com