473,581 Members | 2,785 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET 2.0 question on Partial Types with J.I.T.

Ok, 3rd or is it the 4th time I have asked this question on Partial Types,
so, since it seems to me that Partial Types is still in the design or
development stages at Microsoft, I am going to ask it differently.
FOUR QUESTIONS:
The background:

I got three (3) files

(1) Untitled.aspx
(2) Untitled.aspx.1 .cs
(3) Untitled.aspx.2 .cs

QUESTION #1:
How would you design Partial Types for ASP.NET 2.0 web pages and what SYNTAX
should go in the Page Directive of Untitled.aspx so that is can easily by
J.I.T.ed when you first bring the page up in IE?

QUESTION #2
Would you name every file of the partial type in this page directive?

QUESTION #3
Would you name file #2 and #3 above differently?

QUESTION #4
And what difficulties could one expect when starting at the very bottom in
designing and architecting partial types?



REPOST BELOW
---------------------------------------------------------
I got three (3) files

(1) Untitled.aspx
(2) Untitled.aspx.1 .cs
(3) Untitled.aspx.2 .cs

These three files must be used together to make file #1, Untitled.aspx, page
work via
J.I.T. when the User first hits Internet Explorer 6.0 on your browser.
MY QUESTION to the Microsoft ASP.NET and C# teams.

I know how file #2,Untitled.asp x.1.cs, is connected and can be found by file
#1, the Untitled.aspx page.
How does file #3, Untitled.aspx.2 .cs, get found by the file #1 when I the
first time with Internet Explorer?

IN OTHER WORDS, I am NOT using pre-compile for VS.NET to make these file
compile together.
I would be just using J.I.T. compiling like you do now with src= attribute
in a ASP.NET page.


Nov 15 '05 #1
7 1439
Hmm...first of all, at least with this knowledge I have, even that partial
types are supported now, you can have only one code-beside (partial type)
file associated with a page in ASP.NET v2.0 . From previous description I
assumed you try to have two code-beside files for the Untitled.aspx.

See this thread at ASP.NET Forums:
http://www.asp.net/Forums/ShowPost.a...&PostID=392428

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"nospam" <n@ntspam.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Ok, 3rd or is it the 4th time I have asked this question on Partial Types,
so, since it seems to me that Partial Types is still in the design or
development stages at Microsoft, I am going to ask it differently.
FOUR QUESTIONS:
The background:

I got three (3) files

(1) Untitled.aspx
(2) Untitled.aspx.1 .cs
(3) Untitled.aspx.2 .cs

QUESTION #1:
How would you design Partial Types for ASP.NET 2.0 web pages and what SYNTAX should go in the Page Directive of Untitled.aspx so that is can easily by
J.I.T.ed when you first bring the page up in IE?

QUESTION #2
Would you name every file of the partial type in this page directive?

QUESTION #3
Would you name file #2 and #3 above differently?

QUESTION #4
And what difficulties could one expect when starting at the very bottom in
designing and architecting partial types?



REPOST BELOW
---------------------------------------------------------
I got three (3) files

(1) Untitled.aspx
(2) Untitled.aspx.1 .cs
(3) Untitled.aspx.2 .cs

These three files must be used together to make file #1, Untitled.aspx, page work via
J.I.T. when the User first hits Internet Explorer 6.0 on your browser.
MY QUESTION to the Microsoft ASP.NET and C# teams.

I know how file #2,Untitled.asp x.1.cs, is connected and can be found by file #1, the Untitled.aspx page.
How does file #3, Untitled.aspx.2 .cs, get found by the file #1 when I the
first time with Internet Explorer?

IN OTHER WORDS, I am NOT using pre-compile for VS.NET to make these file
compile together.
I would be just using J.I.T. compiling like you do now with src= attribute
in a ASP.NET page.

Nov 15 '05 #2
I see confusion in your question. Partial types do not emphasize aspx files,
it's just a consequence. The real meat here is that the defining methods are
allowed to exist elsewhere instead of with the initial type definition -
something I've complained about for a while now. The effect is that code
becomes more readable and easier to deal with.
How would you design Partial Types for ASP.NET 2.0 web pages and what SYNTAX should go in the Page Directive of Untitled.aspx so that is can easily by
J.I.T.ed when you first bring the page up in IE?
There's no design issue involved here. At run-time when your type is
instantiated, the CLR will collect the individual pieces and put them
together. Jitting will be no more or less difficult because all these
entities already belong to the same namespace anyway.

I don't see a design issue if your architecture focusses on objects and how
they relate to each other (OOP). A type would not change, it's
implementation would not change. Some of it's methods will not be in the
same source file and others will, but how would that affect the
architecture? Design should not focus on where definitions are at - this is
functional decomposition of sorts. It's not OOP. OOP focuses on how these
objects relate to their environment. Remember, architecture is a very high
level view of how the system is put together. You are unnecessarily mixing
this upper level view with a very low level source code detail.

--
Regards,
Alvin Bruney
Got Tidbits? Get it here
www.networkip.net/tidbits
"nospam" <n@ntspam.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. Ok, 3rd or is it the 4th time I have asked this question on Partial Types,
so, since it seems to me that Partial Types is still in the design or
development stages at Microsoft, I am going to ask it differently.
FOUR QUESTIONS:
The background:

I got three (3) files

(1) Untitled.aspx
(2) Untitled.aspx.1 .cs
(3) Untitled.aspx.2 .cs

QUESTION #1:
How would you design Partial Types for ASP.NET 2.0 web pages and what SYNTAX should go in the Page Directive of Untitled.aspx so that is can easily by
J.I.T.ed when you first bring the page up in IE?

QUESTION #2
Would you name every file of the partial type in this page directive?

QUESTION #3
Would you name file #2 and #3 above differently?

QUESTION #4
And what difficulties could one expect when starting at the very bottom in
designing and architecting partial types?



REPOST BELOW
---------------------------------------------------------
I got three (3) files

(1) Untitled.aspx
(2) Untitled.aspx.1 .cs
(3) Untitled.aspx.2 .cs

These three files must be used together to make file #1, Untitled.aspx, page work via
J.I.T. when the User first hits Internet Explorer 6.0 on your browser.
MY QUESTION to the Microsoft ASP.NET and C# teams.

I know how file #2,Untitled.asp x.1.cs, is connected and can be found by file #1, the Untitled.aspx page.
How does file #3, Untitled.aspx.2 .cs, get found by the file #1 when I the
first time with Internet Explorer?

IN OTHER WORDS, I am NOT using pre-compile for VS.NET to make these file
compile together.
I would be just using J.I.T. compiling like you do now with src= attribute
in a ASP.NET page.

Nov 15 '05 #3
Careful!

OOP is a four-letter word, as far as nospam is concerned. His caps-lock key
will probably now sporadically engage while he explains how OOP and n-tier
development have failed.

Bob Lehmann

"Alvin Bruney" <va******@hotsp ammailme.com> wrote in message
news:ug******** ******@TK2MSFTN GP11.phx.gbl...
I see confusion in your question. Partial types do not emphasize aspx files, it's just a consequence. The real meat here is that the defining methods are allowed to exist elsewhere instead of with the initial type definition -
something I've complained about for a while now. The effect is that code
becomes more readable and easier to deal with.
How would you design Partial Types for ASP.NET 2.0 web pages and what SYNTAX
should go in the Page Directive of Untitled.aspx so that is can easily by J.I.T.ed when you first bring the page up in IE?


There's no design issue involved here. At run-time when your type is
instantiated, the CLR will collect the individual pieces and put them
together. Jitting will be no more or less difficult because all these
entities already belong to the same namespace anyway.

I don't see a design issue if your architecture focusses on objects and

how they relate to each other (OOP). A type would not change, it's
implementation would not change. Some of it's methods will not be in the
same source file and others will, but how would that affect the
architecture? Design should not focus on where definitions are at - this is functional decomposition of sorts. It's not OOP. OOP focuses on how these
objects relate to their environment. Remember, architecture is a very high
level view of how the system is put together. You are unnecessarily mixing
this upper level view with a very low level source code detail.

--
Regards,
Alvin Bruney
Got Tidbits? Get it here
www.networkip.net/tidbits
"nospam" <n@ntspam.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Ok, 3rd or is it the 4th time I have asked this question on Partial Types, so, since it seems to me that Partial Types is still in the design or
development stages at Microsoft, I am going to ask it differently.
FOUR QUESTIONS:
The background:

I got three (3) files

(1) Untitled.aspx
(2) Untitled.aspx.1 .cs
(3) Untitled.aspx.2 .cs

QUESTION #1:
How would you design Partial Types for ASP.NET 2.0 web pages and what

SYNTAX
should go in the Page Directive of Untitled.aspx so that is can easily by J.I.T.ed when you first bring the page up in IE?

QUESTION #2
Would you name every file of the partial type in this page directive?

QUESTION #3
Would you name file #2 and #3 above differently?

QUESTION #4
And what difficulties could one expect when starting at the very bottom in designing and architecting partial types?



REPOST BELOW
---------------------------------------------------------
I got three (3) files

(1) Untitled.aspx
(2) Untitled.aspx.1 .cs
(3) Untitled.aspx.2 .cs

These three files must be used together to make file #1, Untitled.aspx,

page
work via
J.I.T. when the User first hits Internet Explorer 6.0 on your browser.
MY QUESTION to the Microsoft ASP.NET and C# teams.

I know how file #2,Untitled.asp x.1.cs, is connected and can be found by

file
#1, the Untitled.aspx page.
How does file #3, Untitled.aspx.2 .cs, get found by the file #1 when I the first time with Internet Explorer?

IN OTHER WORDS, I am NOT using pre-compile for VS.NET to make these file
compile together.
I would be just using J.I.T. compiling like you do now with src= attribute in a ASP.NET page.


Nov 15 '05 #4
nospam,
Based on a similar question from "curious" in the Whidbey newsgroups

http://communities.microsoft.com/new...idbey&slcid=us

I understand that you cannot use 3 files for partial types in ASP.NET, only
two are supported.

Only reason I remember it was "curious" is the question sounded so very
close to your question, I was thinking "curious" was you, and you were
asking over there, as you are not getting the answer you want over here.

Hope this helps
Jay

"nospam" <n@ntspam.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Ok, 3rd or is it the 4th time I have asked this question on Partial Types,
so, since it seems to me that Partial Types is still in the design or
development stages at Microsoft, I am going to ask it differently.
FOUR QUESTIONS:
The background:

I got three (3) files

(1) Untitled.aspx
(2) Untitled.aspx.1 .cs
(3) Untitled.aspx.2 .cs

QUESTION #1:
How would you design Partial Types for ASP.NET 2.0 web pages and what SYNTAX should go in the Page Directive of Untitled.aspx so that is can easily by
J.I.T.ed when you first bring the page up in IE?

QUESTION #2
Would you name every file of the partial type in this page directive?

QUESTION #3
Would you name file #2 and #3 above differently?

QUESTION #4
And what difficulties could one expect when starting at the very bottom in
designing and architecting partial types?

Nov 15 '05 #5
I was thinking the same thing, Jay...

"Curious" or "nospam"...
Partial types are simply a way to define a class spread out over a couple of
files. One file is analagous to a C source file while the other could be
considered like a C header file that is "#include"-ed from the C source
file. During compilation, the two files merge and you get one type.
--
Eric Newton
C#/ASP Application Developer
http://ensoft-software.com/
er**@cc.ensoft-software.com [remove the first "CC."]
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
nospam,
Based on a similar question from "curious" in the Whidbey newsgroups

http://communities.microsoft.com/new...idbey&slcid=us
I understand that you cannot use 3 files for partial types in ASP.NET, only two are supported.

Only reason I remember it was "curious" is the question sounded so very
close to your question, I was thinking "curious" was you, and you were
asking over there, as you are not getting the answer you want over here.

Hope this helps
Jay

"nospam" <n@ntspam.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Ok, 3rd or is it the 4th time I have asked this question on Partial Types, so, since it seems to me that Partial Types is still in the design or
development stages at Microsoft, I am going to ask it differently.
FOUR QUESTIONS:
The background:

I got three (3) files

(1) Untitled.aspx
(2) Untitled.aspx.1 .cs
(3) Untitled.aspx.2 .cs

QUESTION #1:
How would you design Partial Types for ASP.NET 2.0 web pages and what

SYNTAX
should go in the Page Directive of Untitled.aspx so that is can easily by J.I.T.ed when you first bring the page up in IE?

QUESTION #2
Would you name every file of the partial type in this page directive?

QUESTION #3
Would you name file #2 and #3 above differently?

QUESTION #4
And what difficulties could one expect when starting at the very bottom in designing and architecting partial types?


Nov 15 '05 #6
There is no one on those newsgroups anyway....
"Eric Newton" <er**@cc.enso ft-software.com> wrote in message
news:eh******** ******@TK2MSFTN GP10.phx.gbl...
I was thinking the same thing, Jay...

"Curious" or "nospam"...
Partial types are simply a way to define a class spread out over a couple of files. One file is analagous to a C source file while the other could be
considered like a C header file that is "#include"-ed from the C source
file. During compilation, the two files merge and you get one type.
--
Eric Newton
C#/ASP Application Developer
http://ensoft-software.com/
er**@cc.ensoft-software.com [remove the first "CC."]
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
nospam,
Based on a similar question from "curious" in the Whidbey newsgroups

http://communities.microsoft.com/new...idbey&slcid=us

I understand that you cannot use 3 files for partial types in ASP.NET,

only
two are supported.

Only reason I remember it was "curious" is the question sounded so very
close to your question, I was thinking "curious" was you, and you were
asking over there, as you are not getting the answer you want over here.

Hope this helps
Jay

"nospam" <n@ntspam.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Ok, 3rd or is it the 4th time I have asked this question on Partial Types, so, since it seems to me that Partial Types is still in the design or
development stages at Microsoft, I am going to ask it differently.
FOUR QUESTIONS:
The background:

I got three (3) files

(1) Untitled.aspx
(2) Untitled.aspx.1 .cs
(3) Untitled.aspx.2 .cs

QUESTION #1:
How would you design Partial Types for ASP.NET 2.0 web pages and what

SYNTAX
should go in the Page Directive of Untitled.aspx so that is can easily by J.I.T.ed when you first bring the page up in IE?

QUESTION #2
Would you name every file of the partial type in this page directive?

QUESTION #3
Would you name file #2 and #3 above differently?

QUESTION #4
And what difficulties could one expect when starting at the very
bottom in designing and architecting partial types?



Nov 15 '05 #7
*Hypothetically *, if you COULD do 2 pages, how would you answer the
questions below...

QUESTION #1:
How would you design Partial Types for ASP.NET 2.0 web pages and what SYNTAX
should go in the Page Directive of Untitled.aspx so that is can easily by
J.I.T.ed when you first bring the page up in IE?

QUESTION #2
Would you name every file of the partial type in this page directive?

QUESTION #3
Would you name file #2 and #3 above differently?

QUESTION #4
And what difficulties could one expect when starting at the very bottom in
designing and architecting partial types?


"Teemu Keiski" <jo****@aspalli ance.com> wrote in message
news:O%******** ********@TK2MSF TNGP11.phx.gbl. ..
Hmm...first of all, at least with this knowledge I have, even that partial
types are supported now, you can have only one code-beside (partial type)
file associated with a page in ASP.NET v2.0 . From previous description I
assumed you try to have two code-beside files for the Untitled.aspx.

See this thread at ASP.NET Forums:
http://www.asp.net/Forums/ShowPost.a...&PostID=392428

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"nospam" <n@ntspam.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Ok, 3rd or is it the 4th time I have asked this question on Partial Types, so, since it seems to me that Partial Types is still in the design or
development stages at Microsoft, I am going to ask it differently.
FOUR QUESTIONS:
The background:

I got three (3) files

(1) Untitled.aspx
(2) Untitled.aspx.1 .cs
(3) Untitled.aspx.2 .cs

QUESTION #1:
How would you design Partial Types for ASP.NET 2.0 web pages and what

SYNTAX
should go in the Page Directive of Untitled.aspx so that is can easily by J.I.T.ed when you first bring the page up in IE?

QUESTION #2
Would you name every file of the partial type in this page directive?

QUESTION #3
Would you name file #2 and #3 above differently?

QUESTION #4
And what difficulties could one expect when starting at the very bottom in designing and architecting partial types?



REPOST BELOW
---------------------------------------------------------
I got three (3) files

(1) Untitled.aspx
(2) Untitled.aspx.1 .cs
(3) Untitled.aspx.2 .cs

These three files must be used together to make file #1, Untitled.aspx,

page
work via
J.I.T. when the User first hits Internet Explorer 6.0 on your browser.
MY QUESTION to the Microsoft ASP.NET and C# teams.

I know how file #2,Untitled.asp x.1.cs, is connected and can be found by

file
#1, the Untitled.aspx page.
How does file #3, Untitled.aspx.2 .cs, get found by the file #1 when I the first time with Internet Explorer?

IN OTHER WORDS, I am NOT using pre-compile for VS.NET to make these file
compile together.
I would be just using J.I.T. compiling like you do now with src= attribute in a ASP.NET page.


Nov 15 '05 #8

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

Similar topics

6
1713
by: nospam | last post by:
I just read on Slash Dot about partial types. Now, is it possible to have a code behind split over two pages but still referencing the same .aspx file??? If so, that would be really nice as every now and then there is some code behind code that just gets to be a lot for a single .aspx page Untitled.aspx
7
2648
by: nospam | last post by:
Ok, 3rd or is it the 4th time I have asked this question on Partial Types, so, since it seems to me that Partial Types is still in the design or development stages at Microsoft, I am going to ask it differently. FOUR QUESTIONS: The background: I got three (3) files
9
2508
by: Gomaw Beoyr | last post by:
Two question about the "partial classes" (in the next wersion of ..NET). Question 1 ========== Will partial classes (in the next version of C#) have to be declared "partial" in ALL places. I.e. do we have to need to write:
16
2635
by: pawel.pabich | last post by:
Hajo, I would like to have 2 my own partial classes. For example: Default.aspx.cs Default2.aspx.cs and they both will relate to Default.aspx page.
0
7876
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, 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...
0
7804
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8310
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7910
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...
0
8180
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 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...
0
6563
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3832
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1409
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1144
bsmnconsultancy
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...

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.