Technic
what's the code behind technic and how can we implement it?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenthilkumarPosted Mar 20, 2012, 5:33 AM
The web pages extension is .aspx and server code can be written on the same page. But the readability and maintainability this has divided.
.aspx - design page
.aspx.cs - code file
It will allow the developers on code file and designers on .aspx page.
This can be decided at the time of creation of .aspx page. When you add the new web page it will have option.
Place code in Separate File
This will split the code file into separate file with the extension of .cs
Inline:
The inline is technic where you can write the code and design on the same file.
Code behind:
This will create the code file. Reference will be there in the page directives.
CodeFile="Default1.aspx.cs"
Hopes this will help to answer you question. If it helps then mark it as "Accepted Answer"