ASP.NET and IsNew on the page level

Posted by tyndall on Stack Overflow See other posts from Stack Overflow or by tyndall
Published on 2010-04-28T18:55:15Z Indexed on 2010/04/28 18:57 UTC
Read the original article Hit count: 234

Filed under:
|
|
|
|

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"?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about .NET