S
s.hong
Hello?
On the ASP.NET, I can use the class by import declation on the top of page.
<%@ page language="vb" explicit="true" aspcompat="false" debug="true"%>
<%@ import namespace="System.Data" %>
<%@ import namespace="System.Data.SqlClient" %>
It's work well for the compiled class files in /bin folder.
But, I have a problem on using class file which are not complied.
How can I import or include it to asp.net source code?
For example. I have two class files written in vb.net.
student.aspx.vb
<script language="vb" runat="server">
public class Student
....
end class
</script>
teacher.aspx.vb
<script language="vb" runat="server">
public class Teacher
....
end class
</script>
If I try to include both class file to asp.net code.
<!-- #include file="student.aspx.vb" -->
<!-- #include file="teacher.aspx.vb" -->
It occur error that the definition of class was not founded on running.
If I merge the classfile to one file. then, It work well.
Is there are any method to use indivisual files on asp.net?
Hope for your kindly reply.
Thanks!
On the ASP.NET, I can use the class by import declation on the top of page.
<%@ page language="vb" explicit="true" aspcompat="false" debug="true"%>
<%@ import namespace="System.Data" %>
<%@ import namespace="System.Data.SqlClient" %>
It's work well for the compiled class files in /bin folder.
But, I have a problem on using class file which are not complied.
How can I import or include it to asp.net source code?
For example. I have two class files written in vb.net.
student.aspx.vb
<script language="vb" runat="server">
public class Student
....
end class
</script>
teacher.aspx.vb
<script language="vb" runat="server">
public class Teacher
....
end class
</script>
If I try to include both class file to asp.net code.
<!-- #include file="student.aspx.vb" -->
<!-- #include file="teacher.aspx.vb" -->
It occur error that the definition of class was not founded on running.
If I merge the classfile to one file. then, It work well.
Is there are any method to use indivisual files on asp.net?
Hope for your kindly reply.
Thanks!