473,732 Members | 2,204 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

long URLs

Hey folks,

Is anyone aware of any sort of asp coding to deal with long URLs? I have a
few asp that pull URLs from fields within a MS db, which then display on a
width-limited table. Is there any way to wrap these long URLs such that my
table doesn't get widened? e.g. wrapping at "/" or something similar?

Thanks for any advice,

Dave
_______________ _______________
Remove "_SPAM" to reply directly.
Jul 22 '05 #1
7 1688
Maybe instead of showing the url, you can do this,

<a href=<%=rsURL(" URL")%>>Click Here</a>

Would that work?

HTH,
Drew
"David Shorthouse" <davidshorthous e@shaw_SPAM.ca> wrote in message
news:uL******** ******@TK2MSFTN GP15.phx.gbl...
Hey folks,

Is anyone aware of any sort of asp coding to deal with long URLs? I have a
few asp that pull URLs from fields within a MS db, which then display on a
width-limited table. Is there any way to wrap these long URLs such that my
table doesn't get widened? e.g. wrapping at "/" or something similar?

Thanks for any advice,

Dave
_______________ _______________
Remove "_SPAM" to reply directly.

Jul 22 '05 #2
Sorry, my code is off... here is a correction,

<a href="<%=(rsURL .Fields.Item("U RL").Value)%>"> Click Here</a>

There you go,
Drew
"Drew" <dr********@NOs wvtc.dmhmrsas.v irginia.SPMgov> wrote in message
news:uj******** ******@TK2MSFTN GP15.phx.gbl...
Maybe instead of showing the url, you can do this,

<a href=<%=rsURL(" URL")%>>Click Here</a>

Would that work?

HTH,
Drew
"David Shorthouse" <davidshorthous e@shaw_SPAM.ca> wrote in message
news:uL******** ******@TK2MSFTN GP15.phx.gbl...
Hey folks,

Is anyone aware of any sort of asp coding to deal with long URLs? I have
a few asp that pull URLs from fields within a MS db, which then display
on a width-limited table. Is there any way to wrap these long URLs such
that my table doesn't get widened? e.g. wrapping at "/" or something
similar?

Thanks for any advice,

Dave
_______________ _______________
Remove "_SPAM" to reply directly.


Jul 22 '05 #3
You could do somethinguse the Left function to only show the 1st 25 or so
characters of the url.
But always put the full url in the href code for the link

<a href="<% =CmdListInfo("U RL") %>"><% = Left(CmdListInf o("URL").Value) ,25)
%></a>

http://www.powerasp.com/content/new/...ference-46.htm

"David Shorthouse" <davidshorthous e@shaw_SPAM.ca> wrote in message
news:uL******** ******@TK2MSFTN GP15.phx.gbl...
Hey folks,

Is anyone aware of any sort of asp coding to deal with long URLs? I have a
few asp that pull URLs from fields within a MS db, which then display on a
width-limited table. Is there any way to wrap these long URLs such that my
table doesn't get widened? e.g. wrapping at "/" or something similar?

Thanks for any advice,

Dave
_______________ _______________
Remove "_SPAM" to reply directly.

Jul 22 '05 #4
Thanks for the idea. Well, yes, that would work but would mean someone
couldn't print the pages from their browser and be able to visit those URLs
unless I specified this differently in a print css.

Dave

--
_______________ _______________
Remove "_SPAM" to reply directly.
Sorry, my code is off... here is a correction,

<a href="<%=(rsURL .Fields.Item("U RL").Value)%>"> Click Here</a>

There you go,
Drew
"Drew" <dr********@NOs wvtc.dmhmrsas.v irginia.SPMgov> wrote in message
news:uj******** ******@TK2MSFTN GP15.phx.gbl...
Maybe instead of showing the url, you can do this,

<a href=<%=rsURL(" URL")%>>Click Here</a>

Would that work?

HTH,
Drew
"David Shorthouse" <davidshorthous e@shaw_SPAM.ca> wrote in message
news:uL******** ******@TK2MSFTN GP15.phx.gbl...
Hey folks,

Is anyone aware of any sort of asp coding to deal with long URLs? I have
a few asp that pull URLs from fields within a MS db, which then display
on a width-limited table. Is there any way to wrap these long URLs such
that my table doesn't get widened? e.g. wrapping at "/" or something
similar?

Thanks for any advice,

Dave
_______________ _______________
Remove "_SPAM" to reply directly.



Jul 22 '05 #5
That's not a bad idea. Thanks.

Dave

--
_______________ _______________
Remove "_SPAM" to reply directly.

"Kyle Peterson" <kp*****@hotmai l.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
You could do somethinguse the Left function to only show the 1st 25 or so
characters of the url.
But always put the full url in the href code for the link

<a href="<% =CmdListInfo("U RL") %>"><% =
Left(CmdListInf o("URL").Value) ,25) %></a>

http://www.powerasp.com/content/new/...ference-46.htm

"David Shorthouse" <davidshorthous e@shaw_SPAM.ca> wrote in message
news:uL******** ******@TK2MSFTN GP15.phx.gbl...
Hey folks,

Is anyone aware of any sort of asp coding to deal with long URLs? I have
a few asp that pull URLs from fields within a MS db, which then display
on a width-limited table. Is there any way to wrap these long URLs such
that my table doesn't get widened? e.g. wrapping at "/" or something
similar?

Thanks for any advice,

Dave
_______________ _______________
Remove "_SPAM" to reply directly.


Jul 22 '05 #6
"David Shorthouse" <davidshorthous e@shaw_SPAM.ca> wrote in message
news:uL******** ******@TK2MSFTN GP15.phx.gbl...
Hey folks,

Is anyone aware of any sort of asp coding to deal with long URLs? I have a
few asp that pull URLs from fields within a MS db, which then display on a
width-limited table. Is there any way to wrap these long URLs such that my
table doesn't get widened? e.g. wrapping at "/" or something similar?

Thanks for any advice,

Dave


Perhaps (but doubtfully):

http://tinyurl.com/

"Are you sick of posting URLs in emails only to have it break when sent
causing the recipient to have to cut and paste it back together? Then you've
come to the right place. By entering in a URL in the text field below, we
will create a tiny URL that will not break in email postings and never
expires."
Jul 22 '05 #7
well, if the url is very long anyway, who would type it of a printed
document? ;-)

a solution might be do use some sort of redirecting on your site, ie
when the user types in http://mysite.com/show.asp?id=123 he is being
forwarded (request.redire ct) to
http://mysite.com/somethingverylong/...thsome=options...

- thomas

"David Shorthouse" <davidshorthous e@shaw_SPAM.ca> wrote in message
news:ur******** ******@TK2MSFTN GP09.phx.gbl...
Thanks for the idea. Well, yes, that would work but would mean someone
couldn't print the pages from their browser and be able to visit those
URLs unless I specified this differently in a print css.

Dave

--
_______________ _______________
Remove "_SPAM" to reply directly.
Sorry, my code is off... here is a correction,

<a href="<%=(rsURL .Fields.Item("U RL").Value)%>"> Click Here</a>

There you go,
Drew
"Drew" <dr********@NOs wvtc.dmhmrsas.v irginia.SPMgov> wrote in message
news:uj******** ******@TK2MSFTN GP15.phx.gbl...
Maybe instead of showing the url, you can do this,

<a href=<%=rsURL(" URL")%>>Click Here</a>

Would that work?

HTH,
Drew
"David Shorthouse" <davidshorthous e@shaw_SPAM.ca> wrote in message
news:uL******** ******@TK2MSFTN GP15.phx.gbl...
Hey folks,

Is anyone aware of any sort of asp coding to deal with long URLs? I
have a few asp that pull URLs from fields within a MS db, which then
display on a width-limited table. Is there any way to wrap these long
URLs such that my table doesn't get widened? e.g. wrapping at "/" or
something similar?

Thanks for any advice,

Dave
_______________ _______________
Remove "_SPAM" to reply directly.



Jul 22 '05 #8

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

Similar topics

5
2517
by: lawrence | last post by:
"Garp" <garp7@no7.blueyonder.co.uk> wrote in message news:<_vpuc.1424$j_3.13346038@news-text.cableinet.net>... > "lawrence" <lkrubner@geocities.com> wrote in message > news:da7e68e8.0405300907.3c8eabf7@posting.google.com... > > This reg ex will find me any block of strings 40 or more characters in > > length without a white space, yes? > > > > {40} > > > > > > To get it to include tabs and newlines, do I to this?
2
3383
by: Philipp Lenssen | last post by:
I'm looking for a way to truncate/ add-spaces & tag long URLs, so that "Check this out http://www.example.com/hello-world/foo-bar.html it's great" would turn into "Check this out <a href="http://www.example.com/hello-world/foo-bar.html">http://www.exampl e.com/hello-world/fo...</a> it's great"
3
5553
by: Patrick Coleman | last post by:
Hi, I'm looking for a function to split urls into their component parts, ie protocol, host, path, filename, extension. I'm really only looking for path and hostname (so I can download a webpage over sockets using c++). Something equivilent to PHP's 'explode' function would be fine, or even better PHP's 'spliturl' function :). Alternatively, if someone could recommend a better way to download data (ie. ASCII) into an array of some type...
23
7724
by: Erik Schulp | last post by:
Hi all, I am using a background image via a stylsheet. I've used this code: background-image:url("/images/tile.gif"); (which I think is correct) The image doesn't show up however, the path, the filename etc etc, everything checks out ok.
2
3878
by: Seth | last post by:
Ok, here is my setup. I have a fully functioning HTTP Handler implemented. The handler is supposed to handle every single request that comes in to a particular virtual directory. Thus, in IIS, I have a mapping of .* to the aspnet_isapi.dll. And my web.config has an entry thusly: <add verb="*" path="*" type="HandlerClass, HandlerAssembly" /> And this is working just fine thus far. The handler gets all the requests and works like a...
3
1629
by: John Bokma | last post by:
I have a table containing URLs. I want to be able to look up an URL very fast, so I used an nvarchar to store the URL, and put an index on it (maybe naive). Anyway, I bump into: "The index entry of length 911 bytes for the index 'UQ__URL__1367E606' exceeds the maximum length of 900 bytes." What's the best way to handle this? I want to do the look up fast. The only thing I could think up was adding an extra column containing a digest
7
1554
by: Gunnar G | last post by:
In many cases I use URLs like foo.php?a=4b&c=d&e=f&g=h etc. to send variables from one script to another Is there a way to not have the long URL and just call foo.php and send the variables in a more "invisible" way? -- I didn't know sci.bio.paleontology was that low traffic until I tried read the thread "Where is everyone?" and found it to be expired.
17
21385
by: kevgibbo | last post by:
Hi, I'm currently having a problem where a long URL or a line of text with no spaces will break the design of a webpage, http:// blog.seoptimise.com/2007/01/how-to-add-delicious-and-digg-blog- rss.html is an example of this. Does anyone know if it's possible to break this text into multiple lines using CSS?
11
4066
by: joe | last post by:
Hello anyone knows how to write a funtion to genereate a tiny url with letters and numbers only. Something almost always unique. THanks.
0
8946
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
9307
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...
0
9181
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
8186
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4550
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...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.