473,581 Members | 3,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

request stopping at first space

Col
Hi all,

I'm new at asp and there may be an obvious answer but I haven't found it
yet.

I have 3 pages

on page 1 there is a select box, name="UD", containing "Data B"

page1 submits to page 2
on page 2, <% USD=request("UD ")%> results in USD = "Data B"
USD displays in a text box as "Data" (the space and B missing)

page 2 submits to page 3
on page 3, <% USD=request("US D")%> results in USR = "Data" (the space and B
missing)

How do I keep the data complete?

Regards
Colin

May 31 '06 #1
2 1145
I'm assuming that what you really have is something llike...
value = <% USD=request("US D")%>

Quote the value attribute, and you should be good to go.
value = "<% USD=request("US D")%>"

Bob Lehmann

"Col" <ne************ ***@hotmail.com > wrote in message
news:e0******** *****@TK2MSFTNG P03.phx.gbl...
Hi all,

I'm new at asp and there may be an obvious answer but I haven't found it
yet.

I have 3 pages

on page 1 there is a select box, name="UD", containing "Data B"

page1 submits to page 2
on page 2, <% USD=request("UD ")%> results in USD = "Data B"
USD displays in a text box as "Data" (the space and B missing)

page 2 submits to page 3
on page 3, <% USD=request("US D")%> results in USR = "Data" (the space and B missing)

How do I keep the data complete?

Regards
Colin

May 31 '06 #2
Col
So obvious and so hard to see.
Thanks Bob

"Bob Lehmann" <no****@dontbot herme.zzz> wrote in message
news:OO******** ******@TK2MSFTN GP04.phx.gbl...
I'm assuming that what you really have is something llike...
value = <% USD=request("US D")%>

Quote the value attribute, and you should be good to go.
value = "<% USD=request("US D")%>"

Bob Lehmann

"Col" <ne************ ***@hotmail.com > wrote in message
news:e0******** *****@TK2MSFTNG P03.phx.gbl...
Hi all,

I'm new at asp and there may be an obvious answer but I haven't found it
yet.

I have 3 pages

on page 1 there is a select box, name="UD", containing "Data B"

page1 submits to page 2
on page 2, <% USD=request("UD ")%> results in USD = "Data B"
USD displays in a text box as "Data" (the space and B missing)

page 2 submits to page 3
on page 3, <% USD=request("US D")%> results in USR = "Data" (the space and

B
missing)

How do I keep the data complete?

Regards
Colin


May 31 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
2001
by: Chris Travers | last post by:
Hi all; I have been looking into how to ensure that synchronous replication, etc. could best be implimented. To date, I see only two options: incorporate the replication code into the database backend or have a separate "proxy" which handles the replication. The main problem with incorporating the system into the backend process is...
10
2183
by: William L. Bahn | last post by:
I'm looking for a few kinds of feedback here. First, there is a program at the end of this post that has a function kgets() that I would like any feedback on - including style. Second, for those that are interested, I present an outline of the approach I am looking at using in class this semester. I would be very interesting in any...
1
280
by: S. Han | last post by:
When I type in "my.aspx?Detail=Factory+Entry" in IE browser, and retrieve the query string with the following code: string val = Request.QueryString; the returned val is not "Factory+Entry", but "Factory Entry" with a space. Why does QueryString converts the '+' character to a space? Is there a way to suppress the translation from a '+'...
6
9677
by: Karthik | last post by:
I am trying to read Http request body values NOT form values The content type is text/xml and its POST I am posting data from Infopath to an asp.net page. In ASP it works by just writing Response.Write(request) the same does not work in ASP.NET I tried using Rquest.BinaryrRead() and Request.InputStream but it gives me text values as...
7
3342
by: Badass Scotsman | last post by:
Hello, Couldn't find a classic ASP Usenet group, hopefully someone here will know the answer. I have a string called "FirstName" which will may be anything up to 20 characters in length ( I gather this string using Request.Form("FirstName") ). However if it is less than 20 characters, I would like the string to "expand" to 20 by using...
2
1517
daniel aristidou
by: daniel aristidou | last post by:
Hi i wrote code to print records off a datagrid.the code works on all but one of my data grids. The problem is that loop continues without stopping, Causing the program to crash. The only diff between all of the grids is the query and the widows form it is on. I basicly just copied the form changing the SQL for the datasource. any way so here...
4
3829
by: =?Utf-8?B?QWRhbQ==?= | last post by:
can you still alter request headers? in some reading it seemed a security update made that no longer available. There was a posting related to that at http://bigjimindc.blogspot.com/2007/07/ms-kb928365-aspnet-requestheadersadd.html dealing with MS KB928365, ASP.NET Request.Headers.Add() Hack No Longer Works -- Adam Tuliper
6
2045
by: Meels Lilbok | last post by:
Hi I have a problem with Request.ClientCerficate IIS 6. ASP solution,Win2003R2 Whe i call Request.ClientCerficate it does to nothing. All settings , certifcates aso. are OK. because on another server same solution works perfectly! No errors, nothing., it just does not work.
3
4990
by: dihola | last post by:
Hi, I have a website running in IIS7 and it seems to be creating a new session for every request I make. The values I store in Session are lost with every request. This is the forms bit in my web.config: <authentication mode="Forms"> <forms name=".ReMaCRM" loginUrl="~/Login.aspx" defaultUrl="~/Default.aspx"...
0
7789
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8141
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8300
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8167
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3802
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3817
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2299
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.