Defining methods outside of script tags

  • Thread starter Thread starter Jasper Pearlman
  • Start date Start date
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?
 
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

Back
Top