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 September 27th, 2004, 03:26 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling second page from 1st page

<h1 align ="center"> <Input type="submit" value =AddNew onclick="javascript:Hello();" >
        <script language = javascript>
             function Hello(){
              thisForm.action='EditPage.asp';
           thisForm.submit();
         }
               </script>

I want to call 'EditPage.asp from my first page which is my second page. If the person doesnot find the name in the data base, then he click add new button it should take him in the second page where all the text boxes are cleared and types in the names then. When i hit add button the error it gives
objRST.Open strNumber,objConn,3,3
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '='.
/EditPage.asp, line 23. I will appreciate if any body can help me. ThanksCa


 
Old September 27th, 2004, 07:29 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

  Can you post that line where u got error?


------------
Rajani

 
Old September 28th, 2004, 12:59 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

CAN U TRY WITH FORM - ACTION TAG
<form name="hello" action="EditPage.asp" method="POST">


Gokulan Ethiraj
 
Old September 29th, 2004, 01:18 AM
Friend of Wrox
 
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
Default

could u post the code of "EditPage.asp"

Charul Shukla
 
Old September 30th, 2004, 04:41 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Yes if you post the code of "EditPage.asp" it will be helpful to trace out your problem.
 Check your Query statement in EditPage.asp page.Check whether you had missed out apostrophe character in the query.
Check whether you had done similar like this "where name='"&fname&"'".







Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling bean from jsp page madhavaram123 JSP Basics 6 May 10th, 2006 09:15 PM
Chapter 13, can't do 1st example beg. page 481 mjoh44 JSP Basics 2 August 16th, 2004 09:51 AM





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