I see that the code behind is now a partial class. So where is the code
associated with the server controls declaration etc ?
Is this generated on the fly now, or am I missing something ?
--
Goofy 21 1619
"Goofy" <me@mine.comwro te in message
news:eR******** ******@TK2MSFTN GP06.phx.gbl...
>I see that the code behind is now a partial class. So where is the code associated with the server controls declaration etc ?
It's in the designer.cs files
Is this generated on the fly now
Yes
OK, so does it create the designer.cs on the fly when you do a build and
then delete it ?
"Mark Rae" <ma**@markNOSPA Mrae.comwrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
"Goofy" <me@mine.comwro te in message
news:eR******** ******@TK2MSFTN GP06.phx.gbl...
>>I see that the code behind is now a partial class. So where is the code associated with the server controls declaration etc ?
It's in the designer.cs files
>Is this generated on the fly now
Yes
Server-side controls no longer need to be explicitly declared in your
codebehind class, but you still have complete access to them programmaticall y.
Fritz Onion's article in MSDN mag explains this: http://msdn.microsoft.com/msdnmag/is...ExtremeASPNET/
See Figure 2 and Figure 3 for examples.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Goofy" <me@mine.comwro te in message news:eR******** ******@TK2MSFTN GP06.phx.gbl...
>I see that the code behind is now a partial class. So where is the code associated with the server controls declaration etc ?
Is this generated on the fly now, or am I missing something ?
--
Goofy
"Goofy" <me@mine.comwro te in message
news:OY******** ******@TK2MSFTN GP04.phx.gbl...
OK, so does it create the designer.cs on the fly when you do a build and
then delete it ?
No - it *creates* the designer.cs file when the aspx and aspx.cs files are
created.
The contents of the designer.cs files is *updated* on the fly...
Mark,
Thanks for the reply. ( Im probably being dumb) but I cant see this file at
all. I have looked in the websites directory where my web site lives on the
local machine, I have also looked in the projects directory, I have checked
my folder options to enusre that its not hiding the files but it aint there.
I also cant find the dll output file either, this is confusing the hell out
of me. !
"Mark Rae" <ma**@markNOSPA Mrae.comwrote in message
news:eu******** *****@TK2MSFTNG P02.phx.gbl...
"Goofy" <me@mine.comwro te in message
news:OY******** ******@TK2MSFTN GP04.phx.gbl...
>OK, so does it create the designer.cs on the fly when you do a build and then delete it ?
No - it *creates* the designer.cs file when the aspx and aspx.cs files are
created.
The contents of the designer.cs files is *updated* on the fly...
Are you using WAP ( Web Application Projects ) ?
If you're not, you'll never see a *.designer.cs or *.designer.vb file.
The *.designer.cs/vb file is a new file used in Web Application Projects
to contain the code that is generated and maintained by Visual Studio for the page.
You won't find any dll, either, if you don't use WAP,
unless you publish or pre-compile your app.
Again, Fritz Onion's article helps : http://msdn.microsoft.com/msdnmag/is...ExtremeASPNET/
Also, this MSDN article: http://msdn.microsoft.com/library/de.../internals.asp
giives you the info you need to understand ASP.NET internals.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Goofy" <me@mine.comwro te in message news:eG******** ******@TK2MSFTN GP04.phx.gbl...
Mark,
Thanks for the reply. ( Im probably being dumb) but I cant see this file at all. I have looked in
the websites directory where my web site lives on the local machine, I have also looked in the
projects directory, I have checked my folder options to enusre that its not hiding the files but
it aint there.
I also cant find the dll output file either, this is confusing the hell out of me. !
"Mark Rae" <ma**@markNOSPA Mrae.comwrote in message news:eu******** *****@TK2MSFTNG P02.phx.gbl...
>"Goofy" <me@mine.comwro te in message news:OY******** ******@TK2MSFTN GP04.phx.gbl...
>>OK, so does it create the designer.cs on the fly when you do a build and then delete it ?
No - it *creates* the designer.cs file when the aspx and aspx.cs files are created.
The contents of the designer.cs files is *updated* on the fly...
"Goofy" <me@mine.comwro te in message
news:eG******** ******@TK2MSFTN GP04.phx.gbl...
Thanks for the reply. ( Im probably being dumb) but I cant see this file
at all. I have looked in the websites directory where my web site lives on
the local machine, I have also looked in the projects directory, I have
checked my folder options to enusre that its not hiding the files but it
aint there.
Apologies - I assumed you were using Web Application Projects, which creates
the designer files - you clearly aren't, so you won't see them...
I also cant find the dll output file either, this is confusing the hell
out of me. !
Again, you won't see one if you're not using WAP until you either publish or
precompile your site...
No worries. Im fairly reasonable with VS2003, but I've got a copy of
'Visual Web Developer 2005 Express Edition and Im trying to make sense of
it.
"Mark Rae" <ma**@markNOSPA Mrae.comwrote in message
news:Ov******** ******@TK2MSFTN GP06.phx.gbl...
"Goofy" <me@mine.comwro te in message
news:eG******** ******@TK2MSFTN GP04.phx.gbl...
>Thanks for the reply. ( Im probably being dumb) but I cant see this file at all. I have looked in the websites directory where my web site lives on the local machine, I have also looked in the projects directory, I have checked my folder options to enusre that its not hiding the files but it aint there.
Apologies - I assumed you were using Web Application Projects, which
creates the designer files - you clearly aren't, so you won't see them...
>I also cant find the dll output file either, this is confusing the hell out of me. !
Again, you won't see one if you're not using WAP until you either publish
or precompile your site...
Is the precompiler available in the express edition >?
"Juan T. Llibre" <no***********@ nowhere.comwrot e in message
news:uy******** ******@TK2MSFTN GP06.phx.gbl...
Server-side controls no longer need to be explicitly declared in your
codebehind class, but you still have complete access to them
programmaticall y.
Fritz Onion's article in MSDN mag explains this: http://msdn.microsoft.com/msdnmag/is...ExtremeASPNET/
See Figure 2 and Figure 3 for examples.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Goofy" <me@mine.comwro te in message
news:eR******** ******@TK2MSFTN GP06.phx.gbl...
>>I see that the code behind is now a partial class. So where is the code associated with the server controls declaration etc ?
Is this generated on the fly now, or am I missing something ?
-- Goofy This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jim Hubbard |
last post by:
It seems that Microsoft not only does not need the classic Visual Basic
developer army (the largest army of developers the world has ever seen), but
now they don't need ANY Windows developer at a small or mid-sized business.
http://groups-beta.google.com/group/microsoft.public.msdn.general/browse_thread/thread/9d7e8f9a00c1c7da/459ca99eb0e7c328?q=%22Proposed+MSDN+subscription+changes%22&rnum=1#459ca99eb0e7c328
Damn! To be that...
|
by: Chris |
last post by:
If i've installed SQL Server 2005 Developer, when I come to install VS 2005
is there any need to install SQL Server Express?
I would have thought the install would have detected SQL Server Developer
was installed and not select Express by default.
Do any examples projects for example rely on SQL Express being present?
Thanks,
Chris
|
by: Mike Owen |
last post by:
Hi,
I have just used the import Wizard to import a VS 2003 app to VS 2005.
I have a lot of work to do to enable it to compile successfully with all the
errors and warnings it gave me, but as a starting point the compiler can no
longer find the function as at the bottom of this posting, that was in the
Global.asax.vb file.
All the function does is give an easy / quick way of getting the application
|
by: Chris |
last post by:
Hi,
When creating an ASP.NET project in VisualStudio 2005 : where have
web.config, global.asax, ... gone ?
as well the declaration of the datamembers in the WebForm1-class ?
where is the compiled version ? not in bin-subdir anymore apparently !!!!
thanks
|
by: Stephan Brunner |
last post by:
Hi
VS 2003 used to have an (Overrides) entry in the left dropdown of the code
editor.
Where has this handy feature gone in VS 2005?
| |
by: |
last post by:
I installed visual developer express 2005, and the Design view does
not start, only the Html view works?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |