Web form model
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.
Know the answer? Post it. Somebody with the same question will find it here.
Steve Hawks6 pointsPosted Dec 26, 2015, 3:01 AM EST
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 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.
Within that method, you provide the logic for retrieving the data. In the next tutorial, you will set values for UpdateMethod, DeleteMethod and InsertMethod.