Long Text In Variable

I am using some code like the one below to work with a text file, modifying
its lines one by one:

Set objFS = Server.CreateObject("Scripting.FileSystemObject")

Set objF = objFS.OpenTextFile("MyText.txt", 1)

Do While objF.Line <= 26 ' --- I am reading only certain lines

'--- get entire line
strTemp = objF.ReadLine
'--- do some other stuff here

Code:

View Replies


ADVERTISEMENT

Pass Long String Variable

Is there any way to pass session variables between two websites ( diff domains) ?

I've two websites and I want to integrate them.

I used to use the querystring but there is a limit to length of the querystring.

I've tried ASP-TEAR but I doubt it can work.

Is there any other way to pass any variable to another website.

View Replies View Related

Command Text Too Long?

I'm currently working on an ASP site that connects to a MySQL database I've built a form that allows users to insert press releases. They add the date and title and then the text of the release.

The problem that I'm having is that every so often when the user submits the form they get an error message saying "Command text too long" The record isn't added to the database after this

I use a longtext field for holding the main text of the press release Code:

View Replies View Related

Long Text Insert

I was performing some testing on my forms and in the comments section of the form, I copied and pasted a large amount of text. All of the text appeared on my confirmation page that I have that shows all of the submitted information. Once I hit submit on the confirm page so that the INSERT will occur, only about 1/4 of the text that was entered shows up on my "Submission Confirmation" page.

The text insert appears in the database, but only the 1/4 of the text that was entered. I'm using the "text" datatype and the length is set to 16. Can anyone think of why only a portion of my text is being displayed and then inserted into the table?

View Replies View Related

Asp (visual Basic Script) Break Long Text Lines Into Several Lines.

asp (visual basic script) break long text lines into several lines.

This line of my guestbook (visual basic script) - response.write "message: " & Recordset ("message") & "<br><br>" displays access database field "message" in one line in web browser.

How do I break this text line into several lines? I know in asp.net there is datagrid. Is there something like datagrid in asp. Or perhaps this problem can be solved with htm?

View Replies View Related

Using Variable And Text Together

I am using a system to send mail and I want to use a variable and a portion of text together, so i am trying to do something like that:

objMail.Subject=[ text1 variablevalue ] - text2

the bold part is a variable value... i just bold it to show better what i am trying to tell... the subject donīt need to be in bold.

View Replies View Related

Text Variable Colour

I'm trying to change the colour of the session("name") variable below, but not having any luck. I need the name to be a different colour than the "logged in as". Any suggestions? Code:

View Replies View Related

Fill Text Area With Variable

I have a text area in my asp page:

"code"
<textarea name="content" rows=10 cols=60>
</textarea>
"end of code"

Is there any way to fill the text area with the value of a variable?]

View Replies View Related

Contents From A Text File Stored In One Variable

I'm attempting to read from a text file and output the contents into one variable that I can write to the page later. I can't Response.Write the thing because of the way our system is designed. Here's the code I got so far:

<%
set objFSO =server.createobject("scripting.filesystemObject")
path = "E:******************" & session("ENTRYPAGE") & "content.asp"
path = replace(path,"www.","")
set objstream = objFSO.opentextfile(path)
do while not objstream.atendofStream
lineText = objstream.readline
lineText = lineText & lineText
loop
response.write linetext
objstream.close
%>

All I get for output is the last line of the text file twice.

Note: The content.asp that I'm trying to load in does not contain any ASP. All of the content is HTML.

View Replies View Related

Storing The Contents Of A Text File Within A Variable

I was looking for a method to store the contents of text file within a variable. So far I am able to read the text file and output the results using the write method. Going a step further I also wanted to replace a particular string within those same results using the "Replace" function. This works as well.

My question, how can I store the final result that write's to the screen so that I can reference it later. If you run this code, I basically want to take the verbiage that displays on the sreen and place it into a variable. Code:

View Replies View Related

Too Long To Insert

I want to insert a new row in my db but it says that the "identifier is too long"...

ORA-00972: identifier is too long

to be more precised... I googled it but I can't seem to pinpoint how to work around this

View Replies View Related

Long Emails

When sending long emails a mysterious space-character is added after a
certain number of characters. Any idea why that happens?
I am using a Dundas Mailer control (if that matters) called from an asp
script.

View Replies View Related

Long Posts

I have a database-driven site and it is possible for users to leave comments, which get written to the database. How do I make it so large comments can be added?I am getting this error message:

Microsoft JET Database Engine error'80040e21'

The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.

/wall2.asp, line 37

I have set the default field type in the database to be 'memo'and set the default text field size to 255 (the maximum allowed)

View Replies View Related

Long Numbers

How do i make this number shorter?like 65.3846153846154%.how to make it like.let's say 65.39?

View Replies View Related

Long URLs

Is anyone aware of any sort of asp coding to deal with long URLs? I have a few asp that pull URLs from fields within a MS db, which then display on a width-limited table. Is there any way to wrap these long URLs such that my table doesn't get widened? e.g. wrapping at "/" or something similar?

View Replies View Related

Too Long Mailto: Link?

ok I have a page that displays all of the 3000+ records of people, phone numbers, and email addresses. on this page I have added a link that combines all of the e-mail addresses into one mailto: link so that we can mass notify these people of upcoming projects. the problem is that i think the link is too big for the browser to handle. the view source shows that everything is there but i cannot click the link. i have tried both IE and FireFox to no avail. The code is below just in case i have a typo or something...

sql = "Select * from people WHERE (IsNull(m_idstatus) OR m_idstatus <> 'id2') AND (m_email Like '%@%')"
...

y = 0
do while not rs.eof
If (rs("m_email") = "" OR IsNull(rs("m_email"))) Then
e_email = e_email
Else
e_email = e_email & rs("m_first_name") & "&nbsp;" & rs("m_last_name") & "(" & rs("m_email") & "); "
y = y + 1
End If
rs.movenext
loop
...

<a href="mailto:?bcc=<%= e_email %>">E-MAIL ALL</a>&nbsp;&nbsp;|&nbsp;&nbsp;

I have also tried changing the format of the link by adding test@test.com before the ?bcc= but get the same results on both browsers. Like I said in the beginning I assume that the link is just too big for the browser; does anyone have any ideas besides making a mail form in the page? I would prefer to stick with a mailto link so that we can keep internal Outlook features.

View Replies View Related

ServerXMLHTTP Uses 100% CPU For A Long Time

I'm trying to use ServerXMLHTTP on an ASP (not ASP.NET) page to retrieve
large binary data from a remote server. When the request is large (more than
a few megabytes), the ServerXMLHTTP page jumps to nearly 100% CPU utilization
for an unusually long time. The remote server needs a few seconds to prepare
the request, during which time the CPU seems OK. It seems that as soon as
the data is ready to retrieve, the CPU usage jumps and remains that way until
the data has all been copied to the requesting server. That takes way too
long - about 35 seconds when requesting a 12 MB file over a gigabit Ethernet.

I use ServerXMLHTTP hundreds of thousands of times daily on this same system
on the same network, with absolutely no problem - but for smaller requests.
There's something about the size of the request that makes it blow up.

I saw some reports of older systems with this problem (Windows 2000), but
I'm running IIS 6 on Windows Server 2003, SP1.

View Replies View Related

Long Response Times

I am trying to simply print to screen all the data in a colum from a .mdb file. Later I will do more advanced things but for now this would be good.

What I have WORKS, but takes a LONG time to retrieve the first record, if I tell it to retrieve more than one row it will time out. I was hoping to connect to the file directly and not have to create an ODBC connection. The code seems simple enough and the server is no dud (p4 2.4ghz) so do I need to setup a DSN and connect to it that way? Code:

View Replies View Related

Message For Long Queries

give me a sample code to display a "please wait"
message while retrieving results from the database in ASP.

View Replies View Related

Long Select Statement

I have a sql statement that contains many fields. I am having problems with the way I am writing the sql statement. Here is an example:Code:

filePath = server.MapPath("directory/dbName.mdb")
Set conn = Sever.CreateObject("ADPDB./Connection")
conn.Provider = "Microsoft.Jet.OLEDB.4.0"
conn.Open filePath

mysql = "SELECT field1,
field2,
field3,

I get an error at the comma on the line "SELECT field1,
What is the proper syntax for line continuation?

View Replies View Related

My Query Is To Long To Fit On One Line

I am trying to return a recordset of data. The problem is my SQL query does not fit on 1 row. What do I need to do to start a new row. I tested the asp when I trimmed my query down to 1 row and it worked.

View Replies View Related

Long Running Process

I'm developing an intranet application using W2k server and IE5.5 - 6.x
clients. I've got one particular function that calls a stored procedure to
update a number of records, depending on user input. The problem we have
run into is that this procedure can take a few minutes to complete in
certain circumstances, and of course IIS times out.

I've been doing some searching for a solution, but most of the answers I've
found relate to showing a 'Please wait' message while processing the page,
which doesn't help in this situation. The others I've found relate to using
MSMQ, which would probably help, but leads to a load of testing issues that
I'm not prepared to deal with at the moment.

Are there any other 'common' ways to handle this at the ASP level?

View Replies View Related

Splitting A VERY Long String

I have a very long string statement that needs spltting down into smaller sections and segments. I know how to use the split() function, and it splits the string down into smaller sections, however when I try and split one of these smaller sections into segments it throws an error out. Firstly is it possible to keep splitting the same string again and again to break it down? If not does anybody know how I would go about breaking down the string?

View Replies View Related

Divide Long Web Page

I want to divide long HTML page (paging) into smaller pages.I know how to do it if I use recordset but in my project, I dont need to read from a Database, I'm reading a file system wich is a folder and list all files insid it.

View Replies View Related

Long Hyperlink Into Database

I'm trying to put a long hyperlink into my database table which works fine. I used longtext as the field type. My records insert just fine. But when I try to retrieve the records on the asp page all the other data shows up but the hyperlink data. Here's an example of my link.

INSERT INTO products
(manufaturer, prod_category, prod_link)
VALUES ('Xtra','Irons','<a href="http://www.kqzyfj.com/click-1692223-10304326?url=http%3A%2F%2Fwww.golfsmith.com%2Fppage.php%3Fstynum%3DCL1480%26tcode%3Dcj" target="_top" >CG1 Irons w/ Steel - 3-PW Iron Set<br>$799.99</a><img src="http://www.afcyhf.com/image-1692223-10304326" height="1" width="1" border="0">');

What am I doing wrong.

View Replies View Related

Cutting Long Numbers

anyone got an idea on how to cut the output of a number? coz i made a computation and the output was this

81.5740740740741

and i want to make it 81.57

anyone got an idea?

View Replies View Related

Partitioning Long Numbers

I'd like to get a number, and every third character from the right add a comma (aka 10000 becomes 10,000). How can this be done in ASP please?

View Replies View Related

Displaying Long Raw Field

I have an Oracle database which has a field LONG RAW type to store text files. I'm trying to display the output of this field in ASP but I'm having problems. I've gone through many different approaches but they either do nothing or do the following;

I've tried doing response.binarywrite(rs("data_object")) and I get
somethinglike below ....

View Replies View Related

Content Page Too Long

If the content of a db field is too long, (like when the web page ends up being 3 A4 page lengths due to alot of content in the db field), is there a way of say, creating a 'next page', thus splitting the data content over 2 pages?

View Replies View Related

Code Taking Long To Run

I have a recordset that has 12 records in it, and about 25 columns. Unfortunately, I have to write the records out as columns in an ASP page, and the columns as rows. So, what I have done is a Do Until myRS.EOF and write all the records in <td></td> tags. I then do a myRS.MoveFirst before going to the next line.

I have one page that is identical in code, just using a different recordset, that is taking about 7 seconds to write per line. The other 2 pages are taking less than a second per line. Has anyone seen anything like this before? Anyone have any suggestions? Below is an example of a loop that is taking so long to run.

do until myRS.EO

Response.Write("<td bgcolor=#eeeeee>" & myRS("OutstandingInCompliance") & "</td>" & vbcrlf
iTotal = iTotal + cdbl(myRS("OutstandingInCompliance")
myRS.MoveNex
loo

View Replies View Related

Long Forms Repaint

Whenever an ASP.NET server-side control is processed, the client form is repainted from the top forcing users to scroll back to where they were on long forms. How can I work around this issue?

View Replies View Related

Cancelling Long Database Query

I don't excactly know whether this is an ASP, webserver or SQL-Server problem:

I have an ASP with a search form. By clicking the submit button it redirects to my result.asp page which initiates a database query that takes pretty long (up to 4 minutes).

Now if I push the cancel button in my browser because it takes too long and want to open another ASP page in that browser window I just get the "page loading" bar until, it seems, the query I initiated before has finished, and then shows up the wished page.

What I think is, that the webserver is waiting for the the command:

set rs = db.Execute(sql_search_string)

to be finished by the SQL-server and does'nt respond to other page requests (but only in the same browser window) until the recordset is filled with the information from the SQL-server. Code:

View Replies View Related

Long Raw Type Mismatch Error

I'm new to using long raw fields with ASP. I know it would be easier
to leave the files on the file system, but the client wants them in
the database. Based on what I've read so far, I have used the
following code to read files from a hard drive and stuff them in the
database. Code:

View Replies View Related







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