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
Untitled.aspx.1.cs <- part 1 that works with Untitled.aspx
Untitled.aspx.2.cs <- part 2 that works with Untitled.aspx
So when I hit the Untitled.aspx with my browser, it automatically JITs both
the split code behind pages together....this seems like something very
doable in ASP.NET 2.0..... 6 1700
Yes, that is what partial types means. You will be able to split up the
definition of your class "Untitled" between multiple .cs files.
That said, there is no guarantee that the VS IDE will support multiple
code-behind files for ASPX pages. Just because the language and framework
support it, doesn't mean the IDE will (think in-line server-sie code,
multi-file assemblies, etc).
"nospam" <n@ntspam.com> wrote in message
news:el**************@TK2MSFTNGP11.phx.gbl... 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 Untitled.aspx.1.cs <- part 1 that works with Untitled.aspx Untitled.aspx.2.cs <- part 2 that works with Untitled.aspx So when I hit the Untitled.aspx with my browser, it automatically JITs
both the split code behind pages together....this seems like something very doable in ASP.NET 2.0.....
Watch the nightmare of missmash of wizard code being, not that its bad
enough already with it stomping all over #regions, now its gona spam .cs
files.
"Joshua Flanagan" <jo**@msnews.com> wrote in message
news:#O**************@TK2MSFTNGP09.phx.gbl... Yes, that is what partial types means. You will be able to split up the definition of your class "Untitled" between multiple .cs files.
That said, there is no guarantee that the VS IDE will support multiple code-behind files for ASPX pages. Just because the language and framework support it, doesn't mean the IDE will (think in-line server-sie code, multi-file assemblies, etc).
"nospam" <n@ntspam.com> wrote in message news:el**************@TK2MSFTNGP11.phx.gbl... 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 Untitled.aspx.1.cs <- part 1 that works with Untitled.aspx Untitled.aspx.2.cs <- part 2 that works with Untitled.aspx So when I hit the Untitled.aspx with my browser, it automatically JITs both the split code behind pages together....this seems like something very doable in ASP.NET 2.0.....
So, are you saying that the .aspx file will have a place for you to tell it
to
have multiple src= files?
right now all you can put is src="Untititled.aspx.cs"
Where would I put the other file name ?
"Joshua Flanagan" <jo**@msnews.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Yes, that is what partial types means. You will be able to split up the definition of your class "Untitled" between multiple .cs files.
That said, there is no guarantee that the VS IDE will support multiple code-behind files for ASPX pages. Just because the language and framework support it, doesn't mean the IDE will (think in-line server-sie code, multi-file assemblies, etc).
"nospam" <n@ntspam.com> wrote in message news:el**************@TK2MSFTNGP11.phx.gbl... 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 Untitled.aspx.1.cs <- part 1 that works with Untitled.aspx Untitled.aspx.2.cs <- part 2 that works with Untitled.aspx So when I hit the Untitled.aspx with my browser, it automatically JITs both the split code behind pages together....this seems like something very doable in ASP.NET 2.0.....
Ok, it has been confirmed that the IDE will use partial types, in a major
way. Partial types will be integral to the replacement of the current
code-behind method.
Paul Wilson explains the new "code beside" model in this article, about the
next version of VS.NET: http://authors.aspalliance.com/PaulW...rticles/?id=19
"nospam" <n@ntspam.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... So, are you saying that the .aspx file will have a place for you to tell
it to have multiple src= files?
right now all you can put is src="Untititled.aspx.cs"
Where would I put the other file name ? "Joshua Flanagan" <jo**@msnews.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl... Yes, that is what partial types means. You will be able to split up the definition of your class "Untitled" between multiple .cs files.
That said, there is no guarantee that the VS IDE will support multiple code-behind files for ASPX pages. Just because the language and
framework support it, doesn't mean the IDE will (think in-line server-sie code, multi-file assemblies, etc).
"nospam" <n@ntspam.com> wrote in message news:el**************@TK2MSFTNGP11.phx.gbl... 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 Untitled.aspx.1.cs <- part 1 that works with Untitled.aspx Untitled.aspx.2.cs <- part 2 that works with Untitled.aspx So when I hit the Untitled.aspx with my browser, it automatically JITs
both the split code behind pages together....this seems like something very doable in ASP.NET 2.0.....
Ok, thanks.
However, how does the the MyFile.aspx.cs file know where the other part of
the partial file is in the first place.
I can see from the codebesides attrtibute "compileswith" shows the first
partial file, but what about the second and third, etc. partial files that
go with the first file?
"Joshua Flanagan" <jo**@msnews.com> wrote in message
news:eA**************@TK2MSFTNGP10.phx.gbl... Ok, it has been confirmed that the IDE will use partial types, in a major way. Partial types will be integral to the replacement of the current code-behind method.
Paul Wilson explains the new "code beside" model in this article, about
the next version of VS.NET: http://authors.aspalliance.com/PaulW...rticles/?id=19
"nospam" <n@ntspam.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... So, are you saying that the .aspx file will have a place for you to tell it to have multiple src= files?
right now all you can put is src="Untititled.aspx.cs"
Where would I put the other file name ? "Joshua Flanagan" <jo**@msnews.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl... Yes, that is what partial types means. You will be able to split up
the definition of your class "Untitled" between multiple .cs files.
That said, there is no guarantee that the VS IDE will support multiple code-behind files for ASPX pages. Just because the language and framework support it, doesn't mean the IDE will (think in-line server-sie code, multi-file assemblies, etc).
"nospam" <n@ntspam.com> wrote in message news:el**************@TK2MSFTNGP11.phx.gbl... > 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 > Untitled.aspx.1.cs <- part 1 that works with Untitled.aspx > Untitled.aspx.2.cs <- part 2 that works with Untitled.aspx > > > > So when I hit the Untitled.aspx with my browser, it automatically
JITs both > the split code behind pages together....this seems like something
very > doable in ASP.NET 2.0..... > > >
It does not have to know
The compiler knows.
I would say that the compiler first creates a list of all types (which it
needs anyway), and at this point it can link them together.
Dont forget: partial types are a COMPILER feature. They dont exist in the
assembly.
Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)
"nospam" <n@ntspam.com> wrote in message
news:eW**************@tk2msftngp13.phx.gbl... Ok, thanks.
However, how does the the MyFile.aspx.cs file know where the other part of the partial file is in the first place.
I can see from the codebesides attrtibute "compileswith" shows the first partial file, but what about the second and third, etc. partial files that go with the first file?
"Joshua Flanagan" <jo**@msnews.com> wrote in message news:eA**************@TK2MSFTNGP10.phx.gbl... Ok, it has been confirmed that the IDE will use partial types, in a
major way. Partial types will be integral to the replacement of the current code-behind method.
Paul Wilson explains the new "code beside" model in this article, about the next version of VS.NET: http://authors.aspalliance.com/PaulW...rticles/?id=19
"nospam" <n@ntspam.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... So, are you saying that the .aspx file will have a place for you to
tell it to have multiple src= files?
right now all you can put is src="Untititled.aspx.cs"
Where would I put the other file name ? "Joshua Flanagan" <jo**@msnews.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl... > Yes, that is what partial types means. You will be able to split up the > definition of your class "Untitled" between multiple .cs files. > > That said, there is no guarantee that the VS IDE will support
multiple > code-behind files for ASPX pages. Just because the language and framework > support it, doesn't mean the IDE will (think in-line server-sie
code, > multi-file assemblies, etc). > > "nospam" <n@ntspam.com> wrote in message > news:el**************@TK2MSFTNGP11.phx.gbl... > > 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 > > Untitled.aspx.1.cs <- part 1 that works with Untitled.aspx > > Untitled.aspx.2.cs <- part 2 that works with Untitled.aspx > > > > > > > > So when I hit the Untitled.aspx with my browser, it automatically JITs > both > > the split code behind pages together....this seems like something very > > doable in ASP.NET 2.0..... > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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.
|
by: ptass |
last post by:
Hi
In asp.net 2.0 an aspx files .cs file is a partial class and all works fine,
however,
I thought I’d be able to create another class file, call it a partial class
and have
that compile and...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
| |