Forums
This topic is locked
Insert DB and post form to redirect Page?
Posted 07 Dec 2001 15:16:28
1
has voted
07 Dec 2001 15:16:28 Mark McCarthy posted:
(running personal web server on local machine)I have made the UD Insert record, specified the url to redirect to.
"jobs_new.asp" is how it reads.
I tried to chage the code but got the following error:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'Server.Transfer'
/ainsworthelectronics/customers_add.asp, line 94
Here's the code. You can see where I changed Response.Redirect to
Server.Transfer.
If (Not MM_abortEdit) Then
' execute the insert
Set MM_editCmd = Server.CreateObject("ADODB.Command"
MM_editCmd.ActiveConnection = MM_editConnection
MM_editCmd.CommandText = MM_editQuery
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close
If (MM_editRedirectUrl <> "" Then
Server.Transfer(MM_editRedirectUrl)
End If
End If
It inserts the records correctly but produces the error when it tries to
process the above code.
Thanks
Mark.
"Rob Berube" < > wrote in message
news:9uom9p$7h1$
> This is what I changed, but the next page still isn't getting the
variables:
> if (MM_editRedirectUrl) {
> Server.Transfer(MM_editRedirectUrl);
> }
>
> THanks,
> ROB
>
> "Jon Parkhurst" <admin@DUST_BUNNIESunimark.com> wrote in message
> news:9uoklp$40i$
> > If you change the response.redirect to Server.Transfer, all of your
> > variables will be transferred to the next page.
> >
> > --
> >
> >
> > Jon Parkhurst
> > Website Admin
> > www.unimark.com
> >
> > ::: I don't intend to build in order to have clients, I intend to have
> > clients in order to build. :::
> > -Howard Roark, The Fountainhead
> >
> > (clear the dust bunnies to reply)
> >
> > "Rob Berube" < > wrote in message
> > news:9uojlr$1qk$
> > : Does anyone know how to use UD Insert Record behavior, and still have
> the
> > : form post to the redirect page?
> > :
> > : Thanks
> > :
> > : --
> > : Rob Berube
> > :
> > :
> > :
> >
> >
>
>
Replies
Replied 07 Dec 2001 18:52:05
07 Dec 2001 18:52:05 Joel Martinez replied:
not all versions of asp support server.transfer, in fact I think it's only the latest version that does... so I would change it back to response.redirect
Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/
Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/