CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Link to URL

Print topic Send  topic

Author Message
Brandy
Posted: 03/31/2003, 1:23 PM

I am using the builder to create an asp page that links to external websites.
I have a field for the site the name, and then the URL, and comments about the website. this is for our IT staff to refer back to periodically.
I have the Site name, Ex: CODECHARGE set as link for editing. In the URL field i have spelled out http://www.codecharge.com. But i want to be able to click on it and it take me to the codecharge site and i can't seem to figure out how to accomplish it. I am a relatively new codecharge user.

thanks for any help.

Brandy
Edd
Posted: 03/31/2003, 3:15 PM

1. The field that is hyperlinked click on the field (it must be a Label field)
view it's properties. Click on the Data tab of it's properties and change the Content from Text to HTML - so you output pure HTML.

2. Click on the events tab of the field and where there is the "before show" event Right Click to "add Code".

3. In the Code output the code as you would be writing HTML output.
eg Assuming ASP and the field's name is "TheFieldName"

Dim strFieldValue
Dim strHLinkValue
Dim strHTML

strFieldValue = YourControlName.TheFieldName.Value
strHLinkValue = YourControlName.DataSource.RecordSet.Fields("TheHLinkFieldName")
strHTML = "<a Href=""" & strHLinkValue & """>" & strFieldValue & "</a>"

YourControlName.TheFieldName.Value = strHTML

Hope that helps
Edd



   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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