473,787 Members | 2,931 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question on Using Partial Types with ASP.NET via J.I.T.

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 17 '05 #1
38 2107
Cor
Hi Nospam,

I am curious, what is the reason that you post this questions to a VB.net
language related newsgroup?

Cor

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

Nov 17 '05 #2
Are you working with ASP.NET 2.0? I would assume so, since you are talking
partial classes. If so, you are likely working with the PDC alpha, which is
not feature complete.

Just to run with it, one idea to try would be to place the second partial
class file into the SRC directory and take advantage of the code compiling
ability. Not sure how it would work on partial classes, however, so it is
simply an experiment.

If you are in ASP.NET 1.x, please add more detail, as I am lost.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** *************** **********
Think Outside the Box!
*************** *************** *************** *************** **********
"nospam" <n@ntspam.com > wrote in message
news:OB******** ******@TK2MSFTN GP09.phx.gbl...
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 17 '05 #3
nospam,
Have you considered asking in the Whidbey newsgroups?
http://communities.microsoft.com/new...idbey&slcid=us

Did the ASP.NET 2.0 article I refer you too the other day help?

http://msdn.microsoft.com/asp.net/wh...ompilation.asp

Or one of the articles on the following page?
http://msdn.microsoft.com/asp.net/whidbey/
MY QUESTION to the Microsoft ASP.NET and C# teams. Why are you bothering the VB.NET users then?

Hope this helps
Jay

"nospam" <n@ntspam.com > wrote in message
news:OB******** ******@TK2MSFTN GP09.phx.gbl... 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 17 '05 #4
VB is going to have Partial Types right?

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

happy?


"Cor" <no*@non.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi Nospam,

I am curious, what is the reason that you post this questions to a VB.net
language related newsgroup?

Cor

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


Nov 17 '05 #5
Yes, I looked at every link you posted...still doesn't answer the question.
Let me ask you, do you understand what my question is exactly referring to?

Some people here are just shooting into the wind with their answers.
"Jay B. Harlow [MVP - Outlook]" <Ja********@ema il.msn.com> wrote in message
news:Oc******** ******@TK2MSFTN GP12.phx.gbl...
nospam,
Have you considered asking in the Whidbey newsgroups?
http://communities.microsoft.com/new...idbey&slcid=us
Did the ASP.NET 2.0 article I refer you too the other day help?

http://msdn.microsoft.com/asp.net/wh...ompilation.asp
Or one of the articles on the following page?
http://msdn.microsoft.com/asp.net/whidbey/
MY QUESTION to the Microsoft ASP.NET and C# teams.

Why are you bothering the VB.NET users then?

Hope this helps
Jay

"nospam" <n@ntspam.com > wrote in message
news:OB******** ******@TK2MSFTN GP09.phx.gbl...
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 17 '05 #6
I know the PDC alpha is not feature complete.

I just want to know how Microsoft is "attempting " to implement this partial
type feature with ASP.NET pages using JIT compiling.

Do you understand the original question? YES or NO

The more successful, as well as larger, 1.1 .NET web sites don't use
CodeBehind= attribute, they use src= attribute as it allows them to have
fully separated pages that can be easily FTP's to the server and changes can
be made rapidly without affecting the entire web site. These commercial
sites also tend to use Text Editors, HomeSite, Dreamweaver, icsharp, Web
Matrix, etc other than VS.NET as their sites need to be USABLE by millions
of people, not to mention reliable.

As you already know in ASP.NET 2.0 Whidbey, there are several compiling
options. One of which is a separate dll for each .aspx page which wasn't in
the VS.NET 2003 versions.

Those who knew better realized the CodeBehind= attribute and the single dll
file was a very very BAD architectural pattern for web development and
maintenance, not to mention reliability.
But enough of that, JIT for a Partial Types on a .aspx page will allow
people to build MORE RICH .aspx pages by making it more manageable when some
of the code is split inbetween 2 or more code behind files.


"Cowboy (Gregory A. Beamer)" <No************ @comcast.netNoS pamM> wrote in
message news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Are you working with ASP.NET 2.0? I would assume so, since you are talking
partial classes. If so, you are likely working with the PDC alpha, which is not feature complete.

Just to run with it, one idea to try would be to place the second partial
class file into the SRC directory and take advantage of the code compiling
ability. Not sure how it would work on partial classes, however, so it is
simply an experiment.

If you are in ASP.NET 1.x, please add more detail, as I am lost.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** *************** **********
Think Outside the Box!
*************** *************** *************** *************** **********
"nospam" <n@ntspam.com > wrote in message
news:OB******** ******@TK2MSFTN GP09.phx.gbl...
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 17 '05 #7
Cor
This is your message:
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.


You know 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 the first time with Internet Explorer?

You are not using pre-compile for VS.NET to make these file compile
together.
You would use J.I.T. compiling like you do now with src= attribute in a
ASP.NET page.

You would do that, so what is your problem if you knows everything?

Happy

Cor
Nov 17 '05 #8
I don't know how to read the Microsoft C# and ASP.NET teams' mind...that's
why I decided to ASK them.......
"Cor" <no*@non.com> wrote in message
news:u0******** *****@TK2MSFTNG P11.phx.gbl...
This is your message:
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= attributein a ASP.NET page.


You know 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 the first time with Internet Explorer?

You are not using pre-compile for VS.NET to make these file compile
together.
You would use J.I.T. compiling like you do now with src= attribute in a
ASP.NET page.

You would do that, so what is your problem if you knows everything?

Happy

Cor

Nov 17 '05 #9
Nospam,
I explained the way I understood ASP.NET 1.1 to work the other day. Which I
get the impression does not coincide with the way you understand it to work.
:-(
IN OTHER WORDS, I am NOT using pre-compile for VS.NET to make these file compile together. Some people here are just shooting into the wind with their answers. I hope you realize the assembly I was referring to IS NOT the assembly
created by VS.NET!!!

It is the assembly created by ASP.NET after it converts your ASPX page to C#
or VB.NET, the first time anyone visits the page. This assembly is then JIT
as the executable code is needed.

I hope you realize that .NET is not able to execute source code (ASPX, C# or
VB.NET), that the source code needs to be converted (compiled) into an
assembly. That ASP.NET will take your ASPX page convert it into a C# or
VB.NET source file, which it then compiles with other C# or VB.NET source
files to create an assembly. That ASP.NET will then call methods in this
assembly (which causes the assembly to be JIT) which causes your HTML to
appear in the browser. I don't have the specific reference handy, I
understand that each aspx page generates its own assembly.

VS.NET simply allows you to compile all its Code Behind pages into a
different assembly ahead of time.

You want to know in Whidbey when the assembly is created by ASP.NET, how
does it know where to find the third file. I'm curious if its even
supported, or is that what you are attempting to find out, is it even
supported? One of the articles I referred you to mentions a /Code folder (in
addition to the /Bin folder used by VS.NET) that you can place source files
to utility classes in, however I got the impression from the article this is
NOT for your 'third' file, I may however be wrong and /Code is where your
"third" file belongs...

Unfortunately all I know about ASP.NET Whidbey is the articles I pointed you
to, the above is based on ASP.NET 1.1.

Hope this helps
Jay

"nospam" <n@ntspam.com > wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. Yes, I looked at every link you posted...still doesn't answer the question.

Let me ask you, do you understand what my question is exactly referring to?
Some people here are just shooting into the wind with their answers.
"Jay B. Harlow [MVP - Outlook]" <Ja********@ema il.msn.com> wrote in message news:Oc******** ******@TK2MSFTN GP12.phx.gbl...
nospam,
Have you considered asking in the Whidbey newsgroups?

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

Did the ASP.NET 2.0 article I refer you too the other day help?

http://msdn.microsoft.com/asp.net/wh...ompilation.asp

Or one of the articles on the following page?
http://msdn.microsoft.com/asp.net/whidbey/
MY QUESTION to the Microsoft ASP.NET and C# teams.

Why are you bothering the VB.NET users then?

Hope this helps
Jay

"nospam" <n@ntspam.com > wrote in message
news:OB******** ******@TK2MSFTN GP09.phx.gbl...
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 17 '05 #10

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

Similar topics

43
2678
by: nospam | last post by:
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.
7
2665
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
0
9498
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10172
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9964
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
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 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...
0
6749
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();...
1
4069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.