DRW resolt (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


yaronbb -> DRW resolt (10/24/2007 9:46:26)

Hi to all,
I have form with text area and when I type like that :
"hello

My name is yaron

Thanks"

In the result page will look like this :

"hello my name is yaron thanks"

How can I change the result to look like the same as I write it?




William Lee -> RE: DRW resolt (10/24/2007 9:57:04)

Looks like it is missing the CR(carriage return)

Can you show the asp snippet for that textarea? You may need to use the Replace function to change to vbCrLf.




yaronbb -> RE: DRW resolt (10/24/2007 10:03:12)

Hi, if I put the result in the text area it look good, this is the val to show the result - <%=FP_Fieldval(fp_rs,"NNews")%>

And this is the code :

<!--#include file="_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>לרכיב תוצאות מסד נתונים בדף זה אין אפשרות להציג את תוכן מסד הנתונים. הדף חייב לכלול שם קובץ עם סיומת '‎.asp', והאתר צריך להתארח בשרת התומך ב- Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM NNews Where ID = ::ID::"
fp_sDefault=""
fp_sNoRecords=""
fp_sDataConn="db"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_iDisplayCols=5
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="98%">
<tr>
<td width="100%">
<p dir="rtl">
<font face="Tahoma" style="font-size: 8pt" color="#17375F"> <%=FP_FieldVal(fp_rs,"DDtate")%>
-
<%=FP_FieldVal(fp_rs,"TTime")%></font></td>
</tr>
<tr>
<td width="100%">
<font face="Tahoma" style="font-size: 8pt; font-weight: 700" color="#FF6600"> 
כותרת :
<%=FP_FieldVal(fp_rs,"TTitle")%></font></td>
</tr>
<tr>
<td width="100%"></td>
</tr>
<tr>
<td width="100%">

<%=FP_Fieldval(fp_rs,"NNews")%></td>
</tr>
<tr>





William Lee -> RE: DRW resolt (10/24/2007 10:06:38)

quote:

<%=FP_Fieldval(fp_rs,"NNews")%>


Try change to
<%=Replace(FP_FieldVal(fp_rs,"NNews"), vbCrLF, "<br>")%>





yaronbb -> RE: DRW resolt (10/24/2007 10:09:24)

great!!!

thanks working good!!!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875