ASP: Truncated URL

L

Leo595

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=1234567890&e=1234567890&f=12345678­90&g=1234567890&h=1234567890&i=1234567890&j=1234567890&k=1234567890&l=12345­67890&m=1234567890"">asdf</
a>"


Creates a url that appears like this:


http://localhost/pages/somepage.asp?
a=1234567890&b=1234567890&c=1234567890&d=1234567890&e=1234567890&f=12345678­90&g=1234567890&
 
R

Roland Hall

Leo595 said:
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=1234567890&e=1234567890&f=12345678­90&g=1234567890&h=1234567890&i=1234567890&j=1234567890&k=1234567890&l=12345­67890&m=1234567890"">asdf</
a>"


Creates a url that appears like this:


http://localhost/pages/somepage.asp?
a=1234567890&b=1234567890&c=1234567890&d=1234567890&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?
 
R

Roland Hall

Leo595 said:
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=1234567890&e=1234567890&f=12345678­90&g=1234567890&h=1234567890&i=1234567890&j=1234567890&k=1234567890&l=12345­67890&m=1234567890"">asdf</
a>"


Creates a url that appears like this:


http://localhost/pages/somepage.asp?
a=1234567890&b=1234567890&c=1234567890&d=1234567890&e=1234567890&f=12345678­90&g=1234567890&

RE: length...
http://classicasp.aspfaq.com/forms/what-is-the-limit-on-querystring/get/url-parameters.html
 
F

Farshad Hemmati

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,123
Messages
2,570,741
Members
47,296
Latest member
EarnestSme

Latest Threads

Top