Given the form:
<form runat="server">
**Omitted field data for simplicity**
<asp:Button runat="server" id="btn_addNewPrice" OnClick="newPrice_click" Text="Add New Price" />
</form>
And the code behind:
// A new price has been entered
void newPrice_click(object sender, EventArgs e)
{
// Get form values
DateTime frm_datestart = DateTime.Parse(dateStart.Text);
DateTime frm_dateend = DateTime.Parse(dateEnd.Text);
double frm_percent = double.Parse(percentage.Text);
}
I get the error:
CS1061: 'ASP.admin_editproduct_aspx' does not contain a definition for 'newPrice_click' and no extension method 'newPrice_click' accepting a first argument of type 'ASP.admin_editproduct_aspx' could be found (are you missing a using directive or an assembly reference?)