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

Forum statistics

Threads
474,262
Messages
2,571,044
Members
48,769
Latest member
Clifft

Latest Threads

Top