It's driving me crazy, but I can't seem to figure out why my ResetDB method is unable to call the InitializeDB method when the ResetDB button is clicked by the user. The ResetDB method gets triggered successfully with the button click, but things go awry after that:
var md: ManageCustOrderDatabase;
$(function () {
md = new ManageCustOrderDatabase();
$("#ResetDb").click(md.ResetDB);
});
class ManageCustOrderDatabase {
public ResetDB() {
alert("A");
this.InitializeDB();
alert("C");
}
public InitializeDB() {
alert("q");
}
}