This really pushes my buttons
-
if (buttontype == 0)
{
this.ViewState["id"] = 0;
this.ViewState["ceID"] = 0;
this.CreateOtmGridAndAutoCompleteJavascript();
if (buttontype == 2)
{
this.PopulateDefaultValues(form);
}
} -
if (buttontype == 0)
{
this.ViewState["id"] = 0;
this.ViewState["ceID"] = 0;
this.CreateOtmGridAndAutoCompleteJavascript();
if (buttontype == 2)
{
this.PopulateDefaultValues(form);
}
}maybe CreateOtmGridAndAutoCompleteJavascript changes buttonType ... probably not but maybe
Don't comment your code - it was hard to write, it should be hard to read!
-
maybe CreateOtmGridAndAutoCompleteJavascript changes buttonType ... probably not but maybe
Don't comment your code - it was hard to write, it should be hard to read!
Side effects FTW
-
maybe CreateOtmGridAndAutoCompleteJavascript changes buttonType ... probably not but maybe
Don't comment your code - it was hard to write, it should be hard to read!
-
if (buttontype == 0)
{
this.ViewState["id"] = 0;
this.ViewState["ceID"] = 0;
this.CreateOtmGridAndAutoCompleteJavascript();
if (buttontype == 2)
{
this.PopulateDefaultValues(form);
}
}