Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2003
    Posts
    3

    Unanswered: Passing data from one page to the next

    =======================
    IIS 5.0
    Access 2000
    Database is used via intranet
    running .asp pages.
    All scripting is vbsript
    =======================

    I hope I don't make this sound harder than what it probably is.

    I'm working to two pages:
    recent.asp
    edit.asp

    recent.asp is essentially what you would call a report in access. It shows a list of our current customers.

    edit.asp is essentially what you would call a form in access. We use this to edit our customers. The navigation on this page is a drop down box that shows a list of our customers and when you select it it navigates to that record. Here's the code:
    Code:
    <SCRIPT language=vbscript event=onchange for=CustID>
    <!--
     Dim rs
        Set rs = MSODSC.DefaultRecordset
        rs.Find "[Name] = '" & document.all.item("CustID").value & "'", 0, 1, 1
    -->
    </SCRIPT>
    What I'm trying to do is on the recent.asp is include a button that opens edit.asp and navigates automatically to that customer. Something like this:
    Code:
    <SCRIPT language=vbscript event=onclick for=editbutton>
    <!--
    window.open ("edit.asp", name)
    -->
    </SCRIPT>
    Where "name" is the current customer. I'm pretty sure I will need to include a for statement in there somewhere.

  2. #2
    Join Date
    Oct 2003
    Posts
    3
    From what I gather this should work but it didn't.

    Code:
    <SCRIPT language=vbscript event=onclick for=cmdEdit>
    <!--
    Dim Customer
    <%
    Customer = MSODSC.DefaultRecordset("Name")
    %>
    
    window.open ("edit.asp?CustID=<%Customer%>")
    -->
    </SCRIPT>
    I think it has something to do with the form edit.asp because it's databinded

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •