Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 24th, 2004, 07:00 AM
Authorized User
 
Join Date: Feb 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Working with Parameters (help?)

Can anybody tell me whats wrong with the ASP code below. It seems that there is something wrong with the nestled parameters (parameters="''"). Please Help me!

<%
...

HTMLdisplay = HTMLdisplay & "<option value='text_item.asp?TextID=<% = objRs("Text_ID") %>'>" & objRs("Text_title") & "</Option>"

...
%>


 
Old February 24th, 2004, 07:25 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

If you're already inside a server side code block (between <% and %>) you shouldn't (and can't) use the <%= %> anymore.

Try this:

<%
...

HTMLdisplay = HTMLdisplay & "<option value='text_item.asp?TextID=" & objRs("Text_ID") & "'>" & objRs("Text_title") & "</option>"

...
%>

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old February 24th, 2004, 08:01 AM
Authorized User
 
Join Date: Feb 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

THANK YOU! I cant believe that I did'nt see that myself, sometimes I get blind for the most newbie cind of misstakes...

Oh well, it works perfectly fine now. Thanks again :D






Similar Threads
Thread Thread Starter Forum Replies Last Post
window.opener working .... not working alyeng2000 Javascript How-To 5 January 5th, 2007 08:05 AM
Web.Config..Working or Not Working peace95 ASP.NET 1.0 and 1.1 Basics 1 September 18th, 2006 06:53 AM
Parameters Dharam80 Access 3 August 19th, 2005 01:59 PM
Local COM working , but not working at Web Serv nagen111 .NET Web Services 3 February 19th, 2005 04:22 AM
Get Working Copy... not working Enkiel Classic ASP Basics 0 April 21st, 2004 01:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.