Hello,i am developing web application using c# VS2005 as i am learning this for quite sometime now ,though i am not sure if i understand all the best practices for doing certain things and am forced to rethink it all.If someone can enlighten me on the followings,i would highly appreciate that.
1-i need to access certain classes thruout the page in different functions,so in general i just initialize it at the very beginning right after partial classes.Is it the right way of doing this? like
namespace myNamespace{ public partial class class1 :System.Web.UI.Page{
myClass myClassObj = new myClass();
function1(){
//access myClassObj here
}//and so on for other functions}}
2- Certain classes i need to access throughout my application,so i usually repeat the same thing as above in every page.Any effiecient other way of doing this?
3- My classes are not the part of class library proj ...
Go to the complete details ...