Newbie question

  • Thread starter Thread starter Qwert
  • Start date Start date
Q

Qwert

Heya,

I want to use classes from custom assemblies:

<HTML>
<%@ Assembly Name="TestASP.dll" %>
<script language="VB" runat="server">
Dim objTest As New TestASP.TestASP()
Sub Page_Load(Sender As Object, E As EventArgs)
objTest.ShowMessage()
End Sub
</script>
</HTML>

but it's not working this way. How does it work?

Thanks.
 
The directive should be at the top of the page (below @Page directive),
along with other directives. Also, what is the error you are getting?

Tip: you could copy the assembly into the bin folder, and not use the
@Assembly directive.
 
Back
Top