Hello all,
Once again I seem to have run into a problem that doesn't seem to be
listed any where.
I have created a component (.vb) and I am trying to figure out how to
call that component (and get the result of it) into my .aspx web page. I
know in ASP I would use a line like "Set Obj = Component.Section" and call
the result with a command such as "<% = Function(Paramater1, Paramater2)%
>".
However, those no longer seem to work. Any assistance would be greatly
appreciated.
Thank you and I hope you all are having a great (code free) holiday.
John
the syntax would be
' declare object var
Dim oCom as MyCommponent
' create object
oCom = new MyCommponent
' or both in 1 line
Dim oCom as new MyCommponent
Have you compiled your component? and placed the dll file in the bin
directory?
Also you need to import the namespace
<%@ Import Namespace="MyTest" %>
This will look in the bin directory for MyTest.dll
to compile goto the command line
vbc /t:library /out:bin\MyTest.dll
MyTest.vb /r:system.dll /r:system.data.dll
here is a link that might help:
http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=74
hope this helps
> know in ASP I would use a line like "Set Obj = Component.Section" and
call