navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

DRW resolt

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> DRW resolt
Page: [1]
 
yaronbb

 

Posts: 40
Joined: 10/5/2006
Status: offline

 
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

 

Posts: 1041
Joined: 1/25/2002
From: Singapore
Status: offline

 
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.

_____________________________

William Lee


(in reply to yaronbb)
yaronbb

 

Posts: 40
Joined: 10/5/2006
Status: offline

 
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>


(in reply to William Lee)
William Lee

 

Posts: 1041
Joined: 1/25/2002
From: Singapore
Status: offline

 
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>")%>



_____________________________

William Lee


(in reply to yaronbb)
yaronbb

 

Posts: 40
Joined: 10/5/2006
Status: offline

 
RE: DRW resolt - 10/24/2007 10:09:24   
great!!!

thanks working good!!!

(in reply to William Lee)
Page:   [1]

All Forums >> Web Development >> Microsoft FrontPage Help >> DRW resolt
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts