Why I can't create an object of UC in WebSites?

VageJecyalags

New Member
I have an Asp.net Website in which there's a \[code\]user control(uc_cart.ascx)\[/code\] and a \[code\]webpage(checkout.aspx)\[/code\], I want to create an object of \[code\]uc_cart.ascx\[/code\] in \[code\]checkout.aspx\[/code\] but I can't do this it simply doesn't shows up in intellisence box, But when I do same thing in Web Application I can.After a while I noticed that I have to register that UC in my webpage using \[code\]<%@ Register %>\[/code\] , only after that I can access that class and can create an object of the same in Website but in Web Applications I don't have to do that.So basically what are the major differences between a Website and a Web Application ? and Why can't I create that object with out that\[code\]<%@ Register %>\[/code\] block ?
 
Back
Top