C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

Creation of DLL


Posted Date: 10 Oct 2008      Posted By: senthil      Member Level: Gold     Points: 1   Responses: 3



I dont know create the DLL in asp.net.
How to create DLL.
and How it works...

Give Brief answer...





Responses

Author: Abhi    10 Oct 2008Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

check this url
http://www.c-sharpcorner.com/UploadFile/mahesh/dll12222005064058AM/dll.aspx



Author: gomathinayagam    10 Oct 2008Member Level: GoldRating: 2 out of 52 out of 5     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 2008Member Level: GoldRating: 2 out of 52 out of 5     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
**********************************************************************



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : HI i lookup for Volonter asp.net site develop job
Previous : to Sindhu
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use