Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Refrencing DLL in ASP.NET 1.0 Inline VB SCRIPT?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wildman@noclient.net - 18 Mar 2008 16:17 GMT
Old vb.net asp.net 1.0 vb.net website. We don't have sources, nor can
I compile it.

One the pages must be replaced to simply redirect to another
webserver/
website page, but I need to send some of the session info that the
site. Of course session info is lost.

Challenge is I'd like to use a new class to store session information
in a database.

Currently I have some inline code (on the old site replacing that
page) that's able to read the session variables and redirect to the
new site. I could of course simply pass the data I want in a query
string, but I'd rather store it in a database.

How do i refrence a dll just in the inline vbscript?

Thanks for any help or information!
bruce barker - 18 Mar 2008 16:35 GMT
see the @Assembly page directive

-- bruce (sqlwork.com)

> Old vb.net asp.net 1.0 vb.net website. We don't have sources, nor can
> I compile it.
[quoted text clipped - 15 lines]
>
> Thanks for any help or information!
wildman@noclient.net - 18 Mar 2008 17:38 GMT
On Mar 18, 11:35 am, bruce barker
<brucebar...@discussions.microsoft.com> wrote:
> see the @Assembly page directive

What I've have done in the past.. and it's not working for some
reason...

is drop my vb.net 2.0 class library DLL in the BIN directory of the
old project.

that class has a namespace.

then in my inline code:

<%@ Import Namespace="JCP"%>

and in my code
     Dim xx as new JCP.Myclass(")

But this gives me error:

Type 'JCP.Myclass' is not defined.

I'm not sure how I can use the @Assembly directive? Also, do I need to
worry that my class was compiled in 2.0 and that this server only has
1.0 .NET framework installed?

my namespace is JCP
my class is MyClass
the file is MyClass.DLL
It's compiled in 2.0
I'm attempting to access it from 1.0 (which sounds like might be a
problem anyway )

Thank you.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.