Re: Can you call asp function in asp.net?
From: Cor Ligthert (notmyfirstname_at_planet.nl)
Date: 12/02/04
- Next message: Jeff Johnson [MVP: VB]: "Re: Regex question: Lazy quantifiers"
- Previous message: Jon Skeet [C# MVP]: "Re: base() question :-)"
- In reply to: Kat: "Re: Can you call asp function in asp.net?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 2 Dec 2004 17:27:32 +0100
Kat,
I tried to show you the in my opinion nicest version.
<script language="VB" runat=server>
'this is nicer in ASPX and than all your subs and functions inside that.
It is not needed you can keep your old ASP style. Adviced is as far as I
know to upgrade this when busy with it. Doing that than it is easier to go
to code behind in future. Than you can by the way in the VBNet 2002/2003
versions not use your Inc pages anymore. (I don't know how that is in 2005)
function test(ByVal strValue as String) as String
'This is in my opinion your error. You did not write the return type "as
String".
'ByValue is in VBNet/CSharp almost forever more efficient than ByRef
'A reason to use ByRef can when you create a new object inside the function
Return replace(strValue,"'","''")
'This I find myself much nicer, however when you want what you had than that
is no problem at all.
I hope this helps?
Cor
- Next message: Jeff Johnson [MVP: VB]: "Re: Regex question: Lazy quantifiers"
- Previous message: Jon Skeet [C# MVP]: "Re: base() question :-)"
- In reply to: Kat: "Re: Can you call asp function in asp.net?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|