Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 July 18th, 2003, 08:32 AM
Authorized User
 
Join Date: Jul 2003
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Default using sql infromation after page has been rendered

I have a series of select statements such as this one that gets it's options from our database. At the end of the select statment(s) is a script to create another row of select statements so a person needing more than one account to process an order can do just that. Problem is I can't run the sql script again after they click the "Add Account" so I'm stuck just offering them a text boxes instead of select statements for each additional Account they want to add...anyone know a way around this?

I need to build a select statment from a sql statement after the page has been rendered.

sSQL2 = "SELECT DISTINCT Fund" & _
        " FROM MasterTableCfoapal2"
set rs2 = Connect2.Execute(sSQL2)

<html><body>
<select name="fund_1" class="regSoft">
 <% Do until rs2.eof %>
  <option><%=rs2("Fund")%></option>
  <% rs2.MoveNext
 Loop %>
</select>

<div id="-2" style="visibility:visible">
<a onClick=javascript:addacc(-2)><u class="regSoft">Add Account</u></a> </div>






Similar Threads
Thread Thread Starter Forum Replies Last Post
The html rendered by controls... philthy BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 October 23rd, 2008 04:23 PM
Prevent displaying duplicate infromation in xsl Indy1304 XSLT 1 July 28th, 2008 11:13 AM
Grab the rendered source baburman General .NET 0 November 4th, 2004 12:12 AM
grab the rendered source baburman .NET Framework 2.0 2 November 2nd, 2004 12:40 AM





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