Never seen this before in ASP.NET development. I'm trying to refactor out 40 single-page ASP.NET pages to code-behind style.
What does this code do?
// Validate required parameters (if "new", then nothing is required)
if (!this.IsNew())
{
if (string.IsNullOrEmpty(_billId))
{
responseErrorNo = 4;
Utils.SendError(respErrNum);
}
}
Its on a single-page design ASP.NET page in the block in the Page_Load method.
On a code-behind page this code ( .IsNew) is not recognized. What am I missing here? Is there an MSDN page on IsNew of the "page"?
update Ok. This is my dumbkoff move of the day. There was a little method hidding at the bottom of the server-side was protected bool IsNew()
see comments about the inheritance point. http://msdn.microsoft.com/en-us/library/015103yb.aspx