HardCode Posted September 17, 2004 Posted September 17, 2004 Let's say that I have a page stats.aspx that uses stats.vb as the code behind page. Now, assume that I have a .VB file that contains a class that will return an ADO.NET Connection Object that I want to be used in all code behind pages that access the database. Say it is called Conn.vb. How would I allow stats.vb to use/recognize the class(es) in the file Conn.vb? Can I even do this, or must I make Conn.vb into a DLL instead so I can use the Imports? Quote
Administrators PlausiblyDamp Posted September 17, 2004 Administrators Posted September 17, 2004 If you made the file into a DLL then you could share the single binary amongst several projects, otherwise just add the Conn.vb file to the current project and it will be usable. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
HardCode Posted September 17, 2004 Author Posted September 17, 2004 I am not doing it through VS.NET using a Web Application. I am just creating the files in Web Matrix and putting them into the wwwroot directory. Would this make a difference since nothing is "binding" the files together except for their presence in the same directory (../wwwroot/mypages/Conn.vb)? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.