473,326 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Convert a web application to dll

375 256MB
Hi,

I have successfully converted a class library to dll.
Now I want to convert a web application to dll. Thats an aspx.cs pages to a dll.

Is it possible
Any links will be very helpful

regards
cmrHema
May 18 '08 #1
4 2718
kenobewan
4,871 Expert 4TB
What have you tried? Which version ot asp.net? Are you using VS?
May 18 '08 #2
cmrhema
375 256MB
What have you tried? Which version ot asp.net? Are you using VS?

I am working on visual studo 2005 professional edition.
I am working on asp.net 3.0

Actually, i tried a very simple thing.

I created a class library. Inside the library i wrote a simple method as below



Expand|Select|Wrap|Line Numbers
  1. namespace DllTest
  2. {
  3.     public class Class1
  4.     {
  5.         public Class1()
  6.         {
  7.         }
  8.         public string check(string a)
  9.         {
  10.             string j = a + "Test ok";
  11.             return j;
  12.         }
  13.     }
  14.  
  15. }
I build the program, So a dll will be created in the debug folder of the above application.


Now I create a simple new application in C# and asp.net and include the above dll using Add Reference

i included the namespace

Expand|Select|Wrap|Line Numbers
  1. using DllTest;
and wrote the below code in button click event

Expand|Select|Wrap|Line Numbers
  1. private void button1_Click(object sender, EventArgs e)
  2.         {
  3.             DllTest.Class1 a1 = new Class1();
  4.             string jj= a1.check("checkout");
  5.             MessageBox.Show(jj);
  6.         }


Now when i execute the above program , it will show at the button click
"checkoutTestOk"



Now as stated above, I have created a ClassLibrary.
My question was, is there anything ,just similar to the ClassLibrary, in web applications

In case i want a webapplication to be called in various other webpages, Can i do something similar to the above

regards
cmrhema
May 19 '08 #3
Shashi Sadasivan
1,435 Expert 1GB
Unlike any other application, webpages consist of classses.
However they also have aspx pages which are not compilable.

What you could do is, deploy your web application as a precompiled application
Have a look at this article on how to do so.

This then creates dll's of all pure code files, but puts that in a dll which is named pretty horrifically.

You can add this dll to other projects, and work with it.

But a better way would be to identify which classes would be accessed, and create libraries of them, and access it using both applications
May 19 '08 #4
cmrhema
375 256MB
Unlike any other application, webpages consist of classses.
However they also have aspx pages which are not compilable.

What you could do is, deploy your web application as a precompiled application
Have a look at this article on how to do so.

This then creates dll's of all pure code files, but puts that in a dll which is named pretty horrifically.

You can add this dll to other projects, and work with it.

But a better way would be to identify which classes would be accessed, and create libraries of them, and access it using both applications
Thanks for the article.
I will try out and revert back soon

regards
cmrhema
May 20 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

25
by: cory | last post by:
Hi, I have an Access database and am having an ASP.NEt application written for it. It is almost complete. I have a hosting company that I signed up with a month ago but before I did anything I...
22
by: ACaunter | last post by:
Hi, can someone please let me know if there is a way to convert a vb.net application to asp.net. Or if a vb.net application written in 3-tier could be run on the net??? Thanks! --...
4
by: mcmreddy | last post by:
Hi! Is there a way to convert application id ( db2 list applications output) to a readable format?. Auth Id Application Appl. Application Id DB # of Name ...
2
by: egoldthwait | last post by:
I need to convert a 17mb access 2000 db to Oracle and house it in a Citrix farm. The issue: we have never converted an Access Db to Oracle but can probably use Oracle's Workbench to assist with...
14
by: Me | last post by:
Hi all I am getting a really bizzare error on when I convert a string into a datetime: The code is : DateTime dt1 = Convert.ToDateTime("10 Sep 2005"); Console.WriteLine(dt1.Year);
5
by: melickas | last post by:
We designed a custom application using Office Developer Tools '97 which included a Run-time version of Access--- so it would not matter if our customer even had any version of Access on their...
8
by: deepak_kamath_n | last post by:
Hello, I have the following scenario: 1. My application receives the date from another application as a string 2. The other application is running in a different time zone as compared to my...
0
by: Samuel R. Neff | last post by:
We're migrating our .NET 1.1 web application to .NET 3.5 and during conversion we clicked "Convert to Web Application" on the web project. The results from this conversion were inconsistent. 1. ...
1
by: venkatanarasimhaa | last post by:
Hi all, I designed a VB6 application in my company. I would like to change that as web based application. I know that I need to convert that to ASP. But I dont know ASP. Is there a way to...
1
by: lds | last post by:
I have Visual Studio 2005 Professional Edition installed with Service Pack 1. I have several solutions and projects that I have migrated from Visual Studio 2003 to 2005. In most cases the changes...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.