Hi,
When we use class file in ASP.NET? What are the advantage of class file in a web application ?
Loading
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.
Satyapriya NayakPosted Aug 29, 2011, 7:41 AM
If this post helps you mark it as answer
Thanks
Satyapriya NayakPosted Aug 18, 2011, 5:51 AM
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 answer