Defining methods outside of script tags

J

Jasper Pearlman

Is it possible to define methods outside of
<script runat=""> tags under ASP.Net?

With the old ASP one used to be able to create
VB methods which contained inlined document data,
for example:

<%

LoadElementNode()

Function LoadElementNode

%>

<element>
<data><% =somedata() %></data>
</element>

<%

End Function

%>


However, with ASP.Net, all the inlined code and data
seems to be converted into code within the body
of a generated method such as:

Private Sub __Render__control1
# generated code here...
End Sub

So that the LoadElementNode function above generates
a compilation error. Is there a comparable alternative
in ASP.Net?
 
K

Karl

There's probably no good reason to want to...if you have a specific problem
I'll be more than happy to try to help if you explain it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top