Technic
what's the code behind technic and how can we implement it?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
SenthilkumarRank #387 · 6.5K reputationPosted Mar 20, 2012, 1:33 AM EDT
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"