Losing Formatting Spacing

I am working with an .asp page that creates an email using CDONTS. I need to be able to capture a text screenshot out of a mainframe session and send it in the email. When the email is sent, I am losing the spaces that align the screenshot. Ex.

THIS IS A PRIVATE COMPUTER NETWORK ---

UNAUTHORIZED USE WILL RESULT IN PROSECUTION

Returns> THIS IS A PRIVATE COMPUTER NETWORK --- UNAUTHORIZED USE WILL RESULT IN PROSECUTION .

View Replies


ADVERTISEMENT

Getting Spacing In My Record

i use this set of codes,

arrModels = split(request("model"),",")
arrSerials = split(request("serialno"),",")
arrQty = split(request("qty"),",")

not sure why when i do this sql

for i = 0 to uBound(arrModels)

sql = "INSERT INTO TableInventory (SerialNumber, Qty, ModelId, Hostname, IPAddress, LocationId) VALUES ("
sql = sql & "'" & arrSerials(i) & "', " & arrQty(i) & ", " & arrModels(i) & ", '" & request("txtHostname") & "', '" & request("txtIPAddress") & "', " & request("Five") & ")"
response.write sql & "<br />"
next
response.end

i get the second serialnumber with a extra spacing infront.
can advise me? Code:

View Replies View Related

Removal Of Spacing

Im trying to extract data from a website, however after removing all of what i no longer need, it is somehow, littered with tab'd spaces, like the length of | | sometimes appears as a small box on notepad.

i've tried removing it using replace, but it doesn't like what im doing. Anyone have advice on how to remove said spacing?

View Replies View Related

Line Spacing In MS SQL Server 7?

Am not sure about entering data into MS SQL Server 7.

Now, if I were to enter lines of text, with line spacing between each sentence, when I pull the data back out from the d/b into my ASP page, would the line spacing turn out, or would all the text be clumped together? Code:

View Replies View Related

Maintaining Paragraphs & Spacing When Inserting

I'm inserting data into my SQL server database via an ASP/HTML form. I have a textarea in the form where the user can enter content and I want to maintain any new paragraphs entered - however, when i insert the content into the database and reproduce it on another page, the spacing is lost and all the content is displayed in one paragraph. Is there a simple way to get round this issue?

The column on the database is set up as Type - Text (size 16).

View Replies View Related

ASP Output Is Double Line Spacing And Single Column

I have a prebuild freeware script that is installed and working fine. I am not a programmer by any means, but can usually hack through it and figure out how to make the changes needed. I just can't seem to get this one figured out.

The output is double line spacing and only a single column. Can someone help me to make the changes required to have it just one breakrow (no line spacing), and if possible, to have 2 or three columns? Code:

View Replies View Related

Im Losing Authentication

i have setup authentication on my website by setting session variables and it works but every once in a while the variables are lost and my users are logged out of the site

can someone tell me why this happens and how to fix it?

View Replies View Related

Losing Variables...

i have page1.asp that has a form and two text fields that user can enter and submit...

ok now i am sending these form variables to page2.asp..no problem here...

now page2.asp has a include file called page3.asp....in page2.asp we call some functions that are available in page3.asp...one of the funtions calls back the page2.asp...

at this point of time i am losing the form variables on page2.asp that i had from page1.asp since page2.asp is being called from the function in a include file(page3.asp) and not from page1.asp

how can i overcome this situation and still retain my form values on page2.asp

View Replies View Related

Losing Session

I have created an asp page with a submit button in it. On the onclick event I have written a java script to open a new pop up window that does the file upload. Unfortunately, whenever I click on the submit button to pop up the new window,I lose session. Any clues on how to persist my session value.

View Replies View Related

Losing Session Variables?

I recently upgraded my web server and SQL server to Windows Server 2003. I am running MS SQL 7.0 on the SQL Server. I had been running my application on Windows NT and experienced no issues for about 3 years. Now on the new servers I am getting multiple errors and I think I might be losing my session variables.

The errors I am getting are similar to errors I would get in NT when I was logged in to the app but inactive for a long period of time and attempted to resume work. Code:

View Replies View Related

Losing Value When Passing As QueryString

I am passing
a value held in a session variable on a url. It works fine locally
testing but when I put it on the main web server the value disappears.
Nothing fancy here, real simple...what I am missing ?

<a href="http://ServerName/ReportServer?/SomeRpts/rpt1&urid=<%=
Session("txtURID") %>"
target="blank">Contracts - Client Listing</a>

View Replies View Related

Textfield Losing Focus

I have a bunch of text fields that the user tabs through. How would I go about calling a function when a specific textbox loses focus so that when they tab out I can make a pop up and allow them to select some info

View Replies View Related

Losing Session Variables

I have been trying to solve this for some time now. I am setting a session variable to a value and calling response.redirect(). In the redirected page i am reading the session variable and it is blank. I printed the sessionid on both the pages to make sure that i have not lost the session itself.

The ids are the same on both the pages. It is just that all the session variable have becoce blank. I even looped through the session variables and all the session variables i created in the first page are present in the second page also, but without
their assigned values.

View Replies View Related

Losing Data On Submit

I am using dropdowns and they are populating correctly. I am having problems when I submit to the Dbase. I am losing the rest of the entry. This is a Ascess Dbase and they are text fields. An example of the error:

Dropdown Selections: from table OsmcSystemsImpacted
VGS Data Center
Legacy Platform
VGS RVA

What ends up in my Dbase: going to table OsmcLogEntry
VGS
Legacy
VGS

I am not getting anything after the first "Space" So what is happening to the rest of my data?

View Replies View Related

Losing A Session Variable?

Currently there is a web user that always gets an error on our application due to a missing session variable. All other session variables are still in tact, but this one seems to disappear and hence the user can no longer access everything on the site.


Any ideas as to where this value goes? I've checked my ASP code and saw nothing that would re-set this variable's value. Moreover, only a couple of users experience this problem.

View Replies View Related

Vars Passing From One Page Losing There Value?

I guess this is a continuation of my erlier problem which I thought I had solved.
I have several inputs being passed from one page where they are inputed in, to a preview page so the user can chek there info, then it will be passed to a page to submit the info to a data base.

I have a input that is the item description var name of �prodesc�. It pass from the input page to the preview page just fine. Then I use the same method to pass it to the next page to save it to a data base, but when it gets to the submit page the var �prodesc� only has the first word of the description that was shown on the previous page? Any one know why its acting like its been trimmed? Code:

View Replies View Related

Session Variables Losing Information With IIS 4.0 And I.E. 5.0

How can I resolve the issue of session variables losing information with IIS 4.0 and I.E. 5.0? I changed the regsitry setting Microsoft suggests but that did not work.

View Replies View Related

Reason Of Losing Session Variables

what might be the reason for losing session variables, i was working on a page where i had to stroe a array in a session(trust me that was the only 'way' i could imagine doing it), and i am losing the session variable, its just returning empty values.

View Replies View Related

Losing Session Variables Frequently.

My ASP (VBScript) application is losing sessions after only moments of being logged in.

Sesssion.Auth is set at login - 'session("auth") = true' - and checked as each page loads with an if statement containing - 'AND not session("auth")'.

It is running on Windows Server 2003. The problem occurs only on the live site....the test site is on IIS 5.1.

View Replies View Related

Losing Session Variables On Test Not Production

The production system is running on NT. I have two test systems, one on 2000 server and one on XP Pro. All run IIS, server version depending on OS. All the pages check to make sure that the user logged on by checking the variable Session.Contents("LoggedIn").

One page changes directories: from https://<domain>/<virtual directory 1>/<virtual directory 2>/page.asp to https://<domain>/<virtual directory 1>/<virtual directory 3>/nextpage.asp.

It works fine in production. In both test systems the value of Session.Contents("LoggedIn") is lost and so the user is redirected to the login screen.

This has happened since I copied the production site to my test sites. Any ideas?

View Replies View Related

Losing Records When Using Response.ContentType Msword.

I have a problem in that i have a page that works fine and shows all records/Output until i add Response.ContentType=msword

And then i only show every other record.

I probably should have coded the page differently. But for context - it's a school report system and i have setup a Subroutine which queries a database and builds a summary report for a girl. I wanted to print out a class list of these. I.e one for each girl in a class and so i loop around the results of one recordset and within each loop make a new query and create the report. This is probably not the best way to do it.

Anyhow, in the browser it woorks fine. As soon as i add the code to output it to word (or excel ) i lose evry other report.

View Replies View Related

Losing Line Breaks When Writing To MySQL Db

i have a MySQL database and i am using ASP

for one of my forms, i have a textarea form element that is...substantially large (500x300px) users are instructed to hit enter/return on their keyboard to separate paragraphs but i have encountered a problem.

in the textarea, everything is wonderful. line breaks are clearly seen...its awesome. when i submit the form and when it writes to the database (the field is set as 'text'), everything is crammed together...there is just one space between where one paragraph ends and another begins.

has anyone encountered this problem before? does anyone know a solution?

View Replies View Related

XML Formatting

I’m having an issue saving/reading an xml file.The source of this file is a the parameter of an object. Through the UI the user can change the value (xml string) of this parameter.

The problem is that the parameter needs the xml with > , < , and " instead of the > , < , " chars. However when I save it, the xml dom and even the fso save it with the actual xml chars. Other than a literal search, is there an easy way to convert the file to have the special chars?

View Replies View Related

ASP Formatting

Im looking for an online site that I can format or tidy ASP pages. If any one also knows of a software application that can format asp /html pages id be greatfull of that link too.

View Replies View Related

Tag And Formatting

I'm having users enter a message into a textarea, but I'm having problems with the formatting. How do I add " " characters where they have pressed enter?

This is being entered into a MySQL database, so I have already replaced the ' with '.

View Replies View Related

Formatting Variables

I am requesting a variable for the users' network username:

<%=Request.ServerVariables("LOGON_USER")%>

This returns the following:

NETWORKJ.Bloggs

Instead I would like it to return J.Bloggs on it's own with out the "NETWORK" bit so basically I am saying how do I cut out the first 8 characters of a variable.

View Replies View Related

Report Formatting

I have users typing in information into a text box. Sometimes this information can be lengthy and contain simple formatting such as spacess between lines and line numbering. For example:

1. List item number one

2. List item number two

I then have a report page that prints out this information. Unfortunately, the line spacing doesn't show up in the report. It's just all jumbled together. I'm just using <%= Notes %> to show the db field. Is there a way that I can show the formatting that was originally entered or do I need to use some kind of word processor like I am using to type this post?

View Replies View Related

Form Formatting In Asp

I would like to know how to format phone numbers and ssn numbers in textbox. That is when I enter the phone number, it is going to the database as 000,000,0000. I want to have it as either 0000000000 or 000-000-0000. Likewise, for ssn also. I am really fed up with javascript, somehow, it doesn't work well for me. Always, get page errors and it is not that easy to find out the errors in javascript.....

View Replies View Related

Date Formatting

i have a date in the following format: 12/1/2003

how do i reference just the 'day' portion of this date - in other words '1'

if the date was 12/10/2003, then i would just want the '10'

View Replies View Related

Time Formatting In ASP

I'm developing in ASP/VBScript using DreamweaberMX, w/ an Access 2000 DB as the
data source. The source of the data is coming from a third party, which I get as
a CSV and import into the database, updating it weekly.

Since I have no control over how the data is collected, I'm not sure how to fix
this problem, but here it is.

This is a database of movies and among the many fields I import is one for the
movie's length, expressed in HH:MM:SS. This comes into the Access DB as a
Date/Time format, which means all the dates, displayed raw in the DB, look like
"12:09:52 AM". Through data formatting, however, displaying it to the client as
HH:MM:SS is no problem. (Display "12:36:00 AM" as military time (00:36:00) tells
me the movie is 0 hrs, 36 minutes, 0 seconds long. Follow?)

But in an update form, which we'll use to correct errors (and there always seem
to be errors in the running times of movies), I can't figure out how to display
it in the HH:MM:SS format in an INPUT field and have it submit without throwing
a data type mismatch error. It seems to want to display as "12:36:00 AM"

Converting the field to a text type is out of the question at this point, so I
know I need to do some type of string manipulation prior to update. However, I'm
lost ...

Any ideas?

View Replies View Related

E-mail Formatting?

When e-mailing invoices and estimates, is there any way to customize the
presentation of the e-mail beyond changing the message? Specifically,
I'd like to add some html so the receiver can click on a link to pay
online. As it is, I can type the URL in the message, but it appears only
as text to the reader, not a hotlink, which, unfortunately, is quite
vexing to some of my clients.

It would also be nice to add a company logo, etc. to the email body.

On this same subject, is it possible to send the entire invoice/estimate
as HTML rather than an attached PDF? I haven't seen these options
anywhere.

View Replies View Related

XML DOM And Saving Formatting?

I'm currently doing some work with ASP and XML DOM.

Is there any way when saving XML to get ASP to save it in a formatted way? Similar to PHP's formatOutput setting? At the moment my xml is being appended on line e.g

<test>1</test><test>2</test>
Is there a setting to get ASP to save XML like:

<test>1</test>
<test>2</test>

The XML document I'm working on is fairly large and its proving very difficult to read through the xml at the moment.

View Replies View Related

Formatting String

I have one string variable and value stores something
like this:

st = "From: ""John Thomas"" <john@test.com.au>"

when i test it display some thing like
From: "John Thomas" <john@test.com.au>

How can I pick up only display name and without double
quotes. i.e. it should display only

John Thomas

View Replies View Related







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