Casting an aspx page as a Previous Page

G

g3000

What else is needed in this code snippet in order for SelectProject to
be accessible.

class SelectProject is defined in the same project as this code
snippet.
The compiler is saying Im missing a using or assembly reference.

Any ideas?

protected void Page_Load(object sender, EventArgs e)
{
SelectProject prevPage = PreviousPage as SelectProject;
//if previouspage exist then check for parameter values
if (PreviousPage != null)
{
// Add the chart data from the database based on select
param
if (prevPage != null)
{

Chart1.SeriesCollection.Add(GetChartData(prevPage.ProjectCode,
prevPage.LaborCode));
}
}
<snip>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top