Hi,
When we use class file in ASP.NET? What are the advantage of class file in a web application ?
When we use class file in ASP.NET
2 Answers
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 attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Aug 18, 2011, 1:51 AM EDT
Hi Andrew,
We use class file because if we made some changes to the system, then this will require to change in every single file. Suppose we required connection string to establish connection, if we put that connection string in a class file when there is a change in the connection string we can modify it that class file only ,but if we will not put that string into a class then we have to change it in every page where we have declared the connection string
Advantages are code reusability
Thanks
If this post helps you mark it as answerSatyapriya NayakRank #47 · 31.5K reputationPosted Aug 29, 2011, 3:41 AM EDT
If this post helps you mark it as answer
Thanks