473,473 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 18 '05 #1
0 1165

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....
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
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
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
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...
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,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.