This is a discussion on Step By Step Procedure to create project? within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi, Could any one tell me, how to create a new project.. First tell me how to create a new ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, Could any one tell me, how to create a new project.. First tell me how to create a new project without any conflict.How to create dll for that new project.I need to create new website too... I think this is the basis of creating any project by own with proper business logic..I need this in C#.Net not in VB.Net Last edited by poornima : 03-18-2008 at 11:09 PM. |
| Sponsored Links |
| |||
| Hi, For Windows Application while creating Project,we can able to get dll created in default.How to create in WebApplication... In webApplication,how to create a Project and DLL? |
| |||
| Hi poornima, The Steps to create a DLL file in Visual Studio is as follows. Step 1: Open the Visual Studio Dvelopment environment. Step 2: In the Visual C# category, select Class Libarary, give it a name as 'Arithmetics' and open it. A name space named 'Arithmetics' will be created automatically with the class class1. Step 3: Change the name of the class class1 as 'operation'. Step 3: Create a function within it for adding two given numbers as public long Add(long val1, long val2) { return (val1 + val2); } Thus the namespace looks like this using System; using System.Collections.Generic; using System.Text; namespace Arithmetics { public class operation { public operation() { } public long Add(long val1, long val2) { return (val1 + val2); } } } Step 5: Build this file. But you cannot execute this because it need a container to survive. The DLL file will be stored automatically in the " \Arithmetics\Arithmetics\bin\Debug " directory of the location where you saved the project. Step 6: Open a new C# webapplication in the Visual Studio . Step 7: In the menubar goto Website -> Add Reference . Step 8: In the dialogbox go to the Browse tab and select the DLL thet was created by us from the above said locatoin. Step 9.: Then add the 'Arithmetics' name space in the page using the "using" keyword as follows using Arithmetics; Step 10 : Place two textboxes , 1 labelbox and a command button on the page. Step 11: Then write the following code on the button's click even. protected void Button1_Click(object sender, EventArgs e) { operationa = new operation(); long x = Convert.ToInt64(TextBox1.Text); long y = Convert.ToInt64(TextBox2.Text); long z = a.Add(x, y); Label1.Text = z.ToString(); } Thus you can create a DLL.
__________________ --Kirubhaa. Born to win-- |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to create store procedure? | senraj | Database Support | 4 | 04-25-2008 06:26 AM |
| Need a step-by-step walkthrough | Ameno | Networking & Internet Connectivity | 0 | 01-17-2008 06:34 AM |
| Microsoft Internet Explorer patch eliminates extra step | senthilkannan | Microsoft | 0 | 11-12-2007 10:46 PM |
| Any simple step or sample code for transparency mobile..? | mobilegeek | Mobile Software Development | 1 | 07-24-2007 06:43 AM |
| Step to check the Installation testing | vadivelanvaidyanathan | Software Testing | 0 | 03-23-2007 01:03 AM |