| Author: Abhi 10 Oct 2008 | Member Level: Bronze | Rating:  Points: 2 |
check this url http://www.c-sharpcorner.com/UploadFile/mahesh/dll12222005064058AM/dll.aspx
|
| Author: gomathinayagam 10 Oct 2008 | Member Level: Gold | Rating:  Points: 2 |
actually u cant create dll in asp.net. please understand what is dll(dynamic link library). u can only create dll using only class library project type.
dll are nothing a precompiled class. it will speed up ur project little.
offcourse u can add that type of project into your asp.net project. just right click in your soultion (in solution explorer) add--> new project. choose c# class library. now one more project added in your soultion. so that u can manage tat code also from your soultion. but i recomend you to generate dll seprately add add that in app_data folder app_data - is a folder contains application data in ur asp.net solution. then right click in your solution explorer and add -> reference choose that dll. thats all
Gomathi Nayagam
Please Rate my answer if it has helpful to you
|
| Author: Parshuram 10 Oct 2008 | Member Level: Gold | Rating:  Points: 6 |
HOW TO MAKE DLL
create one dll class file
compling the file name in .net command prompt
E:\LIT\AJAXEnabledGASPROERP_RAM\App_Code\vbc class file name
E:\LIT\AJAXEnabledGASPROERP_RAM\App_Code\vbc /target:library class file name
OR
E:\LIT\AJAXEnabledGASPROERP_RAM\App_Code\vbc /t:library class file name
your .dll file create by default your App_cde direcotry in your Project
1. Suppose You Use the controls in your class then imports one package i.e.Imports System.Web.UI.WebControls & write As Integer
2. Suppose You Not Use the controls in your class then write As Objects
Exmaple ********************************************************************** Imports Microsoft.VisualBasic Imports System.Data.SqlClient Imports System.IO Imports System.Data Imports System.Configuration.ConfigurationManager Imports System.Web.UI.WebControls
Public Class Mydl Dim connstr As String = AppSettings("conn") Dim conn As New SqlConnection(connstr) Shared Sub main() Console.WriteLine("This Is A DLL IF Indent.Vb.") Console.ReadLine() End Sub Shared Function disdgme(ByVal dg1 As DataGrid, ByVal sp1 As String) As Integer
Dim connstr As String = AppSettings("conn") Dim conn As New SqlConnection(connstr) Dim ds As New DataSet Dim da As New SqlDataAdapter(sp1, conn) da.Fill(ds) dg1.DataSource = ds dg1.DataBind() Return 1 End Function End Class **********************************************************************
|