Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: Redirection Component


Message #1 by "Tim Morford" <tmorford@n...> on Sat, 16 Jun 2001 06:19:05 -0400
Hello all, now I am not that good with component writing so I am going to

ask you all a "how to" question, Ready? Ok, How do you make a component that

takes a URL that is posted from a form and redirects the clients browser to

that URL, Oh and by the way it also needs to fill a database but I think I

know how to do that.



Thanks for any help.



Tim



Message #2 by "Tim Morford" <tmorford@n...> on Sat, 16 Jun 2001 08:58:26 -0400
Never Mind I figuered it out .. But thanks



Tim



-----Original Message-----

From: Tim Morford [mailto:tmorford@n...]

Sent: Saturday, June 16, 2001 6:19 AM

To: ASP components

Subject: [asp_components] Redirection Component





Hello all, now I am not that good with component writing so I am going to

ask you all a "how to" question, Ready? Ok, How do you make a component that

takes a URL that is posted from a form and redirects the clients browser to

that URL, Oh and by the way it also needs to fill a database but I think I

know how to do that.



Thanks for any help.



Tim



Message #3 by Prashanthi <murthy.prashanthi@t...> on Mon, 18 Jun 2001 10:43:18 +0530 (IST)
Hello Tim,



Could you please tell me how did you acheieve it.

I need to do something similar.



regards



-Prashanthi Adukuri

Lead Systems Engineer

Tata Infotech Ltd.

Bangalore.



On Sat, 16 Jun 2001, Tim Morford wrote:



> Never Mind I figuered it out .. But thanks

>

> Tim

>

> -----Original Message-----

> From: Tim Morford [mailto:tmorford@n...]

> Sent: Saturday, June 16, 2001 6:19 AM

> To: ASP components

> Subject: [asp_components] Redirection Component

>

>

> Hello all, now I am not that good with component writing so I am going to

> ask you all a "how to" question, Ready? Ok, How do you make a component t

hat

> takes a URL that is posted from a form and redirects the clients browser 

to

> that URL, Oh and by the way it also needs to fill a database but I think 

I

> know how to do that.

>

> Thanks for any help.

>

> Tim

>

>

Message #4 by =?iso-8859-1?Q?Gonzalo_Ruiz_de_Villa_Su=E1rez?= <gonzalo.ruizdevilla@a...> on Mon, 18 Jun 2001 10:18:28 +0200
You can use the Response Object from a dll using vb using the following code

as an example.

Note that you use the Object Context to retrieve the response object.

****************************************************************************

***

Option Explicit



Implements ObjectControl





Private oObjectContext As ObjectContext

Private oResp As Response





Private Sub ObjectControl_Deactivate()

    Set oObjectContext = Nothing

    Set oResp = Nothing

End Sub



Private Function ObjectControl_CanBePooled() As Boolean

    ObjectControl_CanBePooled = False

End Function



Private Sub ObjectControl_Activate()

    On Error GoTo OCActivateErr

    Set oObjectContext = GetObjectContext()

    Set oResp = oObjectContext("Response")

    Exit Sub

OCActivateErr:

    Call RaiseError("OCActivate")

End Sub



Public Sub WriteLine(Linea As Integer)

    Dim NumLinea

    NumLinea = Round(Linea / 10)

    oResp.Write "Linea " & Linea & " introducida.<br>" & Chr(13) & Chr(10)

    oResp.Write "<!-- Linea " & NumLinea & ". Hora " & Now() & "-->"

End Sub





****************************************************************************

***

-----Mensaje original-----

De: Prashanthi [mailto:murthy.prashanthi@t...]

Enviado el: lunes, 18 de junio de 2001 7:13

Para: ASP components

CC: tmorford@n...

Asunto: [asp_components] RE: Redirection Component





Hello Tim,



Could you please tell me how did you acheieve it.

I need to do something similar.



regards



-Prashanthi Adukuri

Lead Systems Engineer

Tata Infotech Ltd.

Bangalore.



On Sat, 16 Jun 2001, Tim Morford wrote:



> Never Mind I figuered it out .. But thanks

>

> Tim

>

> -----Original Message-----

> From: Tim Morford [mailto:tmorford@n...]

> Sent: Saturday, June 16, 2001 6:19 AM

> To: ASP components

> Subject: [asp_components] Redirection Component

>

>

> Hello all, now I am not that good with component writing so I am going to

> ask you all a "how to" question, Ready? Ok, How do you make a component

that

> takes a URL that is posted from a form and redirects the clients browser

to

> that URL, Oh and by the way it also needs to fill a database but I think I

> know how to do that.

>

> Thanks for any help.

>

> Tim

>

>


  Return to Index