kleptos Posted October 31, 2003 Posted October 31, 2003 I am using a DAL component for all database access on a small project I am working on but i am not using VS.NET, just using the framework and a text editor. How do i go about using a DLL in my web application w/out code begind pages and such? Thanks for the help! Quote ..::[ kleptos ]::..
drewsblues Posted October 31, 2003 Posted October 31, 2003 The framework takes care of compiling your ASP.NET code if you're not using code behind. The first time you load an .aspx page after making changes, the server compiles it. For your component, you'll need to use a command-line compiler (installed with the .NET Framework). The compilers are: csc.exe (for C#) vbc.exe (for VB.NET) Generally speaking, you would compile your DLL by using the following syntax from the command line: vbc /out:assemblyname.dll file1.vb file2.vb ... fileN.vb Here's an article with more information: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconbuildingsingle-fileassembly.asp Quote
kleptos Posted October 31, 2003 Author Posted October 31, 2003 I have it compiled, i just need to know how to call it from an ASP.NET page. Quote ..::[ kleptos ]::..
*Gurus* Derek Stone Posted October 31, 2003 *Gurus* Posted October 31, 2003 Place the assembly (DLL) in your Web application's /bin folder and import the namespace the code requires. <%@ Import Namespace="MyAssembly.MyNamespace" %> Quote Posting Guidelines
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.