473,395 Members | 1,972 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,395 software developers and data experts.

A question about creating assemblies for the Code Behind pages

Hi everybody
When creating a web project using VS.NET and then publishing using the "copy only files needed to run this project", there is only one DLL and HTML (aspx) pages in the destination folder. Is it possible to get the same effect without using VS.NET ?
I can create my own assemblies by using the vbc ... command for my own components but i am not able to create assembies from the code behind pages.

Let's say I have :
WebForm1.aspx
WebForm1.aspx.vb
Component1.vb, component2.vb and so on.

I can create a single assembly for the components but when including WebForm1.aspx.vb, then there are errors like DataGrid is not declared and so on. I can fix these errors by using the following commands taken from VS.NET from the "Web Form Designer Created Code"

Protected WithEvents DataGrid1 as System.Web.WebControls ... and so on

But I have many forms, so I just wanted to know if there is another way of doing this.

Thanks in advance
Raja

Nov 20 '05 #1
0 750

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: James Fortune | last post by:
Here is an example of Access creating a single page PDF file. The text in the textbox is scaled to fit horizontally into a grey box 100 pixels wide that is fontsize pixels high. Clicking the...
1
by: Ing. Rajesh Kumar | last post by:
Hello Everybody I just started to use VS.NET. I came to know that it only allows to use code behind. I normally use one *.aspx file but does not matter. I can start using Code Behind, but what I do...
1
by: Jiho Han | last post by:
I have an asp.net application that is running and I updated code behind assemblies after I modified some internal logic. Then I tried to view the page and got a very strange error, something like...
0
by: Ing. Rajesh Kumar | last post by:
Hi everybody When creating a web project using VS.NET and then publishing using the "copy only files needed to run this project", there is only one DLL and HTML (aspx) pages in the destination...
3
by: Joe | last post by:
Hi, I am new to creating .asp web sites and have a basic question. I have a website with .html pages running on an IIS server with .Net installed. I also have a couple of forms on the website....
8
by: Jason | last post by:
In my ASP.NET 1.1 solutions, I created several web projects and compiled them each into an assembly. The assembly names reflected the functionality of the feature (Membership.dll, Dues.dll, etc)....
10
by: eswanson | last post by:
I have broken up my web site into smaller web site projects. When I look at the precompiled files, it always has the virtual directory in them ie: <preserve resultType="3"...
9
by: Gilbert | last post by:
Hi, In the code-behind, i have this function: Public Function myfunction(ByVal myvar As Object) As String dim x as string = myvar ..... Return x End Function
8
by: Yofnik | last post by:
Hello, We have developed a web application that provides a specific set of functionality. Our customers may want to add a few additional ASP.NET web pages to this web application to provide some...
3
by: =?Utf-8?B?WmlhbmdpIEpvbmVz?= | last post by:
Hi, I m using VS .NET 2003 to create a website. Using the setup package I create a setup as well. But this setup has files with actual code in it & not pre-compiled DLLs. Please let me know...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.