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. 7 1692
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.
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.
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.
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.
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.
"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."
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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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?
|
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"
|
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...
|
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.
|
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...
| |
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
|
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.
|
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?
|
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.
|
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...
|
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,...
| |
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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,...
|
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...
|
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...
|
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();...
|
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...
| |
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...
| |