473,407 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Callbacs in ASP

Hi All!

I would like to be able to make callback function in ASP VBScript.
Last time when i saw it was impossible...

Is something changed in this area now? Maybe workarounds?
Dec 1 '05 #1
7 1275
CNemo wrote:
Hi All!

I would like to be able to make callback function in ASP VBScript.
Last time when i saw it was impossible...

Is something changed in this area now? Maybe workarounds?


Could you get more specific? What are you trying to do?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Dec 1 '05 #2
I would like to have template function to output table, which will accept
other function as a parameter to renrer row.
Sounds to cool for VB?
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:uf**************@TK2MSFTNGP14.phx.gbl...
CNemo wrote:
Hi All!

I would like to be able to make callback function in ASP VBScript.
Last time when i saw it was impossible...

Is something changed in this area now? Maybe workarounds?


Could you get more specific? What are you trying to do?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Dec 1 '05 #3
It sounds do-able with a SSI. Why is a "callback" function needed, and what
do you mean by "callback"?
CNemo wrote:
I would like to have template function to output table, which will
accept other function as a parameter to renrer row.
Sounds to cool for VB?
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:uf**************@TK2MSFTNGP14.phx.gbl...
CNemo wrote:
Hi All!

I would like to be able to make callback function in ASP VBScript.
Last time when i saw it was impossible...

Is something changed in this area now? Maybe workarounds?


Could you get more specific? What are you trying to do?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get
a quicker response by posting to the newsgroup.


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Dec 1 '05 #4
I would pass an object that provides the needed function. You have also
Eval/Execute. I'm not sure but if I remember you don't have even in
VBScript... do You ?

--
Patrice

"CNemo" <mi********@yahoo.com> a écrit dans le message de
news:uu****************@tk2msftngp13.phx.gbl...
I would like to have template function to output table, which will accept
other function as a parameter to renrer row.
Sounds to cool for VB?
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:uf**************@TK2MSFTNGP14.phx.gbl...
CNemo wrote:
Hi All!

I would like to be able to make callback function in ASP VBScript.
Last time when i saw it was impossible...

Is something changed in this area now? Maybe workarounds?


Could you get more specific? What are you trying to do?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Dec 1 '05 #5
You mean create class and pass it's instance and then call it's method
inside?
That might be neat.
Thanks a lot! I'll try it.

But if you did it already, i'll will really appreciate small sample!

"Patrice" <no****@nowhere.com> wrote in message
news:ul**************@TK2MSFTNGP14.phx.gbl...
I would pass an object that provides the needed function. You have also
Eval/Execute. I'm not sure but if I remember you don't have even in
VBScript... do You ?

Dec 1 '05 #6
Something like :

Class ProviderA
Sub DoSomething
Response.Write "ProviderA.DoSomething"
End Sub
End Class

Sub Render(Provider)
Provider.DoSomething
End Sub

Render New ProviderA
Later you can create another class such as ProviderB and pass an object.
Basically you are on your won to ensure that both object expose the same set
or methods/properties...

--
Patrice

"CNemo" <mi********@yahoo.com> a écrit dans le message de
news:Oc*************@TK2MSFTNGP12.phx.gbl...
You mean create class and pass it's instance and then call it's method
inside?
That might be neat.
Thanks a lot! I'll try it.

But if you did it already, i'll will really appreciate small sample!

"Patrice" <no****@nowhere.com> wrote in message
news:ul**************@TK2MSFTNGP14.phx.gbl...
I would pass an object that provides the needed function. You have also
Eval/Execute. I'm not sure but if I remember you don't have even in
VBScript... do You ?


Dec 1 '05 #7
Thanks!
Nice use for strategy pattern!

"Patrice" <no****@nowhere.com> wrote in message
news:Om*************@tk2msftngp13.phx.gbl...
Something like :

Class ProviderA
Sub DoSomething
Response.Write "ProviderA.DoSomething"
End Sub
End Class

Sub Render(Provider)
Provider.DoSomething
End Sub

Render New ProviderA
Later you can create another class such as ProviderB and pass an object.
Basically you are on your won to ensure that both object expose the same
set
or methods/properties...

--
Patrice

"CNemo" <mi********@yahoo.com> a écrit dans le message de
news:Oc*************@TK2MSFTNGP12.phx.gbl...
You mean create class and pass it's instance and then call it's method
inside?
That might be neat.
Thanks a lot! I'll try it.

But if you did it already, i'll will really appreciate small sample!

"Patrice" <no****@nowhere.com> wrote in message
news:ul**************@TK2MSFTNGP14.phx.gbl...
>I would pass an object that provides the needed function. You have also
> Eval/Execute. I'm not sure but if I remember you don't have even in
> VBScript... do You ?
>



Dec 1 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.