G
Guest
In VS 6.0 it was easy to create a new dll, compile it, and all the vb runtime
files were nicely added to it via the references that you gave.
Then in an ASP page youjust referenced, after registering it, like:
dll = sbsuserinfo
class = cluserinfo
function = CheckLogin
' Let's go write the record to db and create cookie if selected
Dim myobj
Set myobj = server.CreateObject("sbsuserinfo.cluserinfo")
if myobj.CheckLogin(d1,d2,d3) = 1 then
'Response.Write "<h1>Login Successful!</h1>"
Response.Redirect "Default.asp"
else
' Do nothing. Login unsuccessful!
End If
Set myobj = nothing
I can't seem to get this right in ASP.NET. I've created the new dll, a .vb
file that I compiled. I've added it to my VS.NET project as a reference and
it's in the /bin, but how do I now use those classes in the dll? I created
one test class and one function to pass two values, thus returning them back
slightly changed.
I want to reference this new dll and it's class/functions in my code-behind.
How can I do this? I've tried making the .vb code I complied into a
namespace to see it, but the functions, etc. are not available??????
Help..........
files were nicely added to it via the references that you gave.
Then in an ASP page youjust referenced, after registering it, like:
dll = sbsuserinfo
class = cluserinfo
function = CheckLogin
' Let's go write the record to db and create cookie if selected
Dim myobj
Set myobj = server.CreateObject("sbsuserinfo.cluserinfo")
if myobj.CheckLogin(d1,d2,d3) = 1 then
'Response.Write "<h1>Login Successful!</h1>"
Response.Redirect "Default.asp"
else
' Do nothing. Login unsuccessful!
End If
Set myobj = nothing
I can't seem to get this right in ASP.NET. I've created the new dll, a .vb
file that I compiled. I've added it to my VS.NET project as a reference and
it's in the /bin, but how do I now use those classes in the dll? I created
one test class and one function to pass two values, thus returning them back
slightly changed.
I want to reference this new dll and it's class/functions in my code-behind.
How can I do this? I've tried making the .vb code I complied into a
namespace to see it, but the functions, etc. are not available??????
Help..........