Formating URL's

I would like to format URLS that are being retreived from a database. Here is an example:

bodytext="this is some text http://www.sitepoint.com/ this is some more text"
response.write(bodytext)

how could I change the URL (http://www.sitepoint.com/) to a link? So instead of http://www.sitepoint.com/, it would be <a href="http://www.sitepoint.com/">http://www.sitepoint.com/</a>. There are going to be an infinate amount of URL's (the user can type in any one) and it is just not the URL by itself.

View Replies


ADVERTISEMENT

Formating Year

I want to be able to format a year as mm/dd/yy

formatdatetime does not work because the year is yyyy. How do I format a 2 digit year such as 04 for 2004?

View Replies View Related

Formating Text

When i send a text string to my database linebreaks are stored, but when i call it from asp to the page all linebreaks are lost.
this will reformat text to look different than i was initially typed, how can i make the text shown on webpage in orginal formating.
hope im clear on this or ask and i will elaborate.

View Replies View Related

Date Formating

does anyone know if there is a function to format date?When my date is extracted from database, it is in decimal format (ie.38233.72078), is there a way to convert this number to date formate using asp?

View Replies View Related

Formating Strings

I have a list of dates in a sql database that are input as varchar like this 042999

How do I insert / in between the date/month and year

so this 042999 will appear like this 04/29/99

View Replies View Related

Variable Formating

Having a pretty annoying format 'error'

The below code works fine,

strMessage = "Logged in as: " & Session("UserName") & ""

but it displays as:

Logged in as:
'Username'

Were as i want it to be:

Logged in as: 'Username'

Any ideas how to make it go to one line?

View Replies View Related

Keeping Formating

I posted before about replacing special characters (esp. '). However, I am wondering how formatting can be kept when entering it into a textbox to store in a database?

When text with seperate paragraphs is entered, it comes out as one big paragraph later on.Is there anyway to address this? When I was doing my searching - somethign about chr(10) kept coming up, but I am not sure what this is.

View Replies View Related

Formating % On An Page

I have an ASP page taking data from a table. I would like that the data is shown as a % (like 51.456897%) All it shows with my code below is 0.51456897.

Can someone tell me how to change the code so that my % is shown? ....

View Replies View Related

Imported Time Formating

I am importing a time into a sql datetime field from a text datafile using vbscript in an asp file. The time coming in will look like 8:00 or 3:30 or some other similar thing.

Because it is doesn't have am or pm associated with it, I have to force the issue or sql will assume am all of the time, and I am sure that no judge in our county is going to hear a case in the middle of the night!

So I have to add 12 hours to anthing that could be an afternoon time before I add it to the database to keep it from looking stupid in the display screens.

View Replies View Related

Formating A Number With Own Function

if we use formatnumber library function in asp it will format the no as per the number format defined in the locale of the server. For example:

some number format look like this 34,135,200 (comma seperated)
some looks like this 34 135 200(blank spaces seperated)

so does anybody have a vbscript function which do this job.

View Replies View Related

Response.write Formating

I have the following variable being displayed but i would like it displayed in the default font and text size 2 how is it done?

<% response.write(sUserId) %>

View Replies View Related

Date Function Formating

Is there a way to output a date in latin american format?

You know the day first, the month second and the year last.

View Replies View Related

Two Different URLS

We have just signed up for salesforce.com and I need to somehow integrate the canned web-to-lead form from salesforce inside my login/registraiton system without messing up the existing 'join' form.My registration form is built on top of database while the alesform form isstatically generated form which is similiar but not exactly the same.

Post to two different urls at once for my main Join form.Or, perhaps 'hide' the salesforce.com form and somehow populate the values in the form and when the visitor clicks my Join form it also posts the sf form?

View Replies View Related

Reading URLs

if it is possible to store the URL of a browser window as a variable? For example:

var loc = window.location.href

in JavaScript will store the contents of the address bar as the variable loc.

View Replies View Related

Long URLs

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?

View Replies View Related

Encrypting URLs

Are using this practice? If yes which method are you using?

View Replies View Related

SE Friendly URLs With ASP & IIS.

has any one tried SE Friendly URLs with ASP & IIS? There's nothing like mod_rewrite for IIS. Ofcourse there are some 3rd party COM available but how many of us can use them on shared webservers?

So, is there a way to do it?

For those people who don't know what I'm talking about,

Normal URLs with querystrings look like
http://www.example.com/myPage.asp?id=1

while SE Friendly URL will look like
http://www.example.com/mPage/1/

The operative words being look like. You will see the 2nd URL in the browser's address bar but the server will take it as the 1st URL.

View Replies View Related

Number Formating Decimal Places Not To Remove Zero 0 At The End

I have a report that will format a number to the last 2 decimal places. However it will trim off the 0 at the end. Example.

98.90 is formated to 98.9

how can i tell the format number function to not trim the 0 but still have the last 2 digits.

View Replies View Related

ASP - Date Formating MySql Insert/update

I am storing dates in a mySql database in the format yyyy-mm-dd. Now, I have set up so that this field is insert by a form.

It isn't very user friendly to have to type yyyy-mm-dd, how can I set up so that the user can enter format dd/mm/yyyy and it will automatically insert into the database as yyyy-mm-dd? I am using Dreamweaver MX 2004 and ASP.

View Replies View Related

Number Formating :: Adding Zeros In The Beginning

I have a querystring that passes through the value 001 for example, the form on the receiving page need to display that number but with 1 added to it. i have

dim strnum
strnum = request.querystring("value")
strnum = strnum + 1

when displayed <%=strnum%> shows 2 instead of 002, and the zero's are very important, is there any number formating trick i dont know or another way of doing this?i thought about coding the first two zero's in before i call the strnum but this would mess things up when i get to 010 etc.

View Replies View Related

Creating Clean URLs

I need to convert the Query Strings into Clean URLs, Found some articles on
PHP and Apache server.. How do we it them with ASP ??

View Replies View Related

Dealing With Friendly Urls

My application runs on ASP and the business logic is embedded in Dlls written in VB. The application hosts a list of articles for the user to view and these are accessible through some complex urls like "http://mysite/articles/category1?articleid=34512". I would like to denote a friendly url to these articles such as "http://mysite/articles/kb_TaxPlanning.asp". I am thinking of using an ISAPI filter to do the work for me. My friend was trying on using a httphandler, but it did not work. Please share with us the resources for creating an isapi filter for the same. Also how to use the same for the expected result?

View Replies View Related

Linking Names To URLs

I have a dynamic table that displays names of companies. Some companies have URLs and some don't. I would like for those companies with URLs to open a new browser and show their website, for those with no URL just to open nothing. So far I have this, however doesn't work.

View Replies View Related

Response.Headers And URLs

Is there a way to add a header to a page that will change what text the
browser displays in the address field?

For example, say I point my browser to
http://www.domain.com/request.asp?a=1&b=2.

I would like IIS to send back the content generated by the page
request.asp, but would like the address is in the browser to read
"http://www.domain.com/request/index.asp"

Is there any possible way to do this? It seems like this should be possible.

View Replies View Related

Upload Images From Urls

I'd like to save images from urls ? I need to save images with a procedure that i get it the url of image. if anyone know about this problem, let me know?

View Replies View Related

Make URLS Understandable

how to create urls friendly in the term of 'search engine friendly'. I have a website writen in ASP. For example when i click to new page-About us, the url is ....

View Replies View Related

Generating Temporary URLS

I have a form on my site that users must fill out before downloading a pdf document, however, i would like the form to send them an email with a temorary URL.

which they can click to download from, and which expires after 'x' days. is this an asp thing? or do i have to move to .net to do this?

View Replies View Related

Relative Addressing For URLs

Anyone know of a site that gives all of the syntax of relative addressing for URLS?
for example: /, ./, ../, etc.

View Replies View Related

Search Engine Safe Urls

Has anyone seen a good solution for Search Engine Safe URLs with Classic ASP? I've been looking for a while and short of using the 404 or installing tool on the server I was hoping there might be something else.In ColdFusion you can do a server.com/myfile.cfm/id/410 and it just works ... (well, after you parse the slashes)

View Replies View Related

Dropped By Google/static URLs

I having trouble with some of my classic asp pages being dropped from google.Specifically, a set of four pages reused many times with the content identified via query strings (max 3 variables). I was under the impression that google no longer has a problem with urls appended with query strings. Does anyone know if it is possible to incur penalties for the "over use" of such pages? My product detail page for example is used to display 230 seperate products.

if using static urls may help get my pages re-indexed, but I have had difficulty finding a way to do this with classic asp. Could anyone suggest a suitable method or advise possible reasons for my google disaster?

View Replies View Related

Removing %20 From URLS Displayed By Search Engine

I have this asp search engine that displays the urls for the files found, only the display shows %20. I need to remove the %20 and display a space instead; is there some way I can mask or remove that for displaying results for users?

View Replies View Related

Coding Plian Text Email Urls

I am sending an email to subscibers of a news letter with the url of the latest newsletter in the email. this is built up in code. how do i encode it to include special characters such as spaces as %20. I have tried a simple replace routine but this gives errors on invalid chars.

View Replies View Related

Need Code To Send User Back Two URLs

When someone buys something on my site from a detail page, I show them a cart. When they hit continue shopping, the only option I have right now is to take them back to the detail page. What I really would like to do is take them all the way back to the catalog page they used to get to the detail.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved