C
cmrchs
Hi,
I have in my web application project (VS.NET 2008) :
- a webform (webform2.aspx, webform2.aspx.cs,
webform2.aspx.designer.cs)
- a code-file Product.cs.
But i can't use the definition of 'Product' nowhere in my page-class-
file (webform2.aspx.cs)
For example:
protected void Page_Load(object sender, EventArgs e)
{
Product p = new Product();
}
the compiler doesn't know the definition of Product
whereas if I place the definition of Product in the same codefile as
the WebForm.cs then it works.
How can i make it work just by keeping each class definition in its
own codefile?
By the way, what happened to the App_Code used in 2005?
thank you
Chris
I have in my web application project (VS.NET 2008) :
- a webform (webform2.aspx, webform2.aspx.cs,
webform2.aspx.designer.cs)
- a code-file Product.cs.
But i can't use the definition of 'Product' nowhere in my page-class-
file (webform2.aspx.cs)
For example:
protected void Page_Load(object sender, EventArgs e)
{
Product p = new Product();
}
the compiler doesn't know the definition of Product
whereas if I place the definition of Product in the same codefile as
the WebForm.cs then it works.
How can i make it work just by keeping each class definition in its
own codefile?
By the way, what happened to the App_Code used in 2005?
thank you
Chris