> It is not a good thing to mention your fully functions in the querystring.
> It´s better to pass a string by the querystring and in the page_load event
[quoted text clipped - 9 lines]
> > thnaks in advance
> > peleg
string methodToCall = "TheFunctionOrMethodNameToCallDynamicall";
Return CType(Me.GetType().InvokeMember(methodToCall, BindingFlags.Instance
Or BindingFlags.Public Or _
BindingFlags.InvokeMethod, Nothing, Me, New Object()
{SomeParameterYouArePassing_Id, SecondParameterEtcAndThirdCommaDelimited}),
Byte())
In this case I am invoking, Dynamically, a function that returns a Byte()
Array.
Etc..
>i agree with that 100% !
> the problem is hat the client side was wrote long ago and know i cant
[quoted text clipped - 18 lines]
>> > thnaks in advance
>> > peleg
pelegk1 - 23 Sep 2007 08:20 GMT
wow i thought its easy like in asp :)
do u have mabye a link to an example?
thanks alot
peleg
> string methodToCall = "TheFunctionOrMethodNameToCallDynamicall";
> Return CType(Me.GetType().InvokeMember(methodToCall, BindingFlags.Instance
[quoted text clipped - 31 lines]
> >> > thnaks in advance
> >> > peleg
IfThenElse - 25 Sep 2007 21:52 GMT
This is an example.
string methodToCall = "TheFunctionOrMethodNameToCallDynamicall"; // put
the function name you want to call here.
Return CType(Me.GetType().InvokeMember(methodToCall, BindingFlags.Instance
Or BindingFlags.Public Or BindingFlags.InvokeMethod,
Nothing, Me, New Object()
{SomeParameterYouArePassing_Id,
SecondParameterEtcAndThirdCommaDelimited}), Byte())
This is where you pass the parameters if you have any.
{SomeParameterYouArePassing_Id, SecondParameterEtcAndThirdCommaDelimited}),
The function you are calling is withing the same class hence
Me.GetType().etc.....
read more about the flags for the method above....
> wow i thought its easy like in asp :)
> do u have mabye a link to an example?
[quoted text clipped - 39 lines]
>> >> > thnaks in advance
>> >> > peleg