This topic is locked
[SOLVED]

 Add A Custom Hyperlink

2/13/2013 1:58:12 PM
ASPRunnerPro General questions
S
SAS author

Hi
Quick Question (I Hope) I am rebuilding my very old project, unfortunately I lost the project file so I am having to start from scratch and I have forgotten a lot I learned years ago so apologies!
I have a Database with a field called ID (Integer) that is the primary key, I have a field called Title that is VarChar and I want to have a hyperlink on Title that displays the actual Title but links to a custom webpage called Full.asp using the ID link so the url would read as full.asp?ID=xxx where xxx is the ID field.
I can't get the link to work properly I tried the following code in custom but it never worked.

$value = "<a href=FULL.ASP?ID=".$data["ID"].">".$data["Title"]."<a/>";


Can you help please

Sergey Kornilov admin 2/13/2013

You are trying to applying PHP code to ASP application which, of course, won't work. Check related section in ASPRunnerPro manual. Just in case here is the one for ASPRunnerPro 7.2:

http://xlinesoft.com/asprunnerpro/docs/_view_as__settings_custom.htm

S
SAS author 2/14/2013



You are trying to applying PHP code to ASP application which, of course, won't work. Check related section in ASPRunnerPro manual. Just in case here is the one for ASPRunnerPro 7.2:

http://xlinesoft.com/asprunnerpro/docs/_view_as__settings_custom.htm


Thanks so the code should look something like

strValue = "<a href=FULL.ASP?ID=" data["ID"].">".data["Title"]."<a/>";


I will test it tonight, appreciate the help.