Y
Yankee Imperialist Dog!
i have two pages with a shared master page
i'm using server transfer to get to the other page.
page1, page2;
on load in page 2
i have:
if (!IsPostBack)
{
var ppg = PreviousPage as Page1;
}
the designer understands that Page1 exists
but when i compile i get an error: CS0246: The type or namespace name
'Page1' could not be found (are you missing a using directive or an assembly
reference?)
if i use only
var ppg = PreviousPage;
and debug on that line, or the next. It is clearly set to Page1 and has all
the values associated with it.
note that i'm getting a compile error not a runtime error.
What am i doing wrong or what do i need to include????
Thanks
KES
i'm using server transfer to get to the other page.
page1, page2;
on load in page 2
i have:
if (!IsPostBack)
{
var ppg = PreviousPage as Page1;
}
the designer understands that Page1 exists
but when i compile i get an error: CS0246: The type or namespace name
'Page1' could not be found (are you missing a using directive or an assembly
reference?)
if i use only
var ppg = PreviousPage;
and debug on that line, or the next. It is clearly set to Page1 and has all
the values associated with it.
note that i'm getting a compile error not a runtime error.
What am i doing wrong or what do i need to include????
Thanks
KES