G
Guest
Using Visual Studio.Net 2005, Asp.Net 2.0, and trying to use technique shown
in the Programming Asp.Net 3rd Edition by O'Reily, page 257.
On the first page, this would become the previous page, I have 2 dropdowns.
According to their technique, I should create a public property on my
previous page for these 2 dropdowns, and then I would would be able to get
their settings on the target aspx page.
I have added the 2 properties on the previous page:
public DropDownList ddlMonth
{
get { return ddlMonth; }
}
public DropDownList ddlYear
{
get { return ddlYear; }
}
However, I get an errors showing:
The type "gives me my page name" already contains a definition for ddlMonth.
The type "gives me my page name" already contains a definition for ddlYear.
I would really like to use this technique. Please help.
in the Programming Asp.Net 3rd Edition by O'Reily, page 257.
On the first page, this would become the previous page, I have 2 dropdowns.
According to their technique, I should create a public property on my
previous page for these 2 dropdowns, and then I would would be able to get
their settings on the target aspx page.
I have added the 2 properties on the previous page:
public DropDownList ddlMonth
{
get { return ddlMonth; }
}
public DropDownList ddlYear
{
get { return ddlYear; }
}
However, I get an errors showing:
The type "gives me my page name" already contains a definition for ddlMonth.
The type "gives me my page name" already contains a definition for ddlYear.
I would really like to use this technique. Please help.