how do you know if page is asp or asp dot net

Astaroth

Free Member
Aug 24, 2005
3,985
278
London
To know for certain you need to look at the source files.

File extenstion is a reasonable clue but these can be remapped.

You can also look at the HTML code it is outputing and look for a few of the hidden fields that .Net produces as standard but again this doesn't give certainty as these can be manipulated.
 
Upvote 0

Astaroth

Free Member
Aug 24, 2005
3,985
278
London
No, I am not saying they are "manipulated out of view" but frameworks, like coders themselves, can change how .Net functions to either remove their need full stop, store the data "elsewhere" (eg database or cookies) rather than in the HTML, move their location within the page etc
 
Upvote 0
No, I am not saying they are "manipulated out of view" but frameworks, like coders themselves, can change how .Net functions to either remove their need full stop, store the data "elsewhere" (eg database or cookies) rather than in the HTML, move their location within the page etc

So my initial point was correct - My response to your quote was correct because those fields are not produced "as standard" in MVC and therefore do not need to be "manipulated".

One of the main advantages of MVC is that it does not require all the unnecessary mark up that is inserted into 'classic' .net pages.

An MVC page [markup] may therefore give you no indication as to the origin of the platform behind it.

It's not a case that MVC has manipulated away the 'unnecessary' fields - they never existed in the first place.

Regards

Dotty
 
Upvote 0

Astaroth

Free Member
Aug 24, 2005
3,985
278
London
An MVC page [markup] may therefore give you no indication as to the origin of the platform behind it.

As may "classic" .Net but in both cases it is very rare to find someone that has created a complete site in such a way for the fact there is no trace of .Net at all in its outputs.

It's not a case that MVC has manipulated away the 'unnecessary' fields - they never existed in the first place.
Don't particularly want a long debate as it is mainly semantics.
 
Upvote 0
As may "classic" .Net but in both cases it is very rare to find someone that has created a complete site in such a way for the fact there is no trace of .Net at all in its outputs.


Don't particularly want a long debate as it is mainly semantics.

I am happy to debate all day.

You picked me up for cutting off your sentence, that's the only reason I am forcing the issue.

As I said in reply:

My response to your quote was correct because those fields are not produced "as standard" in MVC and therefore do not need to be "manipulated".

It's nothing to do with 'semantic's - those fields do do exist in MVC, period.

Regards

Dotty
 
Upvote 0
... semantics.

There's the word again... :)

The two 'hidden' fields that are normally present on a 'classic' asp.net page are "__VIEWSTATE" and "__EVENTVALIDATION"

ASP.NET MVC does not create these fields. They are not present anywhere in the Application Execution Process. They are not 'manipulated' they simply do not exist.

The statement made was
It is "manipulated" but that is done so by the framework

Which is just wrong. Nothing 'semantic' about it.

Regards

Dotty
 
Last edited by a moderator:
Upvote 0
S

stylistichosting

There is not definitive way to see what a website is page up of without having the source files. You can do all sorts of trickery with htaccess that can change the look of the extension or even remove it all together.

However, as stated above .ASPX is usually the extension for ASP.Net
 
Upvote 0

Latest Articles

Join UK Business Forums for free business advice