VbCrLf Not Working

Is there something that I need on my computer in order for vbCrLf to work? Anytime I include that in my ASP code it never creates a line break... it just ignores it. I have to change it to "<br>" Am I doing something wrong?

View Replies


ADVERTISEMENT

VbCrLf ?

how to use vbCrLf or give me some direction on where to look for some information?

View Replies View Related

Chr(13) And VbCrLf

whats the difference between Chr(13) and vbCrLf
which one to use where?

View Replies View Related

VbCRLF

i observed many asp codes with vbCRLF like:

Response.write "</select></td>" & vbCRLF

what for vbCRLF is used?

View Replies View Related

VbCrLf In Jscript

Im still working on some <%@ LANGUAGE=JScript %> code ;).What is the same command as VbCrLf in JScript?I just want my HTML to jump one line down.

View Replies View Related

Combine The LEFT And VbCrLF Thingy

I have used thecode which is below to get x characters on to display

<%= LEFT(rsName.Fields.Item("columnname").Value,50)%>

It works fine but when I use this same code to get x characters plus display it using VBCRLF, with the <br> with writing the code :

<%=Replace LEFT
(Recordset1.Fields.Item("Detail").Value,VbCrLf,"<br><br>",50)%>

it gives me error so please can you tell me how can i trim the characaters and at the same time use VBCRLF. why does this above code with LEFT + vbCrLF doesn't work.

View Replies View Related

Vbcrlf At End Of Textarea Comments Leads To Problems

An important thing to mention here is that when this data goes into my database table i'm using the UPDATE function to modify pre-existing records in the database.

The form that contains my textarea also populates the textarea with the current data from the database so when I submit data, when the page refreshes I should see, in the textarea, the data that I just submitted.

Another things worth mentioning is that when I UPDATE this information in the database, the content from the textarea goes through a instances of the replace() function. There is one in particular that I need but is causing problems:

strTextInput = Replace(strTextInput,chr(13) & chr(10),"<br />")

when the data from the textarea contains a line break I want that to become a break tag in the database. This works well EXCEPT for a line break that seems to always exist at the end of the text in the textarea when I submit my form to be processed. This trailing line break exists regardless of any attempts. If I have: Code:

View Replies View Related

A String Has No Line Feeds Or Cariage Retunrs Or Spaces, Need To Insert A VbCrLf

When users fill out my text area field, there is a chance that there
will be no line feeds or cariage returns or spaces and just one really
long word.

THIS CAUSES A MAJOR PROBLEM! What I am trying to do is
force a vbCrLf if a string is long than 80 characters in a row. So if
a string is a total of 500 characters with no line feeds, spaces, or
returns, I want to force a vbCrLf every 80 characters so that is
doesn't overflow my preview text field on the next page.

Any suggestions on how the algorithm would be for this in VBscript
ASP?

View Replies View Related

Display VbCrLf's From Textarea To Textarea

how to dispaly text from a text area on a page as page copy (using the replace function)

How do I display this text inside another textarea, holding formatting? All variations of 'what I thought would work' do not.

I am using the following function:

Function DisplayMemo(theText)
DisplayMemo = ""
on error resume next
DisplayMemo = CStr(theText)
if (len(DisplayMemo) > 0) Then
DisplayMemo = Replace(DisplayMemo, vbCrLf, "<br>", 1, -1, 1)
end if
End Function

calling it like:

<textarea cols=119 name=ownSubmitted rows=7>" & DisplayMemo(getInfo(0)) & "</textarea>

NOTE: getInfo(0) is a variable holding my value. Yes the value is there. It is showing the text I want, however the <br>'s are rendered inside the text area?

View Replies View Related

"vbCrLf"

I'm converting a page of ASP into PHP and I've stumbled onto something I've never come across in ASP. Whoever coded the ASP is trying to format a message into an email message that makes sense to a reader.

$a = "A request form has been filled out and submitted" & vbCrLf
$a = $a & "by " $company & $email & vbCrLf
$a = $a & "on " & date("F d, Y") & " at " & date("H:i:s") & "." & vbCrLf & vbCrLf
$a = $a & "The following:" & vbCrLf & vbCrLf
$a = $a & "Snack Mixes-" & vbCrLf & vbCrLf

This is just a sampling. What is it doing? If it is a specific function what would I use that is similar in PHP? If I know what it does I can find out at least. Is it a line break or something? The code above is partly converted to PHP as you see the form elements aren't request.form. What is the "vbCrLf" part of it?

View Replies View Related

ASP Not Working Ok In PWS

I just installed PWS on 2 machines (XP & 98).

The problem is that I can run the ASP files in the wwwroot folder when I use http://localhost from my browser or RUN (and that's for the default.asp). But the asp files do not work when I call them from a hyperlink in an HTML file.

View Replies View Related

CDO Is Not Working

After I moved the site to new server the mailing method stoped working , the cdo pull the email from sql database on the same server .. although it says sent to # recipients.
I send a webpage (newsletter) exisit on the server "I use full url" also the registration page gives when registration the error: CDO.Message.1 error '80040218'

Unknown Error

/extra/news/reg3.asp, line 251

line 251 is objSendMail.CreateMHTMLBody "http://www.example.com/newsletter.html"
I saw description of the error it sayes that I have to use full url ...but I am using it ...
any Idea ...

View Replies View Related

Asp Working Or Not

I have a sever 2003 machine of which I am trying to host a webisite on. The webpages I uploaded has lots of .asp files that could not be open. I'd contact the website disgner and complains about it and an he blaims it on my server not supporting asp technology.
My question today, is there a way to test what the problem really is?

View Replies View Related

FSO Not Working

In my serverside script I have gone down to the bare bones and the following doesn't seem to work:

dim fs
dim fst
dim LineOut
set fs = Server.CreateObject"Scripting.FileSystemObject")
set fst = fs.CreateTextFile("C:TEMPhome.tmp",True)

lineout = "MAFFIdentifier" & vbtab & "Title" & vbtab & "Initials"
fst.writeline(lineout)
lineout = " ==================================================
========"
fst.writeline(LineOut)

fst.close
set fs = nothing

The server gets to the end since I place a response.write in to test.

If I cut and past this into VB declare the variables as objects and lineout as string and remove the "Server." from the line when setting fs, then it works fine in VB.

View Replies View Related

Not Working In PWS

The problem is that I can run the ASP files in the wwwroot folder when I use http://localhost from my browser or RUN (and that's for the default.asp). But the asp files do not work when I call them from a hyperlink in an HTML file.If I do that, all I see are the contents of the asp file.

View Replies View Related

Getting Working

Just set up Dedicated Server Hosting with GoDaddy. I put a very simple ASP page in the home web directory and try to load it and get a very generic error. A simple HTML file works fine. Obviously it's a permissions issue or maybe some service is not running.

View Replies View Related

Sql Not Working In Asp

i got an sql sentence that is executed in toad without problem; returns 1 but when i run the sql in asp i get returned 0. Code:

SELECT COUNT(*) as st
FROM sest_sklepi
WHERE rok<(SELECT TO_CHAR(SYSDATE, 'DD.MM.YYYY') as b FROM dual)

View Replies View Related

ASP Not Working

New to IIS, Why will IIS 5.0 not server up my ASP web pages? I cannot even get to the help because it is an ASP Page. I get an error in IE that states "HTTP 500 Internal server error". I have looked in the configuration and cannot find anything related to ASP. What can I do to serve up ASP web pages?

View Replies View Related

Why Isn't My PWS Working

I'm having difficulties making PWS work. I have WIN98SE. It was working for a while but now it says:

Quote: Problem:
An unexpected error occured.

Solution:
Please restart the Publishing Wizard.

View Replies View Related

Working With Url

Im finishing up a content management system for a client. It works fine except the way they have the pages set its nessessary for someone to open each page made and change it to the new directory.

the script copys a folder from lets say

http://fake/templets

To

http://fake/user
so now we end up with something like
http://fake/user/smith

On the pages in smith is there a way to make the look at their url and strip off all but the /smith part?

Or maby someone could tell me what im trying to do is called and ill be able to do a better search online.

View Replies View Related

<>0 Is Not Working

Here are the scripts. interest is 0, but, it will not execute then clause. Why?

interest = round(rs("CURR_WORKING_INTEREST"))
response.write interest
if sizeworkint < 3 OR interest<>0 then CURR_WORKING_INTEREST2 =
left(rs("CURR_WORKING_INTEREST"),2) + ".000000" end if ..

View Replies View Related

ASPUpload Isn't Working

I just noticed my upload function isn't working since I have move the folders and files to different directory.

Now I get this error:

Error Type:
Persits.Upload.1 (0x800A003D)
Wrong Content-Type. Make sure you have included the attribute ENCTYPE="multipart/form-data" in your form.
/foldername/UploadScript.asp, line 54

line 54 is:
Upload.Save "z:
ewfolder"

I have given modify, read & write permission for IUSR_MachineName account on NewFolder and given Read & Write permissions in IIS.

I also included ENCTYPE="multipart/form-data" attribute in my upload form.

View Replies View Related

CDONTS Not Working

I'm using IIS 5 on a win xp machine for all my testing, before I upload to our live server. I've installed the SMTP service and it's running with no errors.

Dose anyone know anything about the above set-up not supporting "CDONTS.NewMail" for sending email using ASP..?

I get the following error message: "Server object, ASP 0177 (0x800401F3) Invalid class string".

View Replies View Related

Access SQL To ASP SQL Not Working

I have taken some SQL from MS Access and got it working. I have since updated the SQL in Access but cannot get the additional part working in ASP. The working SQL I have in asp is:-

strQuery = strQuery & " HAVING ((OrderQuantity-Sum(QtyShipped)>=0) AND
(OrderLines.SelectAll=-1) AND (PCBForecast.HeldMarker='Scheduled'))"

I need to add the following but keep getting errors saying my SQL is
incorrect.

This is the additional part which should also be on this line:-

AND ((PCBForecast.ShipETA) Between Now() And #12/30/3000#))"

or another variant I require

AND ((PCBForecast.ShipETA)=#12/31/3000#))"

What is the correct way to write both of these, as I cannot get either
to work in asp, yet they work in Access.

View Replies View Related

ASP Working With MS Office

I want to read the MS Word and XLS documents with ASP code for searching. Is
there are any solution for me or any reference?

View Replies View Related

If Statement Not Working

whati have is a table that alternates colour each row so making it easier to look at the info. I also have it to check so that if the stock level is below min change from standard to red.

I also want it to check now so that if it has been ordered instead of being red green instead. i thought this would do it but i dont know how to check database to see if the check box is ticked. Tried Yes/No True/False and even both "yes" or "true" and so on. Code:

View Replies View Related

Replace Not Working

my replace is not working
Shipping News ...i don't want news word ..mean i just want
Shipping
Code:

<%=Replace(rs("name"), "news", "")%>

View Replies View Related

Hit Counter Working

i want to add a hit counter to my site but i dont know any thing about it. can any one tell me how does it work.and what should i do for that?

View Replies View Related

Ad Rotator Not Working

I have the following ad rotator that dosent show any errors or pictures. In my root directory I have a folder called "ads" and in the folder there are a few gif's.

In my html folder I have the file called "banner-inc.asp" which contains the following code:

View Replies View Related

Get Sub Menu Working

I am generating my menu dynamically as a dhtml menu. however the third level 'MenuSubCat'. I cannot get it to display properly and to loop all the third level sub menus to correct second leve menu. Code:

View Replies View Related

Working With Dates...

I'm using ASP to access an MS Access database. One issue that I'm constantly
having problems with is Date/Time records.

What I'd like to know is how does one work with date variables in ASP?

My current problem is this...

I have two variables, Mnth and Yr, which each hold an integer. Mnth holds
between 1 and 12 ( a month ), and Yr holds the desired year (2005 for
example).

With only these two variables how can I generate a full date to use in an
SQL query, such as:

SELECT * From Table WHERE DateAdded>??<date value here>??

View Replies View Related

HTTP_REFERER Not Working

I am giving the following:

test = request.servervariables("HTTP_REFERER")
response.write test

It just gives me blank page and does not give me the URL. I tried request.servervariables("REMOTE_ADDR") it gives me the IP address but HTTP_REFERER is not working. What could be the reason.

View Replies View Related

ASP Stops Working

I am running win2k3, iis6, access db's, for a web app. The
problem is that asp stops working randomly. No errors in
IIS log, no errors in even viewer. It just stops serving
asp. Restarting IIS clears up the problem. This occured
under win2k but maybe once a month. Not that I switched to
win2k3, it happens 4-5 times a day. Any ideas? What would
be the difference?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved