Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 10th, 2006, 05:08 AM
Registered User
 
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Pass values to VB6 dll from asp page

Hi

I am currently writing a program that allows a user to select from a drill down list.

I have basically displayed the data on the page from sql using a dll.

I'm trying to pass the value that the user selects thru 'form'. For some reason my varaibles aren't been passed

See the lines in red? When I do a response.write, there is nothing in the variable, however there are values in the recordset. I suspect that because I'm looping to get the values out on the page, the users selection is not being preserved? Make sense? This what my code looks like below:

Code:
if simGroup = "" OR simGroup <> trim(deptmRS.fields("group_no")) then

%>
             <tr>
            <div id="sc1<%=counter%>" class="switchcontent">
             <dl id="groupprod">
    <dt>
    <dd>



    <p onClick="expandcontent('sc2<%=counter2%>')" style="cursor:hand; cursor:pointer" title="Click here to view the Product lines of this Group">
    <b><%=deptmRS.Fields("group_descr")%></b></p> 

    </dd>
    </dt>
    </div>
    </dl>
    </tr>

<%                    
end if

    'end if
'-----------------------------------------------------------------------------------
%>        
    <tr>
    <div id="sc2<%=counter2%>" class="switchcontent">
    <dd>
    <dd>
    <dd>



    <p onClick="document.frmProductSearch1.submit();"  style="cursor:hand; cursor:pointer" title="Click to view the Products for this line">
                                <b><%=deptmRS.Fields("product_descr")%></b></p>

    </dd>
    </dd>
    </dd>
    </dl>
    </div>
    </tr>    
<%
'-------------------------------------------------------------------------------------

                simDept = trim(deptmRS.fields("department"))
        simGroup = trim(deptmRS.fields("group_no"))
        simProdline = trim(deptmRS.fields("product_line"))        counter = counter + 1
        counter2 = counter2 + 1

        deptmRS.MoveNext
        loop

        end if 

        deptmRS.Close
        set deptmRS = nothing
%>

</tr>
</table>
    </form>
            </td>

<table border="0" width="100%">

          <form method="post" action="saveorder2.asp" name="frmProductSearch1">     
        <input type="hidden" name="Submitted" value="Y">
              <input type="hidden" name="BranchID" value="<%=request("BranchID")%>">
              <input type="hidden" name="pageno" value="<%=request("pageno")%>"> 
              <input type="hidden" name="UserID" value="<%=encOBJ.encrypt(encOBJ.Decrypt(request("UserID")))%>">
             <input type="hidden" name="lst_dept" value="<%=request("simDept")%>">
               <input type="hidden" name="lst_group" value="<%=request("simGroup")%>">
               <input type="hidden" name="lst_prodline" value="<%=request("simProdline")%>">
        <input type="hidden" name="SearchType" value="2">
        </tr>
Thank you for all your help


Your mickey mouse kung fu is no match for my superior fighting style





Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass values from Aspx page to Flash Muthunagai.A ASP.NET 1.0 and 1.1 Professional 0 April 25th, 2007 11:43 PM
Pass values from Aspx page to Flash Muthunagai.A ASP.NET 1.0 and 1.1 Basics 0 April 25th, 2007 11:41 PM
Pass values from Aspx page to Flash Muthunagai.A Excel VBA 0 April 25th, 2007 11:37 PM
how to pass values to anther page using javascript yuki Javascript How-To 3 March 6th, 2005 06:24 AM
help me to pass the check box values to new page ansar BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 November 16th, 2004 06:08 AM





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