Missing Space In Output

Simple question for you probably. I can't understand why the output for
something like

<%="x"%> <%="x"%>

is

"xx" (no quotation marks)

Why is there no space between the two x's?
(Of course I could achieve this in other ways, but I can't understand
why this happens.)

View Replies


ADVERTISEMENT

Do Not Allow Space

i have a form where a user will enter their information.... i know how to check if the user didn't enter a value so that they are not redirected to the next page but how to check if the user pressed space and not allow that space character to be a valid character?

View Replies View Related

Add Space

I have a webpage with some hyperlink within a button. The problem is that some of my hyperlink is shorter that others and therefore the user must navigate to the hyperlink to click on the link

The thing I want is to make the button more user-friendly user can click anywhere on the button and not only on the hyperlink within the button

Here is my code ....

View Replies View Related

URL With A Space

In an ASP Page is there a way to have a link that calls another page whose name includes a space? For example, I'd like to be able to call "My Page.asp" by building a href type link the user can click on. The equivalent of:

<a href="My Page.asp"> Open </a> the page

I've tried URLEncode but that didn't work.

View Replies View Related

Space

I’m reading a list of values from a database table a creating a dropdown list on a web page. These are used as search criteria to search on a second table. The user selects and item from a list and then clicks a button to submit the search. All of that works.

Most search words in the list are a single word with no spaces. Some are two words. When that is passed, anything passed second space gets lopped off. Here is the line of code that creates the dropdown box

sDataSet = rs1("Dataset")
response.write "<OPTION selected value=" & sDataSet & ">" & sDataSet

I tried this, but it didn’t work
response.write "<OPTION selected value=" & Replace(sDataSet, “ “, “%20”) & ">" & sDataSet

It replaced the space with %20, and the entire search phrase was passed, but the search failed because the %20 was not converted to a space on the other end. So now I doing the conversion myself after I do the Request.Form. Is there a better way though, to deal with spaces.

View Replies View Related

The Missing Zero

I have a problem here, dealing with zero.
When i insert into a SQL database a value, say 4.50, through an ASP, it will display in the SQL as 4.5,
instead of the value 4.50 i entered. Therefore, when i retrieved the data from SQL, it will only return and display 4.5
IS there any way whereby i will get 4.50 instead of 4.5?

View Replies View Related

Replace <br> With Space

My form gets populated from an access database. Now in the database there are fields containg <br>. While in a normal page everything works as it's supposed to, in my listbox the <br> shows as it is. What I would like to do is replace it with a space so I've used this:

<option value="<%=(rsProducts.Fields.Item("CatNum").Value)%>"><%=replace(rsProducts.Fi elds.Item("NotesR").Value),"<BR>"," "%></option>

but it doesn't seem to work.
What exactly am I doing wrong here?

View Replies View Related

Space In Variables

i need to combine 2 vriables that are retrieved from a form. idate and
itime.i want to put these into the t_date field in my sql db. but for it to work
properly, there needs to be a space between the idate and itime.
how do i do this?
i know i should know this, and i have used it before. but it has been so
long, that i can't remember for the life of me.

View Replies View Related

Space In Querystring

1. dopage.asp?<% =SessionID=value_here%> is different tha
2. dopage.asp?<%=SessionID=value_here%> ??

Please note that there is a space between the asp tags and the = sign in the first item. I thought ASP will treat #1 and #2 as the same. However it seems that is not the case.

View Replies View Related

Space In SQL Statement?

can anyone fix the space problem in my sql statement? I am getting this error message:

ADODB.Recordset (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

This is my sql statement:
sql = "SELECT * FROM " & tblname & " WHERE " &Col& " = N'" &Var& "' AND [Show]=1 ORDER BY [Code] ASC"

And I am passing the parameters to the url something like this:
Product.asp?Visit=Yes&Var=Hong%20-%20Kong&Col=Place

Problem is that most of my data contain a space (eg. Hong Kong).

I don't have this error when my data is single word (eg. Sydney)

View Replies View Related

Drive Space

I want to check the disk drive space on a small intranet. Like 30 computers. All have been partitioned and have a D: drive that is shared and is the drive I'm trying to check. This is basically what I have tried:

Code:
Dim fs, pcdrive, cdrive, n

Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set pcdrive = fs.GetDrive("xx.xx.xx.xxshare01-d")

Response.Write("Share01 Free Drive Space is:&nbsp;" & pcdrive & "<br>")

set pcdrive = nothing
set fs = nothing

Is there something wrong with the code or would it possibly have to do with permissions? When this script runs,I get a page cannot be displayed.

View Replies View Related

White Space

when it writes the varFault option to SQL, there is lots of whitespace written too!I have tried the Trim option but to no joy

<%@LANGUAGE="VBSCRIPT" %>

<%OPTION EXPLICIT
Dim objConn, strSQL, objRS, varName, VarExt, VarFault, varDept, strSQL1, objRS1
Set objConn = Server.Createobject("ADODB.Connection")
objConn.open Application("helpdesk")
varName = Request.Form("name")
varDept = Request.Form("departments")
varFault = Request.Form("txtFault")
strSQL = "INSERT INTO new_calls (Name, Department, Fault) VALUES "
strSQL = strSQL & "( '" & varName & "','" & varDept & "','" & varFault & "')"
strSQL1 = "SELECT * FROM new_calls "
strSQl1 = strSQL1 & "WHERE call_id= '"'
set objRS = objConn.Execute(strSQL)
%>

View Replies View Related

White Space

Say I have a 'Mc Paul' in the database, what would i need to do if the user searched for 'McPaul' how could i pull that record out of the DB.

View Replies View Related

Uppercase After Space

I'd like to know how can I make the first letter of every word on a textbox field, uppercase, automatically. I'd like to use this for the Name and Surname field, but I don't know how?

View Replies View Related

Server Space

Now that my website is compleate(ish), I am looking for server space(for free) to host it on. A lot of the ones I have seen, for some reason, do not support classic ASP.

View Replies View Related

Out Of String Space

Sometimes I am getting the errormessage "Out of string space ". The error occurs on this code:

sBrf = sBrf & sBodyTmp & "par page par "

When this occurs len(sBrf)<100.000 and len(sBodyTmp)<10.000. Also there is about 1,5gb fysical memory free. I am using Windows 2000 IIS5. I tried isolating the proces in IIS to make sure no other scripts are involved, but it doesn't help.

View Replies View Related

Choped At The Space

If I try to retrieve a char field from MySQL with 11111111

in the field I have no problem, however if I put in: 11111 111111

then it doesn't retrieve the part after the spaces it seems to just chop it at the first space. Can anyone help my with the code to make it work.

View Replies View Related

My Space Clone

where i can find a myspace clone?

View Replies View Related

Finding The Space

I trying to find the memory occupied by the object in RAM, For Example:

Set ObjTest = Server.CreateObject("ADODB.RecordSet")

I need the space occupied by the ObjTest in RAM. Is it possible ?

View Replies View Related

Huge Space

We have a regular ASP page that loads data from a database. It looks "normal" in IE or any other browser. When I print it on legal paper, there is an enormous gap between the header graphics and the first section where data is presented.

If I print on standard "letter" paper, this gap doesn't exist. Is this an issue with ASP or is there something really bizarre going on with my printer or IE? No other applications seem to have problems printing on legal paper.

View Replies View Related

How Can I Use Space In Myvalue

I am calling my procedure like below

Rs.Open "MyProcedure "&myvalue, database,1,3

en MYprocedure is below:

@Keyword nvarchar(30)
...
select *.................. like @Keyword .........

but if myvalue has a space it doesn't work!

I tried:

Rs.Open "MyProcedure '"&myvalue&"'", database,1,3
it worked, but it didn't give any result!

How can I use space in myvalue ?

View Replies View Related

Space For Forum

who has free web space for forum?

View Replies View Related

Space In Filename

I have a page that writes a hyperlink to files in a folder, but the
hyperlink fails with the space in the filename. How can I strip out that
space or replace with &nbsp; ? Code:

View Replies View Related

Space With File Name

I am trying to open Exel file and Csv file from the website. =if sFile name contains white space (test file.xls), the file openining with some error. Error contains some session variable.

my code is as follows.

Response.Buffer = TRUE
Response.Clear
'Response.AddHeader "Content-Disposition","inline;filename=" & sFile
Response.AddHeader "Content-Disposition","inline;filename=" & sFile
If Not GetReportOutputType.EOF And Not GetReportOutputType.BOF Then
Response.ContentType = GetReportOutputType.Fields.Item("MimeType").Value
End If
Response.BinaryWrite( Data )
Response.End
Set FileReader = Nothing
else
Response.Redirect("ReportViewErrorMsg.asp?Mode=FileNotFound")
End If
filetxt.Close

View Replies View Related

Missing Path

My error is as follows:

Server.MapPath()error 'ASP 0171 : 80004005'

Missing Path

/raven/aspBoardFunctions.asp, line 19 The Path parameter must be specified for the MapPath method. Code:

View Replies View Related

Clr 2.0 Missing In Iis Log (& Broken App)

We created an asp.net 2.0 app, which sends smtp email using System.Web.mail.
The app is in an IIS 6 application pool isolated to 2.0 apps on a 2003
server.

The app worked fine for a few days; recently however it began failing when
sending to external addresses (it works fine if the recipient is inside our
internal domain).

Comparing the logfiles, I notice when it was working both versions of the
CLR appear in log entries, for example:

(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+C LR+1.1.4322;+.NET+CLR+2.0.50727)

Log entries from when it fails only contain CLR 1.1, for example:

(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+C LR+1.1.4322)

The app is configured to use ASP.NET 2.0. What would be causing that
version to disappear from the log entries (and presumably the app) like
this?

View Replies View Related

Missing Data

I have code that inserts data into a db.What I would like to now is make sure that all textboxes have been filled out before inserting the data into the db. Moreover, send the user back to the page with the incomplete data, but with the completed data in the textboxes.

View Replies View Related

Missing Operator

iam trying to insert some data into a database but i keep getting the above error msg this is the line that is causing the problems any ideas?

Code:

sql3 = "Insert INTO course_dates ([Course_Id], [Course_Heading], [Course_Title], [Week_No], Status) VALUES ("&courseid&", "&course&", "&title&", "&weekno&", "&status&")"

here is what is printed when I response.write the sql3 statement

Insert INTO course_dates ([Course_Id], [Course_Heading], [Course_Title], [Week_No], Status) VALUES (285, NEBOSH, test, Week One, TBA)

View Replies View Related

Missing Components

I am running Sun One ASP v 4.0.2 on Apache 2.0.x on Win XP Home. I noticed that Sun One Asp doesn't come with components such as AdRotator, Content Rotator, Browser Capabilitles, etc. Is there any way I can install all these components on Win XP Home. For me upgrading to Pro is not an option.

View Replies View Related

Missing Number

I have a record set with the ItemNo field with the data type as Text. In the record that I have, I want to find the missing number in the series

for example:
1
3
4.1
4.2
5
missing number is 2.

How can I display the missing number in the browser or give me a return value that notifies me that there is a missing number in the series. Is there any function for that? Or how can i do that using a loop?btw im using ASP Classic and MS Access Database.

View Replies View Related

Missing Character

i've a problem here. everytime a user click on "approve" button, they'll always get database error. and when i check the error log, there are several fields that have missing characters, which results in database error.

for example: the fields for:

1. "refID" (supposely: 1952/102007 becomes 952/10 007 or becomes 9
2/102007)
2 "staffID" (3456 becomes 456)
3. "PONo" (IVT123 becomes VT123)
4. "date" (2007-10-13 becomes 2007-10-3)
and etc

the facts are: Code:

View Replies View Related

Error Variable With Space

please see the variable in red, this variable is basically a search string, this works perfect if there is no space in search string, but if there is space like "air condition" then it only takes the first word "air" and leaves the "condition", is there a way i can keep both words together Code:

View Replies View Related

Non-Breaking Space Problem

I have a script that allows you to edit an html page (the html being stored in a database). The problem is that any &nbsp; characters in the html disappear when viewing the page for editing. Is there some way to escape them?

View Replies View Related







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