Presenting Hyperlinks In A Frontpage Results Region (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


™Harlequin -> Presenting Hyperlinks In A Frontpage Results Region (2/18/2004 16:22:34)

As a Newbie to the site I've found the posts very helpful and surprised at the level of detail people go into when explaining themselves.

So, Here Goes . . .

I have a site under construction (http://80.6.16.96/Property) and i am presenting the results of an MS Access database in a frontPage ASP page. However, despite setting the field property in the database as HTML it simply appears as raw text in the ASP page even though I've set the field value as "Contains HTML".

If you take a brief look you'll see what I mean. I even tried converting the database field back to text hoping FrontPage would present it as a hyperlink because of the "http..." value but to no avail.

I really would welcome any fresh insight as i've been messing around with this for weeks and want to launch the site proper.




BeTheBall -> RE: Presenting Hyperlinks In A Frontpage Results Region (2/18/2004 17:44:37)

If you look at the HTML for your page find the code that displays the "Page" field in your database. It should look something like this, in red:

<%=FP_FieldHTML(fp_rs, "Page")%> or <%=FP_FieldVal(fp_rs, "Page")%>

Your problem should be corrected by changing the above to:

<%=FP_Field(fp_rs, "Page")%>

However, you may (probably will) need to diet the excess code inserted by FP prior to making the above change. Instructions for dieting the code are in the link in my signature.

Good luck and welcome to OutFront!




™Harlequin -> RE: Presenting Hyperlinks In A Frontpage Results Region (2/19/2004 11:20:41)

Thanks for the prompt response Duane.

I tried substituting the code but the field remained the same when i published.

the actual URL of the updated page is:

http://80.6.16.96/property/properties/rentals/index1.asp

Thanks Again . . . !




BeTheBall -> RE: Presenting Hyperlinks In A Frontpage Results Region (2/19/2004 12:20:23)

If the code reverted back, then you must not have dieted the page. Follow the instruction in the following link and try again:

http://www.outfront.net/spooky/adv_drw_diet.htm




™Harlequin -> RE: Presenting Hyperlinks In A Frontpage Results Region (2/21/2004 18:42:44)

Tried what you suggested mate - no joy. Then tried the code diet macro - worked a treat at tifying up the code but the URL still didn't display as a hyperlink.

I'm working on some VB over the next few days so will come back to this with a fresh mind soon. Thanks for your help and any further suggestions would be welcome. The page is still on my server.




Spooky -> RE: Presenting Hyperlinks In A Frontpage Results Region (2/21/2004 19:28:04)

Use :

<A href="<%=FP_Field(fp_rs, "Page")%>"><%=FP_Field(fp_rs, "Page")%> </a>




BeTheBall -> RE: Presenting Hyperlinks In A Frontpage Results Region (2/21/2004 21:44:05)

quote:

Use :

<A href="<%=FP_Field(fp_rs, "Page")%>"><%=FP_Field(fp_rs, "Page")%> </a>


Doh! What he said. [8D]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875