CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Database URL link

Print topic Send  topic

Author Message
Paul Shearing
Posted: 02/26/2006, 7:33 AM

I though that this would be easy.

I have a database field (named Url) that contains a text that is a web address (e.g. www.abc.co.uk). I have a link that correctly shows this field and I wish (no surprises here) to go to this website when I click the link. I have set the HRef properties such that the link address is "Address from database". The preview shows:

<a href="{Url}?" target="_blank" title="Click to open target website in a new browser window">{Url}</a>

However, when I run this page, the local server path is prepended to the web address. So, instead of trying to open http://www.abc.co.uk, the system tries to open: http://localhost/abc_database/www.abc.co.uk.

I've tried various settings etc but to no avail. Does anybody know what I'm doing wrong?

Kind regards

Paul

CCS 3, ASP, WinXP SP2
TheunisP

Posts: 342
Posted: 02/26/2006, 8:43 AM

It needs a http:// before the address, check with INSTR if it's there if not add then write the string to the browser

later
T
View profile  Send private message
wkempees
Posted: 02/26/2006, 9:09 AM

T's remark is very correct.
Maybe you also need to set the link to "Absoute". in it's properties

"TheunisP" <TheunisP@forum.codecharge> schreef in bericht
news:64401daaba985f@news.codecharge.com...
> It needs a http:// before the address, check with INSTR if it's there if
> not add
> then write the string to the browser
>
> later
> T
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Paul Shearing
Posted: 02/26/2006, 11:10 AM

Thanks, that works a treat.

Just for completeness and for those reading this forum, my simple solution is below.

I've modified the SQL View to include a new field that I call http. This field is defined as 'http://' + url. This creates the field that has the url address prepended with the necessary http://. This is the field that I display in the maintenance form.

8-)
SharKurtishi

Posts: 1
Posted: 02/27/2006, 11:10 AM

I would apreciate if any of you could help me also in converting my real Internet protocol into sub domain name.

Kind regards,
Shar Kurtishi
_________________
Shar Kurtishi

Freelance consultant
10000 Prishtina, Kosovo
Mobile: +377.44.210.456
Email: sharkurtishi@yahoo.com
View profile  Send private message
shabapaja
Posted: 03/06/2006, 7:07 AM

In respond to Shar,

Quote :
would apreciate if any of you could help me also in converting my real Internet protocol into sub domain name.

Your question is not so clear ... but if you are trying to point a domain or subdomain to a specific adress you need to use DNS service.

- If you don't know what the DNS is please refere to the following URL http://en.wikipedia.org/wiki/DNS

- For tips and tricks
http://www.dns.net/dnsrd/trick.html

Tung

8-)

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.