思归大侠在呀,太好了,我有救了...
其实我是这么写的,但有点问题...
C#中
public class myfunc
{
public myfunc(){}
public static string aa()
{
....}
}
vb中
Public Class myfunc
Public Shared myfunc()
Public Shared Function aa() As String
...
end Funcion
xx.aspx中
<LINK href="<%=myfunc.aa %>" type=text/css rel=stylesheet>
用C#没问题,用vb就提示myfunc没定义???
is the vb file part of your project? if not, you need either add the file to your project or compile it into a dll and then add a reference to it in your project