I have an Asp.net Website in which there's a user control(uc_cart.ascx)
and a webpage(checkout.aspx)
, I want to create an object of uc_cart.ascx
in checkout.aspx
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 <%@ Register %>
, 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<%@ Register %>
block ?