473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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=1234567890&d=123456789 0&e=1234567890&f=12345678Â*90&g=1234567890&h=12345 67890&i=1234567890&j=1234567890&k=1234567890&l=123 45Â*67890&m=1234567890"">asdf</
a>"
Creates a url that appears like this:
http://localhost/pages/somepage.asp?
a=1234567890&b=1234567890&c=1234567890&d=123456789 0&e=1234567890&f=12345678Â*90&g=1234567890&
Feb 11 '07 #1
3 3104
"Leo595" <Le****@discussions.microsoft.comwrote in message
news:7A**********************************@microsof t.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=1234567890&d=123456789 0&e=1234567890&f=12345678*90&g=1234567890&h=123456 7890&i=1234567890&j=1234567890&k=1234567890&l=1234 5*67890&m=1234567890"">asdf</
a>"
Creates a url that appears like this:
http://localhost/pages/somepage.asp?
a=1234567890&b=1234567890&c=1234567890&d=123456789 0&e=1234567890&f=12345678*90&g=1234567890&
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****@discussions.microsoft.comwrote in message
news:7A**********************************@microsof t.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=1234567890&d=123456789 0&e=1234567890&f=12345678*90&g=1234567890&h=123456 7890&i=1234567890&j=1234567890&k=1234567890&l=1234 5*67890&m=1234567890"">asdf</
a>"
Creates a url that appears like this:
http://localhost/pages/somepage.asp?
a=1234567890&b=1234567890&c=1234567890&d=123456789 0&e=1234567890&f=12345678*90&g=1234567890&
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****@discussions.microsoft.comwrote in message
news:7A**********************************@microsof t.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=1234567890&d=123456789 0&e=1234567890&f=12345678*90&g=1234567890&h=123456 7890&i=1234567890&j=1234567890&k=1234567890&l=1234 5*67890&m=1234567890"">asdf</
a>"
Creates a url that appears like this:
http://localhost/pages/somepage.asp?
a=1234567890&b=1234567890&c=1234567890&d=123456789 0&e=1234567890&f=12345678*90&g=1234567890&

Feb 14 '07 #4

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

Similar topics

0
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...
2
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...
6
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...
4
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 &...
12
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...
0
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:...
0
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...
1
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...
1
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...
3
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.)....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.