473,770 Members | 1,833 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP: Truncated URL

I have a page that creates dynamic hyperlinks for each recorded
displayed. Many of the constructed URLs exceed 128 characters. Those
that with greater than 128 are truncated for some reason unknown to
me. I know that IE supports URLs up to 2048 characters. Is there a way
for me to create and use longer URLs in my ASP dynamic links?

Example:
This code:
response.write "<a href=""somepage .asp?
a=1234567890&b= 1234567890&c=12 34567890&d=1234 567890&e=123456 7890&f=12345678 Â*90&g=12345678 90&h=1234567890 &i=1234567890&j =1234567890&k=1 234567890&l=123 45Â*67890&m=123 4567890"">asdf</
a>"
Creates a url that appears like this:
http://localhost/pages/somepage.asp?
a=1234567890&b= 1234567890&c=12 34567890&d=1234 567890&e=123456 7890&f=12345678 Â*90&g=12345678 90&
Feb 11 '07 #1
3 3123
"Leo595" <Le****@discuss ions.microsoft. comwrote in message
news:7A******** *************** ***********@mic rosoft.com...
>I have a page that creates dynamic hyperlinks for each recorded
displayed. Many of the constructed URLs exceed 128 characters. Those
that with greater than 128 are truncated for some reason unknown to
me. I know that IE supports URLs up to 2048 characters. Is there a way
for me to create and use longer URLs in my ASP dynamic links?

Example:
This code:
response.write "<a href=""somepage .asp?
a=1234567890&b= 1234567890&c=12 34567890&d=1234 567890&e=123456 7890&f=12345678 *90&g=123456789 0&h=1234567890& i=1234567890&j= 1234567890&k=12 34567890&l=1234 5*67890&m=12345 67890"">asdf</
a>"
Creates a url that appears like this:
http://localhost/pages/somepage.asp?
a=1234567890&b= 1234567890&c=12 34567890&d=1234 567890&e=123456 7890&f=12345678 *90&g=123456789 0&
It might be because &h is read as a HEX value.

It truncates in the client source or when the link it activated?

--
Roland Hall
Feb 12 '07 #2
"Leo595" <Le****@discuss ions.microsoft. comwrote in message
news:7A******** *************** ***********@mic rosoft.com...
>I have a page that creates dynamic hyperlinks for each recorded
displayed. Many of the constructed URLs exceed 128 characters. Those
that with greater than 128 are truncated for some reason unknown to
me. I know that IE supports URLs up to 2048 characters. Is there a way
for me to create and use longer URLs in my ASP dynamic links?

Example:
This code:
response.write "<a href=""somepage .asp?
a=1234567890&b= 1234567890&c=12 34567890&d=1234 567890&e=123456 7890&f=12345678 *90&g=123456789 0&h=1234567890& i=1234567890&j= 1234567890&k=12 34567890&l=1234 5*67890&m=12345 67890"">asdf</
a>"
Creates a url that appears like this:
http://localhost/pages/somepage.asp?
a=1234567890&b= 1234567890&c=12 34567890&d=1234 567890&e=123456 7890&f=12345678 *90&g=123456789 0&
RE: length...
http://classicasp.aspfaq.com/forms/w...arameters.html

--
Roland Hall
Feb 12 '07 #3
The best way to go about this is post the URL as a FORM POST, rather than
put it in the URL. That way you can send much larger data and info without
any truncation by any browser.

Regards,
Farshad

"Leo595" <Le****@discuss ions.microsoft. comwrote in message
news:7A******** *************** ***********@mic rosoft.com...
>I have a page that creates dynamic hyperlinks for each recorded
displayed. Many of the constructed URLs exceed 128 characters. Those
that with greater than 128 are truncated for some reason unknown to
me. I know that IE supports URLs up to 2048 characters. Is there a way
for me to create and use longer URLs in my ASP dynamic links?

Example:
This code:
response.write "<a href=""somepage .asp?
a=1234567890&b= 1234567890&c=12 34567890&d=1234 567890&e=123456 7890&f=12345678 *90&g=123456789 0&h=1234567890& i=1234567890&j= 1234567890&k=12 34567890&l=1234 5*67890&m=12345 67890"">asdf</
a>"
Creates a url that appears like this:
http://localhost/pages/somepage.asp?
a=1234567890&b= 1234567890&c=12 34567890&d=1234 567890&e=123456 7890&f=12345678 *90&g=123456789 0&

Feb 14 '07 #4

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

Similar topics

0
1259
by: David Bray | last post by:
Has anyone encountered (and solved!) this problem? I have an Access database on a commercial ISP. There is an ASP page/script which creates a recordset from the database and then writes a file which can be downloaded via the standard HTML Anchor element. This has been working with no problems for months but now we sometimes see files which are truncated, ie as if not all records in the recordset were output.
2
3736
by: | last post by:
Hi everyone, I'm using VS.NET, Framework 1.1, Windows 2000 Server, IIS 5, all the latest patches are installed. Im having this wierd random problem, that I cannot reproduce but it happens quite often: - my Request.Form collection is truncated in some posts (again I dont know why or how to reproduce it).
6
3350
by: ~Maheshkumar.R | last post by:
The error i'm getting is as: > Server Error in '/' Application. > -------------------------------------------------------------------------- -- > String or binary data would be truncated. The statement has been > terminated. > Description: An unhandled exception occurred during the execution of the > current web request. Please review the stack trace for more information
4
2240
by: Jack | last post by:
THE FOLLOWING IS A PART OF CODE FROM A ASP PAGE <% sql01 = "SELECT COUNT(*) AS reccount FROM Equipmenttbl " sql01 = sql01 & "WHERE Equipmenttbl.GrantID = " & GrantID 'Response.Write sql01 & "<br>" 'Response.End i = 0
12
2233
by: Jack | last post by:
Since, I have not got some desired advise, I am reposting this for some asnwer/valuable suggestion. Thanks. THE FOLLOWING IS A PART OF CODE FROM A ASP PAGE <% sql01 = "SELECT COUNT(*) AS reccount FROM Equipmenttbl " sql01 = sql01 & "WHERE Equipmenttbl.GrantID = " & GrantID
0
2375
by: hui | last post by:
I am trying to use an SQL Server 2000 to log the events, and have found somehow the contents in the details column get truncated. Details as following: The query I am using to retrieve details: select datalength(details), details from dbo.aspnet_WebEvent_Events A sample output row (slightly realigned for easy reading): 1842 Event code: 4003 Event message: URL authorization succeeded for the
0
1090
by: David A. Schramm | last post by:
I am using OLE DB in .NET 2 to insert a row into an Access database. The source is a RTF control and the column is a Memo field. The data is being truncated along the way. The control's rtf length is truncated to 1033 and the field length in Access is truncated to 1024. This seemed to be working fine in .NET 1.0 since rows before my upgrade are showing data over 2K in the memo field. Anyone have a clue?
1
1888
by: visu | last post by:
Hi my scenario is i ve upgraded my asp application to windows 2003 +IIS 6.0 + virtual SMTP server enabled environment from win 2000. so i need to update the mail procedure too.(becox i used CDONTs previously which is not supported in win 2003 by default).i have coded my mail sending script using CDO. The problem i am now facing is the mail message which is generated by my application is get truncated at the receiving end..
1
1518
by: walkersj09 | last post by:
I have a page that creates dynamic hyperlinks for each recorded displayed. Many of the constructed URLs exceed 128 characters. Those that with greater than 128 are truncated for some reason unknown to me. I know that IE supports URLs up to 2048 characters. Is there a way for me to create and use longer URLs in my ASP dynamic links? Example: This code: response.write "<a href=""somepage.asp?...
3
2122
by: =?Utf-8?B?Yml0YnVja2V0?= | last post by:
hi: i have an asp.net 1.1 app. when i visit the site with my normal browser (ie7 on xp), i get 'default' info in the request.browser object (Type = Unknown, Name = Unknown, Version = 0.0, etc.). when i visit with firefox or safari, the results come back as expected. i've also used 'fiddler' to set my user agent string to ie7 and 8 and, here also, success. as far as i can guess, it seems that my user agent string gets 'choked' upon...
0
9617
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10099
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10037
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9904
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
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
2
3609
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.