473,398 Members | 2,427 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,398 software developers and data experts.

Problem in creating dll

375 256MB
Hello

I have created a small asp.net application wherein I just called a class
Expand|Select|Wrap|Line Numbers
  1. namespace dllconversion 
  2. {
  3.  
  4. public partial class _Default : System.Web.UI.Page
  5.  
  6. {
  7.  
  8.  
  9.  
  10. protected void Page_Load(object sender, EventArgs e) 
  11. {
  12.  
  13.  
  14.  
  15.  
  16.  
  17. }
  18.  
  19. public class c1
  20.  
  21. {
  22.  
  23. public string abc(string a1) 
  24. {
  25.  
  26.  
  27.  
  28. return a1+"ok"; 
  29. }
  30.  
  31. }
  32.  
  33.  
  34.  
  35.  
  36.  
  37. }
  38. }
Here I just added the namespace and created a dll .

Imported this dll to another page successfully.

Now I just modified the dll a bit

I haved added a button and textbox
Expand|Select|Wrap|Line Numbers
  1. namespace dllconversion 
  2. {
  3.  
  4. public partial class _Default : System.Web.UI.Page
  5.  
  6. {
  7.  
  8.  
  9.  
  10. protected void Page_Load(object sender, EventArgs e) 
  11. {
  12.  
  13.  
  14.  
  15.  
  16.  
  17. public class c1
  18.  
  19. {
  20.  
  21. public string abc(string a1) 
  22. {
  23.  
  24.  
  25.  
  26. return a1+"ok"; 
  27. }
  28.  
  29. }
  30.  
  31. protected void Button1_Click(object sender, EventArgs e) 
  32. {
  33.  
  34. TextBox1.Text = "button event"; 
  35. }
  36.  
  37. }
  38.  
  39.  
  40.  
  41.  
  42.  
  43. }
Now when I create the dll in the command prompt

Expand|Select|Wrap|Line Numbers
  1. E:\Converttodll>csc /t:library default.aspx.cs
I have the error as


Default.aspx.cs(35,13): error CS0103: The name 'TextBox1' does not exist in the current context

Please let me know what's the problem

Regards

cmrhema
Oct 11 '07 #1
0 885

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

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
6
by: Club-B42 | last post by:
i've compiled my programm using command "python setup.py py2exe >1" python script works fine, but .exe version fails with =====================================================================...
5
by: יוני גולדברג | last post by:
Hi, While trying to create new directory i recieve the following error message: "System.IO.DirectoryNotFoundException: Could not find a part of the path "\\premfs16\sites". The path exists, even...
1
by: Medora Schauer | last post by:
I've installed 7.4.2 on a PowerPC system running linux 2.4.13. When I try to run initdb to create to create the database cluster I get the following: $ initdb -D $PGDATA The files...
2
by: tech tech | last post by:
Hello All, I installed postgresql 7.3.4 on HPUX PA in /usr/local/pgsql and put the libraries in /usr/local/pgsql/lib/LIB_new. During the initialization( initdb), it loads libraries (language)...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
102
by: hug | last post by:
www.webmaster, was suggested that this ng could be a better place.] I've updated my test server to handle if-modified-since. I've noticed that the (old copies I run of) IE and Netscape seem...
2
by: JJ | last post by:
Using asp.net 1.1 I am trying to have a consistent look for the webcontrols. Right now, every time I use textbox controls, I manually change the font property, size property, and other property...
8
by: Chizl | last post by:
I'm building a web server and having some issues with the TCPListener.Start(BackLog). It doesn't seem to do as expected. I'm using MS Web Stress Tool to test against my web server and when I...
1
by: Ana RM | last post by:
Mark.Powell@eds.com (Mark D Powell) wrote in message news:<2687bb95.0308010642.1fc4ff1f@posting.google.com>... Hi Mark, Thanks por answer me. I do not think it is important thw warehouse...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.