App_code classes
-
Hi all, i have created a web application with three classes in it App_Code folder.When i run the pjt in local system everything was working.but after hosting the site it give erroe "Object reference not set to an instance of an object." where it encounter a line having a call to the functions in the class Suppose A is my class in App_Code I have declared the objt of it in a .aspx page as A objA=new A(); objA.Function(); What is wrong with this.I got a solution saying thatfor that "U have to include namespace of APP_code Class File into ur webpage .cs file".How can i do it? :^) :confused: Thanks in advance.
-
Hi all, i have created a web application with three classes in it App_Code folder.When i run the pjt in local system everything was working.but after hosting the site it give erroe "Object reference not set to an instance of an object." where it encounter a line having a call to the functions in the class Suppose A is my class in App_Code I have declared the objt of it in a .aspx page as A objA=new A(); objA.Function(); What is wrong with this.I got a solution saying thatfor that "U have to include namespace of APP_code Class File into ur webpage .cs file".How can i do it? :^) :confused: Thanks in advance.
Are you using any name space in Class files ? Are you getting exception while creating a new object i.e
A objA=new A();
OR on Method call
objA.Function();
?
Parwej Ahamad g.parwez@gmail.com
-
Are you using any name space in Class files ? Are you getting exception while creating a new object i.e
A objA=new A();
OR on Method call
objA.Function();
?
Parwej Ahamad g.parwez@gmail.com
i am getting error when a line with a call to the member function encounters ie, your second option
-
i am getting error when a line with a call to the member function encounters ie, your second option