Interviews6 answers
What is relation between ASPX and its code behind class ?
6 Answers
ASPX is the design code
ASPX.Cs is the code behind server code
Manoj Kumar DuraisamyPosted Jan 2, 2017, 8:45 PM EST
ASPX is the design code
ASPX.Cs is the code behind server code
Manoj Kumar DuraisamyPosted Jan 2, 2017, 8:45 PM EST
The codebehind in 1.x was a "complete" class. It would extend the "page" super class, and have all the controls for declared and added within that class.
The 2.0 model uses a "partial" class which allows you to split a class over a few files. this way you dont get the "designer generated code" clogging up your work area. Quite a nice idea actually, it keeps things nice and tidy. Here is a more indepth explanation...
http://davidhayden.com/blog/dave/archive/2005/01/19/783.aspx
Munesh SharmaPosted May 27, 2016, 10:49 AM EDT
code behind class main function.. aspx is just apperance
Keerthi VenkatesanPosted May 12, 2016, 11:45 PM EDT
Analogy: You can think of ASPX as the human face and skin and the code-behind (ASPX.CS) is the brain and other internal organs that signals your body what to do.
Vincent Maverick DuranoPosted Apr 12, 2016, 5:46 AM EDT
ASPX inherits Code behind class.
Imran Javed ZiaPosted Dec 6, 2015, 12:14 PM EST




