Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a Record Set on another page

Status
Not open for further replies.

david7777777777

Programmer
Sep 26, 2001
417
US
I have 2 asp pages: page1.asp & page2.asp. I want to only have a button (btnNew) on page1.asp, whose onClick event will navigate to page 2.asp, where the bulk of the code is. On page2.asp I have a recordset (rsDepartments), two text boxes (txtDeptName & txtDeptNumber) and a command button (btnSave).

When a user clicks on the btnNew on page1.asp, I want that onClick to perform the following for the recordset on page2.asp: rsDepartments.addrecord and/or rsDepartments.open.

Can you provide me an example of the code structure and syntax for this?

Thanks,
David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top