Skip to content

Web form model

jack wilson

Asked Nov 29, 2013, 10:04 PM EST1 answer
Share
LinkedInX
Hai everyone. I am new to this forum. Can anyone explain me about web form model

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

     ASP.NET provides two models for managing the visual elements and code — the single-file page model and the code-behind page model. The two models function the same, and you can use the same controls and code for both models.

    This topic explains how each model functions and provides suggestions for when to choose one model or the other.

    The Single-File Page Model
     
    In the single-file page model, a Web Forms page's markup and its programming code are in the same physical .aspx file. The programming code is in a script block that contains the attribute runat="server" to mark it as code that ASP.NET should execute.

    The following code example shows a single-file page containing a Web Forms Button server control and a Label server control. The highlighted portion shows the Click event handler for the Button control inside a script block.

     
    The model binding pattern works with any data access technology. In this tutorial, you will use Entity Framework, but you could use the data access technology that is most familiar to you. From a data-bound server control, such as a GridView, ListView, DetailsView, or FormView control, you specify the names of the methods to use for selecting, updating, deleting, and creating data. In this tutorial, you will specify a value for the SelectMethod(Android Training in Chennai).

    Within that method, you provide the logic for retrieving the data. In the next tutorial, you will set values for UpdateMethod, DeleteMethod and InsertMethod.

    0