Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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?
Posted
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)?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...